com.hazelcast.hibernate
Class CacheEnvironment

java.lang.Object
  extended by com.hazelcast.hibernate.CacheEnvironment

public final class CacheEnvironment
extends Object

This class is used to help in setup the internal caches. It searches for configuration files and contains all property names for hibernate based configuration properties.


Field Summary
static String CONFIG_FILE_PATH
          Property to configure the path of the hazelcast.xml or hazelcast-client.xml configuration files
static String CONFIG_FILE_PATH_LEGACY
          Deprecated. 
static String EXPLICIT_VERSION_CHECK
          Property to configure explicitly checks the CacheEntry's version while updating RegionCache.
static String HAZELCAST_INSTANCE_NAME
          Property to configure the Hazelcast instance internal name
static String LOCK_TIMEOUT
          Property to configure the timeout delay before a lock eventually times out
static String NATIVE_CLIENT_ADDRESS
          Property to configure the address for the Hazelcast client to connect to
static String NATIVE_CLIENT_GROUP
          Property to configure Hazelcast client group name
static String NATIVE_CLIENT_PASSWORD
          Property to configure Hazelcast client group password
static String SHUTDOWN_ON_STOP
          Property to configure if the HazelcastInstance should going to shutdown when the RegionFactory is being stopped
static String USE_NATIVE_CLIENT
          Property to configure weather a Hazelcast client or node will be used for connection to the cluster
 
Method Summary
static String getConfigFilePath(Properties props)
           
static int getDefaultCacheTimeoutInMillis()
           
static String getInstanceName(Properties props)
           
static int getLockTimeoutInMillis(Properties props)
           
static boolean isExplicitVersionCheckEnabled(Properties props)
           
static boolean isNativeClient(Properties props)
           
static boolean shutdownOnStop(Properties props, boolean defaultValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EXPLICIT_VERSION_CHECK

public static final String EXPLICIT_VERSION_CHECK
Property to configure explicitly checks the CacheEntry's version while updating RegionCache. If new entry's version is not higher then previous, update will be cancelled.

See Also:
Constant Field Values

CONFIG_FILE_PATH_LEGACY

@Deprecated
public static final String CONFIG_FILE_PATH_LEGACY
Deprecated. 
Legacy property to configure the path of the hazelcast.xml or hazelcast-client.xml configuration files

See Also:
Constant Field Values

CONFIG_FILE_PATH

public static final String CONFIG_FILE_PATH
Property to configure the path of the hazelcast.xml or hazelcast-client.xml configuration files

See Also:
Constant Field Values

USE_NATIVE_CLIENT

public static final String USE_NATIVE_CLIENT
Property to configure weather a Hazelcast client or node will be used for connection to the cluster

See Also:
Constant Field Values

NATIVE_CLIENT_ADDRESS

public static final String NATIVE_CLIENT_ADDRESS
Property to configure the address for the Hazelcast client to connect to

See Also:
Constant Field Values

NATIVE_CLIENT_GROUP

public static final String NATIVE_CLIENT_GROUP
Property to configure Hazelcast client group name

See Also:
Constant Field Values

NATIVE_CLIENT_PASSWORD

public static final String NATIVE_CLIENT_PASSWORD
Property to configure Hazelcast client group password

See Also:
Constant Field Values

SHUTDOWN_ON_STOP

public static final String SHUTDOWN_ON_STOP
Property to configure if the HazelcastInstance should going to shutdown when the RegionFactory is being stopped

See Also:
Constant Field Values

LOCK_TIMEOUT

public static final String LOCK_TIMEOUT
Property to configure the timeout delay before a lock eventually times out

See Also:
Constant Field Values

HAZELCAST_INSTANCE_NAME

public static final String HAZELCAST_INSTANCE_NAME
Property to configure the Hazelcast instance internal name

See Also:
Constant Field Values
Method Detail

getConfigFilePath

public static String getConfigFilePath(Properties props)

getInstanceName

public static String getInstanceName(Properties props)

isNativeClient

public static boolean isNativeClient(Properties props)

getDefaultCacheTimeoutInMillis

public static int getDefaultCacheTimeoutInMillis()

getLockTimeoutInMillis

public static int getLockTimeoutInMillis(Properties props)

shutdownOnStop

public static boolean shutdownOnStop(Properties props,
                                     boolean defaultValue)

isExplicitVersionCheckEnabled

public static boolean isExplicitVersionCheckEnabled(Properties props)


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.