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.booleanGets 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.booleanGets the removeUponRemotePut attribute of the RemoteCacheAttributes object.intThis sets a general timeout on the rmi socket factory.booleanShould cluster updates be propagated to the locals.voidSets the clusterServers attribute of the RemoteCacheAttributes object.voidsetGetOnly(boolean r) Sets the getOnly attribute of the RemoteCacheAttributes objectvoidsetLocalClusterConsistency(boolean r) Should cluster updates be propagated to the locals.voidsetRemoteLocation(String host, int port) Sets the location attribute of the RemoteCacheAttributes object.voidsetRemoteLocation(RemoteLocation location) Sets the location attribute of the RemoteCacheAttributes object.voidSets the remoteServiceName attribute of the RemoteCacheAttributes object.voidSets the remoteType attribute of the RemoteCacheAttributes object.voidSets the remoteTypeName attribute of the RemoteCacheAttributes object.voidsetRemoveUponRemotePut(boolean r) Sets the removeUponRemotePut attribute of the RemoteCacheAttributes object.voidsetRmiSocketFactoryTimeoutMillis(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, 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, 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:
getRemoteTypeNamein interfaceICommonRemoteCacheAttributes- Returns:
- The remoteTypeName value
-
setRemoteTypeName
Sets the remoteTypeName attribute of the RemoteCacheAttributes object.- Specified by:
setRemoteTypeNamein interfaceICommonRemoteCacheAttributes- Parameters:
s- The new remoteTypeName value
-
getRemoteType
Gets the remoteType attribute of the RemoteCacheAttributes object.- Specified by:
getRemoteTypein interfaceICommonRemoteCacheAttributes- Returns:
- The remoteType value
-
setRemoteType
Sets the remoteType attribute of the RemoteCacheAttributes object.- Specified by:
setRemoteTypein interfaceICommonRemoteCacheAttributes- Parameters:
p- The new remoteType value
-
getRemoteServiceName
Gets the remoteServiceName attribute of the RemoteCacheAttributes object.- Specified by:
getRemoteServiceNamein interfaceICommonRemoteCacheAttributes- Returns:
- The remoteServiceName value
-
setRemoteServiceName
Sets the remoteServiceName attribute of the RemoteCacheAttributes object.- Specified by:
setRemoteServiceNamein interfaceICommonRemoteCacheAttributes- Parameters:
s- The new remoteServiceName value
-
setRemoteLocation
Sets the location attribute of the RemoteCacheAttributes object.- Specified by:
setRemoteLocationin interfaceICommonRemoteCacheAttributes- Parameters:
location- The new location value
-
setRemoteLocation
Sets the location attribute of the RemoteCacheAttributes object.- Specified by:
setRemoteLocationin interfaceICommonRemoteCacheAttributes- Parameters:
host- The new remoteHost valueport- The new remotePort value
-
getRemoteLocation
Gets the location attribute of the RemoteCacheAttributes object.- Specified by:
getRemoteLocationin interfaceICommonRemoteCacheAttributes- Returns:
- The remote location value
-
getClusterServers
Gets the clusterServers attribute of the RemoteCacheAttributes object.- Specified by:
getClusterServersin interfaceICommonRemoteCacheAttributes- Returns:
- The clusterServers value
-
setClusterServers
Sets the clusterServers attribute of the RemoteCacheAttributes object.- Specified by:
setClusterServersin interfaceICommonRemoteCacheAttributes- Parameters:
s- The new clusterServers value
-
getRemoveUponRemotePut
Gets the removeUponRemotePut attribute of the RemoteCacheAttributes object.- Specified by:
getRemoveUponRemotePutin interfaceICommonRemoteCacheAttributes- Returns:
- The removeUponRemotePut value
-
setRemoveUponRemotePut
Sets the removeUponRemotePut attribute of the RemoteCacheAttributes object.- Specified by:
setRemoveUponRemotePutin interfaceICommonRemoteCacheAttributes- Parameters:
r- The new removeUponRemotePut value
-
getGetOnly
Gets the getOnly attribute of the RemoteCacheAttributes object.- Specified by:
getGetOnlyin interfaceICommonRemoteCacheAttributes- Returns:
- The getOnly value
-
setGetOnly
Sets the getOnly attribute of the RemoteCacheAttributes object- Specified by:
setGetOnlyin interfaceICommonRemoteCacheAttributes- Parameters:
r- The new getOnly value
-
isLocalClusterConsistency
Should cluster updates be propagated to the locals.- Specified by:
isLocalClusterConsistencyin interfaceICommonRemoteCacheAttributes- Returns:
- The localClusterConsistency value
-
setLocalClusterConsistency
Should cluster updates be propagated to the locals.- Specified by:
setLocalClusterConsistencyin interfaceICommonRemoteCacheAttributes- Parameters:
r- The new localClusterConsistency value
-
setRmiSocketFactoryTimeoutMillis
Description copied from interface:ICommonRemoteCacheAttributesThis sets a general timeout on the RMI socket factory. By default the socket factory will block forever.- Specified by:
setRmiSocketFactoryTimeoutMillisin interfaceICommonRemoteCacheAttributes- Parameters:
rmiSocketFactoryTimeoutMillis- The rmiSocketFactoryTimeoutMillis to set.
-
getRmiSocketFactoryTimeoutMillis
Description copied from interface:ICommonRemoteCacheAttributesThis 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:
getRmiSocketFactoryTimeoutMillisin interfaceICommonRemoteCacheAttributes- Returns:
- Returns the rmiSocketFactoryTimeoutMillis.
-
toString
-