GigaSpaces XAP 7.0 API

com.j_spaces.core.admin
Class SpaceConfig

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<Object,Object>
          extended by java.util.Properties
              extended by com.j_spaces.core.JSpaceAttributes
                  extended by com.j_spaces.core.admin.SpaceConfig
All Implemented Interfaces:
Externalizable, Serializable, Cloneable, Map<Object,Object>

public class SpaceConfig
extends JSpaceAttributes

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:
IRemoteJSpaceAdmin.getConfig(), Serialized Form

Field Summary
 
Fields inherited from class com.j_spaces.core.JSpaceAttributes
m_isClustered
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
SpaceConfig()
           
SpaceConfig(String spaceName, Properties prop, String containerName, String schemaPath)
          Creates SpaceConfig with the provided space name, using the given Properties.
SpaceConfig(String spaceName, String containerName)
          Creates SpaceConfig with the provided space name.
 
Method Summary
 boolean containsKey(Object key)
           
 String getContainerName()
          Return container owner name
 String getFullSpaceName()
           
 String getProperty(String key)
          
 String getPropertyFromSuper(String key)
          Returns the property without using the space name.
 String getSchemaPath()
          Returns space schema file path
 String getSpaceName()
          Returns the space name.
 void readExternal(ObjectInput in)
           
 Object setProperty(String key, String value)
          Overrides method of super class.
 void setSchemaPath(String schemaName)
          Sets space schema file path
 void setSpaceName(String spaceName)
          Set the space name.
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class com.j_spaces.core.JSpaceAttributes
clear, clone, getCacheManagerSize, getCachePolicy, getClusterConfigURL, getClusterPolicy, getConnectionRetries, getCustomProperties, getDataClass, getDataPropertiesFile, getDataSourceClass, getDataSourceSharedIteratorMode, getDataSourceSharedIteratorTimeToLive, getDCacheConfigName, getDCacheProperties, getEngineExtendedMatchClasses, getEngineMaxThreads, getEngineMemoryUsageEvictionBatchSize, getEngineMemoryUsageHighPercentageRatio, getEngineMemoryUsageLowPercentageRatio, getEngineMemoryUsageRetryCount, getEngineMemoryUsageWriteOnlyBlockPercentageRatio, getEngineMemoryWriteOnlyCheckPercentageRatio, getEngineMinThreads, getExpirationTimeInterval, getFiltersInfo, getInitSAConnections, getJMSQueueNames, getJMSRmiPort, getJMSTopicNames, getMaxSAConnections, getNotifyRetries, getNumberImplicitIndexes, getProxyConnectionMode, getProxyConnectionRetries, getProxyDetectorFrequency, getProxyMonitorFrequency, getQpDateFormat, getQpDateTimeFormat, getQpSpaceReadLeaseTime, getQpSpaceWriteLeaseTime, getQpTimeFormat, getQpTransactionTimeout, getSchemaName, getSerializationType, getSpaceState, getStorageAdapterClass, getStorageAdapterURL, getStubHandler, getUsage, isClustered, isEngineMemoryExplicitGSEnabled, isEngineMemoryUsageEnabled, isLoadOnStartup, isMirrorServiceEnabled, isPersistent, isPrivate, isQPAutoCommit, isQPParserCaseSensetivity, isQPTraceExecTime, isResetOnFailure, isSupportsInheritanceEnabled, isSupportsVersionEnabled, setCacheManagerSize, setCachePolicy, setClusterConfigURL, setClustered, setClusterPolicy, setConnectionRetries, setCustomProperties, setDataClass, setDataPropertiesFile, setDataSourceClass, setDataSourceSharedIteratorMode, setDataSourceSharedIteratorTimeToLive, setDCacheConfigName, setDCacheProperties, setEngineExtendedMatchClasses, setEngineMaxThreads, setEngineMemoryExplicitGSEnabled, setEngineMemoryUsageEnabled, setEngineMemoryUsageEvictionBatchSize, setEngineMemoryUsageHighPercentageRatio, setEngineMemoryUsageLowPercentageRatio, setEngineMemoryUsageRetryCount, setEngineMemoryUsageWriteOnlyBlockPercentageRatio, setEngineMemoryWriteOnlyCheckPercentageRatio, setEngineMinThreads, setExpirationTimeInterval, setFilterInfoAt, setFiltersInfo, setInitSAConnections, setJMSQueueNames, setJMSRmiPort, setJMSTopicNames, setLoadOnStartup, setMaxSAConnections, setMirrorServiceEnabled, setNotifyRetries, setNumberImplicitIndexes, setPersistent, setPrivate, setProxyConnectionMode, setProxyConnectionRetries, setProxyDetectorFrequency, setProxyMonitorFrequency, setQPAutoCommit, setQpDateFormat, setQpDateTimeFormat, setQPParserCaseSensetivity, setQpSpaceReadLeaseTime, setQpSpaceWriteLeaseTime, setQpTimeFormat, setQPTraceExecTime, setQpTransactionTimeout, setResetOnFailure, setSchemaName, setSerializationType, setSpaceState, setStorageAdapterClass, setStorageAdapterURL, setStubHandler, setSupportsInheritanceEnabled, setSupportsVersionEnabled, setUsage
 
Methods inherited from class java.util.Properties
getProperty, list, list, load, loadFromXML, propertyNames, save, store, storeToXML, storeToXML
 
Methods inherited from class java.util.Hashtable
contains, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpaceConfig

public SpaceConfig()

SpaceConfig

public SpaceConfig(String spaceName,
                   String containerName)
Creates SpaceConfig with the provided space name.

Parameters:
spaceName - the space name
containerName - container owner name

SpaceConfig

public SpaceConfig(String spaceName,
                   Properties prop,
                   String containerName,
                   String schemaPath)
Creates SpaceConfig with the provided space name, using the given Properties.

Parameters:
spaceName - the space name
prop - properties for the SpaceConfig
containerName - container owner name
schemaPath - path to space schema file
Method Detail

getSpaceName

public String getSpaceName()
Returns the space name.

Returns:
the space name

setSpaceName

public void setSpaceName(String spaceName)
Set the space name.

Parameters:
spaceName - the new space name

getFullSpaceName

public String getFullSpaceName()

getSchemaPath

public String getSchemaPath()
Returns space schema file path

Returns:
path to space schema file ( including host IP address )

setSchemaPath

public void setSchemaPath(String schemaName)
Sets space schema file path

Parameters:
schemaName - path to space schema file ( including host IP address )

getProperty

public String getProperty(String key)

Overrides:
getProperty in class Properties

setProperty

public Object setProperty(String key,
                          String value)
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:
setProperty in class JSpaceAttributes
Parameters:
key - the key to be placed into this property list.
value - the value corresponding to key.

getPropertyFromSuper

public String getPropertyFromSuper(String key)
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

public String toString()
Overrides:
toString in class JSpaceAttributes

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<Object,Object>
Overrides:
containsKey in class Hashtable<Object,Object>

getContainerName

public String getContainerName()
Return container owner name

Returns:
container name

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class JSpaceAttributes
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class JSpaceAttributes
Throws:
IOException

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.