Interface IRemoteCacheServerAttributes
- All Superinterfaces:
AuxiliaryCacheAttributes
,Cloneable
,ICommonRemoteCacheAttributes
,Serializable
- All Known Implementing Classes:
RemoteCacheServerAttributes
This defines the minimal behavior for the objects that are used to configure
the remote cache server.
-
Field Summary
Fields inherited from interface org.apache.commons.jcs3.auxiliary.remote.behavior.ICommonRemoteCacheAttributes
DEFAULT_RMI_SOCKET_FACTORY_TIMEOUT_MILLIS
-
Method Summary
Modifier and TypeMethodDescriptionGets the ConfigFileName attribute of the IRemoteCacheAttributes object.long
int
Gets the localPort attribute of the IRemoteCacheAttributes object.boolean
Should we try to get remotely when the request does not come in from a cluster.boolean
Deprecated.Always true, to be removedboolean
Should we try to keep the registry alivevoid
setAllowClusterGet
(boolean r) Should cluster updates be propagated to the locals.void
Sets the ConfigFileName attribute of the IRemoteCacheAttributes object.void
setRegistryKeepAliveDelayMillis
(long registryKeepAliveDelayMillis) void
setServicePort
(int p) Sets the localPort attribute of the IRemoteCacheAttributes object.void
setStartRegistry
(boolean startRegistry) Deprecated.Always true, to be removedvoid
setUseRegistryKeepAlive
(boolean useRegistryKeepAlive) Should we try to keep the registry aliveMethods 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
-
Method Details
-
getServicePort
int getServicePort()Gets the localPort attribute of the IRemoteCacheAttributes object.- Returns:
- The localPort value
-
setServicePort
Sets the localPort attribute of the IRemoteCacheAttributes object.- Parameters:
p
- The new localPort value
-
isAllowClusterGet
boolean isAllowClusterGet()Should we try to get remotely when the request does not come in from a cluster. If local L1 asks remote server R1 for element A and R1 doesn't have it, should R1 look remotely? The difference is between a local and a remote update. The local update stays local. Normal updates, removes, etc, stay local when they come from a client. If this is set to true, then they can go remote.- Returns:
- The localClusterConsistency value
-
setAllowClusterGet
Should cluster updates be propagated to the locals.- Parameters:
r
- The new localClusterConsistency value
-
getConfigFileName
Gets the ConfigFileName attribute of the IRemoteCacheAttributes object.- Returns:
- The configuration file name
-
setConfigFileName
Sets the ConfigFileName attribute of the IRemoteCacheAttributes object.- Parameters:
s
- The new configuration file name
-
setUseRegistryKeepAlive
Should we try to keep the registry alive- Parameters:
useRegistryKeepAlive
- the useRegistryKeepAlive to set
-
setStartRegistry
Deprecated.Always true, to be removedShould we start the registry- Parameters:
startRegistry
- the startRegistry to set
-
isStartRegistry
Deprecated.Always true, to be removedShould we start the registry- Returns:
- the startRegistry
-
isUseRegistryKeepAlive
boolean isUseRegistryKeepAlive()Should we try to keep the registry alive- Returns:
- the useRegistryKeepAlive
-
setRegistryKeepAliveDelayMillis
- Parameters:
registryKeepAliveDelayMillis
- the registryKeepAliveDelayMillis to set
-
getRegistryKeepAliveDelayMillis
- Returns:
- the registryKeepAliveDelayMillis
-