Class RemoteCacheServerAttributes
java.lang.Object
org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheAttributes
org.apache.commons.jcs3.auxiliary.remote.CommonRemoteCacheAttributes
org.apache.commons.jcs3.auxiliary.remote.server.RemoteCacheServerAttributes
- All Implemented Interfaces:
Serializable,Cloneable,AuxiliaryCacheAttributes,ICommonRemoteCacheAttributes,IRemoteCacheServerAttributes
public class RemoteCacheServerAttributes
extends CommonRemoteCacheAttributes
implements IRemoteCacheServerAttributes
These attributes are used to configure the remote cache server.
- See Also:
-
Field Summary
Fields inherited from interface org.apache.commons.jcs3.auxiliary.remote.behavior.ICommonRemoteCacheAttributes
DEFAULT_RMI_SOCKET_FACTORY_TIMEOUT_MILLIS -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for the RemoteCacheAttributes object -
Method Summary
Modifier and TypeMethodDescriptionGets the ConfigFileName attribute of the IRemoteCacheAttributes objectlongintGets the localPort attribute of the RemoteCacheAttributes objectbooleanShould gets from non-cluster clients be allowed to get from other remote auxiliaries.booleanDeprecated.Always true, to be removedbooleanShould we try to keep the registry alivevoidsetAllowClusterGet(boolean r) Should we try to get from other cluster servers if we don't find the items locally.voidSets the ConfigFileName attribute of the IRemoteCacheAttributes objectvoidsetRegistryKeepAliveDelayMillis(long registryKeepAliveDelayMillis) voidsetServicePort(int p) Sets the localPort attribute of the RemoteCacheAttributes objectvoidsetStartRegistry(boolean startRegistry) Deprecated.Always true, to be removedvoidsetUseRegistryKeepAlive(boolean useRegistryKeepAlive) Should we try to keep the registry alivetoString()Methods inherited from class org.apache.commons.jcs3.auxiliary.remote.CommonRemoteCacheAttributes
getClusterServers, getGetOnly, getRemoteLocation, getRemoteServiceName, getRemoteType, getRemoteTypeName, getRemoveUponRemotePut, getRmiSocketFactoryTimeoutMillis, isLocalClusterConsistency, setClusterServers, setGetOnly, setLocalClusterConsistency, setRemoteLocation, setRemoteLocation, setRemoteServiceName, setRemoteType, setRemoteTypeName, setRemoveUponRemotePut, setRmiSocketFactoryTimeoutMillisMethods inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheAttributes
clone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setNameMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.jcs3.auxiliary.AuxiliaryCacheAttributes
clone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setNameMethods inherited from interface org.apache.commons.jcs3.auxiliary.remote.behavior.ICommonRemoteCacheAttributes
getClusterServers, getGetOnly, getRemoteLocation, getRemoteServiceName, getRemoteType, getRemoteTypeName, getRemoveUponRemotePut, getRmiSocketFactoryTimeoutMillis, isLocalClusterConsistency, setClusterServers, setGetOnly, setLocalClusterConsistency, setRemoteLocation, setRemoteLocation, setRemoteServiceName, setRemoteType, setRemoteTypeName, setRemoveUponRemotePut, setRmiSocketFactoryTimeoutMillis
-
Constructor Details
-
RemoteCacheServerAttributes
public RemoteCacheServerAttributes()Default constructor for the RemoteCacheAttributes object
-
-
Method Details
-
getServicePort
Gets the localPort attribute of the RemoteCacheAttributes object- Specified by:
getServicePortin interfaceIRemoteCacheServerAttributes- Returns:
- The localPort value
-
setServicePort
Sets the localPort attribute of the RemoteCacheAttributes object- Specified by:
setServicePortin interfaceIRemoteCacheServerAttributes- Parameters:
p- The new localPort value
-
isAllowClusterGet
Should gets from non-cluster clients be allowed to get from other remote auxiliaries.- Specified by:
isAllowClusterGetin interfaceIRemoteCacheServerAttributes- Returns:
- The localClusterConsistency value
-
setAllowClusterGet
Should we try to get from other cluster servers if we don't find the items locally.- Specified by:
setAllowClusterGetin interfaceIRemoteCacheServerAttributes- Parameters:
r- The new localClusterConsistency value
-
getConfigFileName
Gets the ConfigFileName attribute of the IRemoteCacheAttributes object- Specified by:
getConfigFileNamein interfaceIRemoteCacheServerAttributes- Returns:
- The clusterServers value
-
setConfigFileName
Sets the ConfigFileName attribute of the IRemoteCacheAttributes object- Specified by:
setConfigFileNamein interfaceIRemoteCacheServerAttributes- Parameters:
s- The new clusterServers value
-
setUseRegistryKeepAlive
Should we try to keep the registry alive- Specified by:
setUseRegistryKeepAlivein interfaceIRemoteCacheServerAttributes- Parameters:
useRegistryKeepAlive- the useRegistryKeepAlive to set
-
setStartRegistry
Deprecated.Always true, to be removedShould we start the registry- Specified by:
setStartRegistryin interfaceIRemoteCacheServerAttributes- Parameters:
startRegistry- the startRegistry to set
-
isStartRegistry
Deprecated.Always true, to be removedShould we start the registry- Specified by:
isStartRegistryin interfaceIRemoteCacheServerAttributes- Returns:
- the startRegistry
-
isUseRegistryKeepAlive
Should we try to keep the registry alive- Specified by:
isUseRegistryKeepAlivein interfaceIRemoteCacheServerAttributes- Returns:
- the useRegistryKeepAlive
-
setRegistryKeepAliveDelayMillis
- Specified by:
setRegistryKeepAliveDelayMillisin interfaceIRemoteCacheServerAttributes- Parameters:
registryKeepAliveDelayMillis- the registryKeepAliveDelayMillis to set
-
getRegistryKeepAliveDelayMillis
- Specified by:
getRegistryKeepAliveDelayMillisin interfaceIRemoteCacheServerAttributes- Returns:
- the registryKeepAliveDelayMillis
-
toString
- Overrides:
toStringin classCommonRemoteCacheAttributes- Returns:
- String details
-