Class CommonRemoteCacheAttributes
java.lang.Object
org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheAttributes
org.apache.commons.jcs3.auxiliary.remote.CommonRemoteCacheAttributes
- All Implemented Interfaces:
Serializable
,Cloneable
,AuxiliaryCacheAttributes
,ICommonRemoteCacheAttributes
- Direct Known Subclasses:
RemoteCacheAttributes
,RemoteCacheServerAttributes
public class CommonRemoteCacheAttributes
extends AbstractAuxiliaryCacheAttributes
implements ICommonRemoteCacheAttributes
Attributes common to remote cache client and 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 clusterServers attribute of the RemoteCacheAttributes object.boolean
Gets the getOnly attribute of the RemoteCacheAttributes object.Gets the location attribute of the RemoteCacheAttributes object.Gets the remoteServiceName attribute of the RemoteCacheAttributes object.Gets the remoteType attribute of the RemoteCacheAttributes object.Gets the remoteTypeName attribute of the RemoteCacheAttributes object.boolean
Gets the removeUponRemotePut attribute of the RemoteCacheAttributes object.int
This sets a general timeout on the rmi socket factory.boolean
Should cluster updates be propagated to the locals.void
Sets the clusterServers attribute of the RemoteCacheAttributes object.void
setGetOnly
(boolean r) Sets the getOnly attribute of the RemoteCacheAttributes objectvoid
setLocalClusterConsistency
(boolean r) Should cluster updates be propagated to the locals.void
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 RemoteCacheAttributes object.void
Sets the remoteType attribute of the RemoteCacheAttributes object.void
Sets the remoteTypeName attribute of the RemoteCacheAttributes object.void
setRemoveUponRemotePut
(boolean r) Sets the removeUponRemotePut attribute of the RemoteCacheAttributes object.void
setRmiSocketFactoryTimeoutMillis
(int rmiSocketFactoryTimeoutMillis) This sets a general timeout on the RMI socket factory.toString()
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
-
Constructor Details
-
CommonRemoteCacheAttributes
public CommonRemoteCacheAttributes()Default constructor for the RemoteCacheAttributes object
-
-
Method Details
-
getRemoteTypeName
Gets the remoteTypeName attribute of the RemoteCacheAttributes object.- Specified by:
getRemoteTypeName
in interfaceICommonRemoteCacheAttributes
- Returns:
- The remoteTypeName value
-
setRemoteTypeName
Sets the remoteTypeName attribute of the RemoteCacheAttributes object.- Specified by:
setRemoteTypeName
in interfaceICommonRemoteCacheAttributes
- Parameters:
s
- The new remoteTypeName value
-
getRemoteType
Gets the remoteType attribute of the RemoteCacheAttributes object.- Specified by:
getRemoteType
in interfaceICommonRemoteCacheAttributes
- Returns:
- The remoteType value
-
setRemoteType
Sets the remoteType attribute of the RemoteCacheAttributes object.- Specified by:
setRemoteType
in interfaceICommonRemoteCacheAttributes
- Parameters:
p
- The new remoteType value
-
getRemoteServiceName
Gets the remoteServiceName attribute of the RemoteCacheAttributes object.- Specified by:
getRemoteServiceName
in interfaceICommonRemoteCacheAttributes
- Returns:
- The remoteServiceName value
-
setRemoteServiceName
Sets the remoteServiceName attribute of the RemoteCacheAttributes object.- Specified by:
setRemoteServiceName
in interfaceICommonRemoteCacheAttributes
- Parameters:
s
- The new remoteServiceName value
-
setRemoteLocation
Sets the location attribute of the RemoteCacheAttributes object.- Specified by:
setRemoteLocation
in interfaceICommonRemoteCacheAttributes
- Parameters:
location
- The new location value
-
setRemoteLocation
Sets the location attribute of the RemoteCacheAttributes object.- Specified by:
setRemoteLocation
in interfaceICommonRemoteCacheAttributes
- Parameters:
host
- The new remoteHost valueport
- The new remotePort value
-
getRemoteLocation
Gets the location attribute of the RemoteCacheAttributes object.- Specified by:
getRemoteLocation
in interfaceICommonRemoteCacheAttributes
- Returns:
- The remote location value
-
getClusterServers
Gets the clusterServers attribute of the RemoteCacheAttributes object.- Specified by:
getClusterServers
in interfaceICommonRemoteCacheAttributes
- Returns:
- The clusterServers value
-
setClusterServers
Sets the clusterServers attribute of the RemoteCacheAttributes object.- Specified by:
setClusterServers
in interfaceICommonRemoteCacheAttributes
- Parameters:
s
- The new clusterServers value
-
getRemoveUponRemotePut
Gets the removeUponRemotePut attribute of the RemoteCacheAttributes object.- Specified by:
getRemoveUponRemotePut
in interfaceICommonRemoteCacheAttributes
- Returns:
- The removeUponRemotePut value
-
setRemoveUponRemotePut
Sets the removeUponRemotePut attribute of the RemoteCacheAttributes object.- Specified by:
setRemoveUponRemotePut
in interfaceICommonRemoteCacheAttributes
- Parameters:
r
- The new removeUponRemotePut value
-
getGetOnly
Gets the getOnly attribute of the RemoteCacheAttributes object.- Specified by:
getGetOnly
in interfaceICommonRemoteCacheAttributes
- Returns:
- The getOnly value
-
setGetOnly
Sets the getOnly attribute of the RemoteCacheAttributes object- Specified by:
setGetOnly
in interfaceICommonRemoteCacheAttributes
- Parameters:
r
- The new getOnly value
-
isLocalClusterConsistency
Should cluster updates be propagated to the locals.- Specified by:
isLocalClusterConsistency
in interfaceICommonRemoteCacheAttributes
- Returns:
- The localClusterConsistency value
-
setLocalClusterConsistency
Should cluster updates be propagated to the locals.- Specified by:
setLocalClusterConsistency
in interfaceICommonRemoteCacheAttributes
- Parameters:
r
- The new localClusterConsistency value
-
setRmiSocketFactoryTimeoutMillis
Description copied from interface:ICommonRemoteCacheAttributes
This sets a general timeout on the RMI socket factory. By default the socket factory will block forever.- Specified by:
setRmiSocketFactoryTimeoutMillis
in interfaceICommonRemoteCacheAttributes
- Parameters:
rmiSocketFactoryTimeoutMillis
- The rmiSocketFactoryTimeoutMillis to set.
-
getRmiSocketFactoryTimeoutMillis
Description copied from interface:ICommonRemoteCacheAttributes
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.
- Specified by:
getRmiSocketFactoryTimeoutMillis
in interfaceICommonRemoteCacheAttributes
- Returns:
- Returns the rmiSocketFactoryTimeoutMillis.
-
toString
-