Interface ICommonRemoteCacheAttributes
- All Superinterfaces:
AuxiliaryCacheAttributes
,Cloneable
,Serializable
- All Known Subinterfaces:
IRemoteCacheAttributes
,IRemoteCacheServerAttributes
- All Known Implementing Classes:
CommonRemoteCacheAttributes
,RemoteCacheAttributes
,RemoteCacheServerAttributes
,RemoteHttpCacheAttributes
This specifies what a remote cache configuration object should look like.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The default timeout for the custom RMI socket factory -
Method Summary
Modifier and TypeMethodDescriptionGets the clusterServers attribute of the IRemoteCacheAttributes objectboolean
Gets the getOnly attribute of the IRemoteCacheAttributes objectGets the location attribute of the RemoteCacheAttributes object.Gets the remoteServiceName attribute of the IRemoteCacheAttributes objectGets the remoteType attribute of the IRemoteCacheAttributes objectGets the remoteTypeName attribute of the IRemoteCacheAttributes objectboolean
Gets the removeUponRemotePut attribute of the IRemoteCacheAttributes objectint
This sets a general timeout on the rmi socket factory.boolean
Should cluster updates be propagated to the localsvoid
Sets the clusterServers attribute of the IRemoteCacheAttributes objectvoid
setGetOnly
(boolean r) Sets the getOnly attribute of the IRemoteCacheAttributes objectvoid
setLocalClusterConsistency
(boolean r) Should cluster updates be propagated to the localsvoid
setRemoteLocation
(String host, int port) Sets the location attribute of the RemoteCacheAttributes object.void
setRemoteLocation
(RemoteLocation location) Sets the location attribute of the RemoteCacheAttributes object.void
Sets the remoteServiceName attribute of the IRemoteCacheAttributes objectvoid
Sets the remoteType attribute of the IRemoteCacheAttributes objectvoid
Sets the remoteTypeName attribute of the IRemoteCacheAttributes objectvoid
setRemoveUponRemotePut
(boolean r) Sets the removeUponRemotePut attribute of the IRemoteCacheAttributes objectvoid
setRmiSocketFactoryTimeoutMillis
(int rmiSocketFactoryTimeoutMillis) This sets a general timeout on the RMI socket factory.Methods inherited from interface org.apache.commons.jcs3.auxiliary.AuxiliaryCacheAttributes
clone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
-
Field Details
-
DEFAULT_RMI_SOCKET_FACTORY_TIMEOUT_MILLIS
The default timeout for the custom RMI socket factory- See Also:
-
-
Method Details
-
getRemoteTypeName
Gets the remoteTypeName attribute of the IRemoteCacheAttributes object- Returns:
- The remoteTypeName value
-
setRemoteTypeName
Sets the remoteTypeName attribute of the IRemoteCacheAttributes object- Parameters:
s
- The new remoteTypeName value
-
getRemoteType
Gets the remoteType attribute of the IRemoteCacheAttributes object- Returns:
- The remoteType value
-
setRemoteType
Sets the remoteType attribute of the IRemoteCacheAttributes object- Parameters:
p
- The new remoteType value
-
getRemoteServiceName
Gets the remoteServiceName attribute of the IRemoteCacheAttributes object- Returns:
- The remoteServiceName value
-
setRemoteServiceName
Sets the remoteServiceName attribute of the IRemoteCacheAttributes object- Parameters:
s
- The new remoteServiceName value
-
setRemoteLocation
Sets the location attribute of the RemoteCacheAttributes object.- Parameters:
location
- The new location value
-
setRemoteLocation
Sets the location attribute of the RemoteCacheAttributes object.- Parameters:
host
- The new remoteHost valueport
- The new remotePort value
-
getRemoteLocation
Gets the location attribute of the RemoteCacheAttributes object.- Returns:
- The remote location value
-
getClusterServers
Gets the clusterServers attribute of the IRemoteCacheAttributes object- Returns:
- The clusterServers value
-
setClusterServers
Sets the clusterServers attribute of the IRemoteCacheAttributes object- Parameters:
s
- The new clusterServers value
-
getRemoveUponRemotePut
boolean getRemoveUponRemotePut()Gets the removeUponRemotePut attribute of the IRemoteCacheAttributes object- Returns:
- The removeUponRemotePut value
-
setRemoveUponRemotePut
Sets the removeUponRemotePut attribute of the IRemoteCacheAttributes object- Parameters:
r
- The new removeUponRemotePut value
-
getGetOnly
boolean getGetOnly()Gets the getOnly attribute of the IRemoteCacheAttributes object- Returns:
- The getOnly value
-
setGetOnly
Sets the getOnly attribute of the IRemoteCacheAttributes object- Parameters:
r
- The new getOnly value
-
isLocalClusterConsistency
boolean isLocalClusterConsistency()Should cluster updates be propagated to the locals- Returns:
- The localClusterConsistency value
-
setLocalClusterConsistency
Should cluster updates be propagated to the locals- Parameters:
r
- The new localClusterConsistency value
-
getRmiSocketFactoryTimeoutMillis
This sets a general timeout on the rmi socket factory. By default the socket factory will block forever.We have a default setting. The default rmi behavior should never be used.
- Returns:
- int milliseconds
-
setRmiSocketFactoryTimeoutMillis
This sets a general timeout on the RMI socket factory. By default the socket factory will block forever.- Parameters:
rmiSocketFactoryTimeoutMillis
-
-