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 objectlong
int
Gets the localPort attribute of the RemoteCacheAttributes objectboolean
Should gets from non-cluster clients be allowed to get from other remote auxiliaries.boolean
Deprecated.Always true, to be removedboolean
Should we try to keep the registry alivevoid
setAllowClusterGet
(boolean r) Should we try to get from other cluster servers if we don't find the items locally.void
Sets the ConfigFileName attribute of the IRemoteCacheAttributes objectvoid
setRegistryKeepAliveDelayMillis
(long registryKeepAliveDelayMillis) void
setServicePort
(int p) Sets the localPort attribute of the RemoteCacheAttributes objectvoid
setStartRegistry
(boolean startRegistry) Deprecated.Always true, to be removedvoid
setUseRegistryKeepAlive
(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, setRmiSocketFactoryTimeoutMillis
Methods inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheAttributes
clone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.commons.jcs3.auxiliary.AuxiliaryCacheAttributes
clone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
Methods 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:
getServicePort
in interfaceIRemoteCacheServerAttributes
- Returns:
- The localPort value
-
setServicePort
Sets the localPort attribute of the RemoteCacheAttributes object- Specified by:
setServicePort
in interfaceIRemoteCacheServerAttributes
- Parameters:
p
- The new localPort value
-
isAllowClusterGet
Should gets from non-cluster clients be allowed to get from other remote auxiliaries.- Specified by:
isAllowClusterGet
in 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:
setAllowClusterGet
in interfaceIRemoteCacheServerAttributes
- Parameters:
r
- The new localClusterConsistency value
-
getConfigFileName
Gets the ConfigFileName attribute of the IRemoteCacheAttributes object- Specified by:
getConfigFileName
in interfaceIRemoteCacheServerAttributes
- Returns:
- The clusterServers value
-
setConfigFileName
Sets the ConfigFileName attribute of the IRemoteCacheAttributes object- Specified by:
setConfigFileName
in interfaceIRemoteCacheServerAttributes
- Parameters:
s
- The new clusterServers value
-
setUseRegistryKeepAlive
Should we try to keep the registry alive- Specified by:
setUseRegistryKeepAlive
in interfaceIRemoteCacheServerAttributes
- Parameters:
useRegistryKeepAlive
- the useRegistryKeepAlive to set
-
setStartRegistry
Deprecated.Always true, to be removedShould we start the registry- Specified by:
setStartRegistry
in interfaceIRemoteCacheServerAttributes
- Parameters:
startRegistry
- the startRegistry to set
-
isStartRegistry
Deprecated.Always true, to be removedShould we start the registry- Specified by:
isStartRegistry
in interfaceIRemoteCacheServerAttributes
- Returns:
- the startRegistry
-
isUseRegistryKeepAlive
Should we try to keep the registry alive- Specified by:
isUseRegistryKeepAlive
in interfaceIRemoteCacheServerAttributes
- Returns:
- the useRegistryKeepAlive
-
setRegistryKeepAliveDelayMillis
- Specified by:
setRegistryKeepAliveDelayMillis
in interfaceIRemoteCacheServerAttributes
- Parameters:
registryKeepAliveDelayMillis
- the registryKeepAliveDelayMillis to set
-
getRegistryKeepAliveDelayMillis
- Specified by:
getRegistryKeepAliveDelayMillis
in interfaceIRemoteCacheServerAttributes
- Returns:
- the registryKeepAliveDelayMillis
-
toString
- Overrides:
toString
in classCommonRemoteCacheAttributes
- Returns:
- String details
-