Package com.j_spaces.core.admin
Class SpaceConfig
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
com.j_spaces.core.JSpaceAttributes
com.j_spaces.core.admin.SpaceConfig
- All Implemented Interfaces:
IClusterInfoChangedListener,SmartExternalizable,Externalizable,Serializable,Cloneable,Map<Object,Object>
This structure contains all information about space configuration.
SpaceConfig
builds inside of Server and transfered to the side of client.- Version:
- 1.0
- Author:
- Igor Goldenberg
- See Also:
-
Field Summary
Fields inherited from class com.j_spaces.core.JSpaceAttributes
m_isClusteredFields inherited from class java.util.Properties
defaults -
Constructor Summary
ConstructorsConstructorDescriptionSpaceConfig(String spaceName, String containerName) Creates SpaceConfig with the provided space name.SpaceConfig(String spaceName, Properties prop, String containerName, String schemaPath) Creates SpaceConfig with the provided space name, using the givenProperties. -
Method Summary
Modifier and TypeMethodDescriptionvoidafterClusterInfoChange(SpaceClusterInfo clusterInfo) Updates server side components that holds SpaceClusterInfo instances when SpaceClusterInfo changes (i.e horizontal scale event)clone()booleancontainsKey(Object key) Return container owner namegetProperty(String key) getProperty(String key, String defaultValue) Returns the property without using the space name.Returns space schema file pathReturns the space name.voidsetProperty(String key, String value) Overrides method of super class.voidsetSchemaPath(String schemaName) Sets space schema file pathvoidsetSpaceName(String spaceName) Set the space name.toString()voidMethods inherited from class com.j_spaces.core.JSpaceAttributes
clear, cloneAndUpdate, getBlobStoreCacheCapacityMB, getBlobStoreCacheSize, getBlobStoreCapacityGB, getBlobStoreDevices, getBlobStoreDurabilityLevel, getBlobStoreProperties, getBlobStoreVolumeDir, getCacheManagerSize, getCachePolicy, getClusterConfigURL, getClusterInfo, getClusterPolicy, getConnectionRetries, getCustomComponents, getCustomProperties, getDataClass, getDataPropertiesFile, getDataSourceClass, getDataSourceSharedIteratorMode, getDataSourceSharedIteratorTimeToLive, getDCacheConfigName, getDCacheProperties, getEngineMaxThreads, getEngineMemoryUsageEvictionBatchSize, getEngineMemoryUsageHighPercentageRatio, getEngineMemoryUsageLowPercentageRatio, getEngineMemoryUsageRetryCount, getEngineMemoryUsageWriteOnlyBlockPercentageRatio, getEngineMemoryWriteOnlyCheckPercentageRatio, getEngineMinThreads, getExpirationStaleReplicas, getExpirationTimeInterval, getExpirationTimeRecentDeletes, getExpirationTimeRecentUpdates, getFiltersInfo, getMaxClassLoaders, getMvccFixedCleanupDelayMillis, getMvccHistoricalEntriesLimit, getMvccHistoricalEntryLifetime, getMvccHistoricalEntryLifetimeTimeUnit, getNotifyRetries, getProxyConnectionMode, getProxyConnectionRetries, getProxyDetectorFrequency, getProxyMonitorFrequency, getQpDateFormat, getQpDateTimeFormat, getQpInstantFormat, getQpLocalDateFormat, getQpLocalDateTimeFormat, getQpLocalTimeFormat, getQpSpaceReadLeaseTime, getQpSpaceWriteLeaseTime, getQpSqlDateFormat, getQpSqlTimeFormat, getQpTimeFormat, getQpTimestampFormat, getQpTransactionTimeout, getQpUtilDateFormat, getQueryBuilderClass, getSchemaName, getSerializationType, getSpaceDataSourceClassName, getSpaceDataSourceInstance, getSpaceInstanceConfig, getSpaceState, getSupportCodeChange, getSynchronizationEndpointClassName, getSynchronizationEndpointInstance, getTieredStorageConfig, getUsage, getZookeeperConnectionTimeout, getZookeeperRetryInterval, getZookeeperRetryTimeout, getZookeeperSessionTimeout, isBlobstorePersistent, isClustered, isEngineMemoryExplicitGSEnabled, isEngineMemoryGCBeforeShortageEnabled, isEngineMemoryUsageEnabled, isLoadOnStartup, isMirrorServiceEnabled, isMvccEnabled, isPersistent, isPrivate, isQPAutoCommit, isQPParserCaseSensetivity, isQPTraceExecTime, isSupportsInheritanceEnabled, isSupportsPartialUpdateEnabled, isSupportsRemoveByIdEnabled, isSupportsVersionEnabled, isTieredStorageCachePolicy, setBlobStoreProperties, setBlobstoreRocksDBAllowDuplicateUIDs, setCacheManagerSize, setCachePolicy, setClusterConfigURL, setClustered, setClusterInfo, setClusterPolicy, setConnectionRetries, setCustomProperties, setDataClass, setDataPropertiesFile, setDataSourceClass, setDataSourceSharedIteratorMode, setDataSourceSharedIteratorTimeToLive, setDCacheConfigName, setDCacheProperties, setEngineMaxThreads, setEngineMemoryExplicitGSEnabled, setEngineMemoryGCBeforeShortageEnabled, setEngineMemoryUsageEnabled, setEngineMemoryUsageEvictionBatchSize, setEngineMemoryUsageHighPercentageRatio, setEngineMemoryUsageLowPercentageRatio, setEngineMemoryUsageRetryCount, setEngineMemoryUsageWriteOnlyBlockPercentageRatio, setEngineMemoryWriteOnlyCheckPercentageRatio, setEngineMinThreads, setExpirationStaleReplicas, setExpirationTimeInterval, setExpirationTimeRecentDeletes, setExpirationTimeRecentUpdate, setFilterInfoAt, setFiltersInfo, setLoadOnStartup, setMaxClassLoaders, setMirrorServiceEnabled, setMvccEnabled, setMvccFixedCleanupDelayMillis, setMvccHistoricalEntriesLimit, setMvccHistoricalEntryLifetime, setMvccHistoricalEntryLifetimeTimeUnit, setNotifyRetries, setPersistent, setPrivate, setProxyConnectionMode, setProxyConnectionRetries, setProxyDetectorFrequency, setProxyMonitorFrequency, setQPAutoCommit, setQpDateFormat, setQpDateTimeFormat, setQpInstantFormat, setQpLocalDateFormat, setQpLocalDateTimeFormat, setQpLocalTimeFormat, setQPParserCaseSensetivity, setQpSpaceReadLeaseTime, setQpSpaceWriteLeaseTime, setQpSqlDateFormat, setQpSqlTimeFormat, setQpTimeFormat, setQpTimestampFormat, setQPTraceExecTime, setQpTransactionTimeout, setQpUtilDateFormat, setQueryBuilderClass, setSchemaName, setSerializationType, setSpaceState, setSupportCodeChange, setSupportsInheritanceEnabled, setSupportsPartialUpdateEnabled, setSupportsRemoveByIdEnabled, setSupportsVersionEnabled, setUsage, setZookeeperConnectionTimeout, setZookeeperRetryInterval, setZookeeperRetryTimeout, setZookeeperSessionTimeoutMethods inherited from class java.util.Properties
compute, computeIfAbsent, computeIfPresent, contains, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
SpaceConfig
public SpaceConfig() -
SpaceConfig
Creates SpaceConfig with the provided space name.- Parameters:
spaceName- the space namecontainerName- container owner name
-
SpaceConfig
Creates SpaceConfig with the provided space name, using the givenProperties.- Parameters:
spaceName- the space nameprop- properties for the SpaceConfigcontainerName- container owner nameschemaPath- path to space schema file
-
-
Method Details
-
clone
- Overrides:
clonein classJSpaceAttributes
-
getSpaceName
Returns the space name.- Returns:
- the space name
-
setSpaceName
Set the space name.- Parameters:
spaceName- the new space name
-
getFullSpaceName
-
getSchemaPath
Returns space schema file path- Returns:
- path to space schema file ( including host IP address )
-
setSchemaPath
Sets space schema file path- Parameters:
schemaName- path to space schema file ( including host IP address )
-
getProperty
- Overrides:
getPropertyin classProperties
-
getProperty
- Overrides:
getPropertyin classProperties
-
setProperty
Overrides method of super class. Checks value for null, only if value is not null appropriate method of parent class will be called. In such way NullPointerException is prevented.- Overrides:
setPropertyin classJSpaceAttributes- Parameters:
key- the key to be placed into this property list.value- the value corresponding to key.
-
getPropertyFromSuper
Returns the property without using the space name.- Parameters:
key- the property key.- Returns:
- the value in this property list with the specified key value.
-
toString
- Overrides:
toStringin classJSpaceAttributes
-
containsKey
- Specified by:
containsKeyin interfaceMap<Object,Object> - Overrides:
containsKeyin classProperties
-
getContainerName
Return container owner name- Returns:
- container name
-
afterClusterInfoChange
Description copied from interface:IClusterInfoChangedListenerUpdates server side components that holds SpaceClusterInfo instances when SpaceClusterInfo changes (i.e horizontal scale event)- Specified by:
afterClusterInfoChangein interfaceIClusterInfoChangedListener
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classJSpaceAttributes- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classJSpaceAttributes- Throws:
IOException
-