public final class InfinispanRemoteProperties extends Object implements KeyValueStoreProperties
persistence.xml or
StandardServiceRegistryBuilder.
It also contains the properites to configure the Hot Rod client. There are two ways to configure the client:
CONFIGURATION_RESOURCE_NAME
When a property of the Hot Rod client is set in the hibernate configuration, it should be prefixed
with .
For example, the property infinispan.client.hotrod.server_list
becomes hibernate.ogm.infinispan_remote.client.server_list.
Currently, some properties in the Hot Rod client don't have a prefix, in this case it must be added
in the hibernate configuration.
For example, the property maxActive becomes hibernate.ogm.infinispan_remote.client.maxActive
Properties with the Hibernate OGM prefix () will override corresponding properties defined in the external Hot Rod configuration file.
InfinispanRemoteConfiguration| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIGURATION_RESOURCE_NAME
The configuration property to use as key to define a custom configuration resource
for the Hot Rod (Infinispan remote) client.
|
static String |
DEFAULT_SCHEMA_PACKAGE_NAME
The default package name for Protobuf schemas.
|
static String |
HOT_ROD_CLIENT_PREFIX
Prefix for the Hot Rod (Infinispan remote) client properties.
|
static String |
SCHEMA_CAPTURE_SERVICE
You can inject an instance of
SchemaCapture into
the configuration properties to capture the generated Protobuf schema. |
static String |
SCHEMA_OVERRIDE_SERVICE
You can inject an instance of
SchemaOverride into
the configuration properties to override the Protobuf schema being generated. |
static String |
SCHEMA_PACKAGE_NAME
The configuration property key to configure the package name to be used in Protobuf generated schemas.
|
CACHE_MAPPINGCREATE_DATABASE, DATABASE, DATASTORE_PROVIDER, ENABLED, ERROR_HANDLER, GRID_DIALECT, HOST, OPTION_CONFIGURATOR, PASSWORD, PORT, USERNAMEpublic static final String CONFIGURATION_RESOURCE_NAME
public static final String HOT_ROD_CLIENT_PREFIX
public static final String SCHEMA_CAPTURE_SERVICE
SchemaCapture into
the configuration properties to capture the generated Protobuf schema.
Useful for testing, or to dump the schema somewhere else.public static final String SCHEMA_OVERRIDE_SERVICE
SchemaOverride into
the configuration properties to override the Protobuf schema being generated.
This will not affect how entities are encoded, so the alternative schema must be compatible.public static final String SCHEMA_PACKAGE_NAME
public static final String DEFAULT_SCHEMA_PACKAGE_NAME
SCHEMA_PACKAGE_NAME,
Constant Field ValuesCopyright © 2010-2018 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.