public class RemoteCacheAttributes extends AbstractAuxiliaryCacheAttributes implements IRemoteCacheAttributes
cacheName, eventQueuePoolName, eventQueueType, name
CLUSTER, DEFAULT_RECEIVE, DEFAULT_RMI_SOCKET_FACTORY_TIMEOUT_MILLIS, DEFAULT_ZOMBIE_QUEUE_MAX_SIZE, LOCAL
POOLED_QUEUE_TYPE, SINGLE_QUEUE_TYPE
Constructor and Description |
---|
RemoteCacheAttributes()
Default constructor for the RemoteCacheAttributes object
|
Modifier and Type | Method and Description |
---|---|
AuxiliaryCacheAttributes |
copy()
Clones
|
java.lang.String |
getClusterServers()
Gets the clusterServers attribute of the RemoteCacheAttributes object.
|
int |
getFailoverIndex()
Gets the failoverIndex attribute of the RemoteCacheAttributes object.
|
java.lang.String[] |
getFailovers()
Gets the failovers attribute of the RemoteCacheAttributes object.
|
java.lang.String |
getFailoverServers()
Gets the failoverServers attribute of the RemoteCacheAttributes object.
|
boolean |
getGetOnly()
Gets the getOnly attribute of the RemoteCacheAttributes object.
|
int |
getGetTimeoutMillis()
-1 and 0 mean no timeout, this is the default if the timeout is -1 or 0, no threadpool will
be used.
|
boolean |
getLocalClusterConsistency()
Should cluster updates be propogated to the locals.
|
int |
getLocalPort()
Gets the localPort attribute of the RemoteCacheAttributes object.
|
java.lang.String |
getRemoteHost()
Gets the remoteHost attribute of the RemoteCacheAttributes object.
|
int |
getRemotePort()
Gets the remotePort attribute of the RemoteCacheAttributes object.
|
java.lang.String |
getRemoteServiceName()
Gets the remoteServiceName attribute of the RemoteCacheAttributes object.
|
int |
getRemoteType()
Gets the remoteType attribute of the RemoteCacheAttributes object.
|
java.lang.String |
getRemoteTypeName()
Gets the remoteTypeName attribute of the RemoteCacheAttributes object.
|
boolean |
getRemoveUponRemotePut()
Gets the removeUponRemotePut attribute of the RemoteCacheAttributes object.
|
int |
getRmiSocketFactoryTimeoutMillis()
This sets a general timeout on the rmi socket factory.
|
java.lang.String |
getThreadPoolName()
The thread pool the remote cache should use.
|
int |
getZombieQueueMaxSize()
The number of elements the zombie queue will hold.
|
boolean |
isReceive()
If RECEIVE is false then the remote cache will not register a listener with the remote
server.
|
void |
setClusterServers(java.lang.String s)
Sets the clusterServers attribute of the RemoteCacheAttributes object.
|
void |
setFailoverIndex(int p)
Sets the failoverIndex attribute of the RemoteCacheAttributes object.
|
void |
setFailovers(java.lang.String[] f)
Sets the failovers attribute of the RemoteCacheAttributes object.
|
void |
setFailoverServers(java.lang.String s)
Sets the failoverServers attribute of the RemoteCacheAttributes object.
|
void |
setGetOnly(boolean r)
Sets the getOnly attribute of the RemoteCacheAttributes object
|
void |
setGetTimeoutMillis(int millis)
-1 means no timeout, this is the default if the timeout is -1 or 0, no threadpool will be
used.
|
void |
setLocalClusterConsistency(boolean r)
Should cluster updates be propogated to the locals.
|
void |
setLocalPort(int p)
Sets the localPort attribute of the RemoteCacheAttributes object
|
void |
setReceive(boolean receive)
By default this option is true.
|
void |
setRemoteHost(java.lang.String s)
Sets the remoteHost attribute of the RemoteCacheAttributes object.
|
void |
setRemotePort(int p)
Sets the remotePort attribute of the RemoteCacheAttributes object.
|
void |
setRemoteServiceName(java.lang.String s)
Sets the remoteServiceName attribute of the RemoteCacheAttributes object.
|
void |
setRemoteType(int p)
Sets the remoteType attribute of the RemoteCacheAttributes object.
|
void |
setRemoteTypeName(java.lang.String s)
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.
|
void |
setThreadPoolName(java.lang.String name)
Set the anme of the pool to use.
|
void |
setZombieQueueMaxSize(int zombieQueueMaxSize)
The number of elements the zombie queue will hold.
|
java.lang.String |
toString() |
getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
public RemoteCacheAttributes()
public java.lang.String getRemoteTypeName()
getRemoteTypeName
in interface IRemoteCacheAttributes
public void setRemoteTypeName(java.lang.String s)
setRemoteTypeName
in interface IRemoteCacheAttributes
s
- The new remoteTypeName valuepublic int getFailoverIndex()
getFailoverIndex
in interface IRemoteCacheAttributes
public void setFailoverIndex(int p)
setFailoverIndex
in interface IRemoteCacheAttributes
p
- The new failoverIndex valuepublic java.lang.String[] getFailovers()
getFailovers
in interface IRemoteCacheAttributes
public void setFailovers(java.lang.String[] f)
setFailovers
in interface IRemoteCacheAttributes
f
- The new failovers valuepublic int getRemoteType()
getRemoteType
in interface IRemoteCacheAttributes
public void setRemoteType(int p)
setRemoteType
in interface IRemoteCacheAttributes
p
- The new remoteType valuepublic AuxiliaryCacheAttributes copy()
AuxiliaryCacheAttributes
copy
in interface AuxiliaryCacheAttributes
public java.lang.String getRemoteServiceName()
getRemoteServiceName
in interface IRemoteCacheAttributes
public void setRemoteServiceName(java.lang.String s)
setRemoteServiceName
in interface IRemoteCacheAttributes
s
- The new remoteServiceName valuepublic java.lang.String getRemoteHost()
getRemoteHost
in interface IRemoteCacheAttributes
public void setRemoteHost(java.lang.String s)
setRemoteHost
in interface IRemoteCacheAttributes
s
- The new remoteHost valuepublic int getRemotePort()
getRemotePort
in interface IRemoteCacheAttributes
public void setRemotePort(int p)
setRemotePort
in interface IRemoteCacheAttributes
p
- The new remotePort valuepublic java.lang.String getClusterServers()
getClusterServers
in interface IRemoteCacheAttributes
public void setClusterServers(java.lang.String s)
setClusterServers
in interface IRemoteCacheAttributes
s
- The new clusterServers valuepublic java.lang.String getFailoverServers()
getFailoverServers
in interface IRemoteCacheAttributes
public void setFailoverServers(java.lang.String s)
setFailoverServers
in interface IRemoteCacheAttributes
s
- The new failoverServers valuepublic int getLocalPort()
getLocalPort
in interface IRemoteCacheAttributes
public void setLocalPort(int p)
setLocalPort
in interface IRemoteCacheAttributes
p
- The new localPort valuepublic boolean getRemoveUponRemotePut()
getRemoveUponRemotePut
in interface IRemoteCacheAttributes
public void setRemoveUponRemotePut(boolean r)
setRemoveUponRemotePut
in interface IRemoteCacheAttributes
r
- The new removeUponRemotePut valuepublic boolean getGetOnly()
getGetOnly
in interface IRemoteCacheAttributes
public void setGetOnly(boolean r)
setGetOnly
in interface IRemoteCacheAttributes
r
- The new getOnly valuepublic boolean getLocalClusterConsistency()
getLocalClusterConsistency
in interface IRemoteCacheAttributes
public void setLocalClusterConsistency(boolean r)
setLocalClusterConsistency
in interface IRemoteCacheAttributes
r
- The new localClusterConsistency valuepublic java.lang.String getThreadPoolName()
IRemoteCacheAttributes
The default name is "remote_cache_client"
getThreadPoolName
in interface IRemoteCacheAttributes
public void setThreadPoolName(java.lang.String name)
IRemoteCacheAttributes
setThreadPoolName
in interface IRemoteCacheAttributes
name
- public int getGetTimeoutMillis()
IRemoteCacheAttributes
getGetTimeoutMillis
in interface IRemoteCacheAttributes
public void setGetTimeoutMillis(int millis)
IRemoteCacheAttributes
setGetTimeoutMillis
in interface IRemoteCacheAttributes
millis
- public void setRmiSocketFactoryTimeoutMillis(int rmiSocketFactoryTimeoutMillis)
IRemoteCacheAttributes
setRmiSocketFactoryTimeoutMillis
in interface IRemoteCacheAttributes
rmiSocketFactoryTimeoutMillis
- The rmiSocketFactoryTimeoutMillis to set.public int getRmiSocketFactoryTimeoutMillis()
IRemoteCacheAttributes
We have a default setting. The default rmi behavior should never be used.
getRmiSocketFactoryTimeoutMillis
in interface IRemoteCacheAttributes
public void setReceive(boolean receive)
setReceive
in interface IRemoteCacheAttributes
receive
- public boolean isReceive()
If you set this option to false, you should set your locl memory size to 0.
The remote cache manager uses this value to decide whether or not to register a listener.
isReceive
in interface IRemoteCacheAttributes
public void setZombieQueueMaxSize(int zombieQueueMaxSize)
setZombieQueueMaxSize
in interface IRemoteCacheAttributes
zombieQueueMaxSize
- The zombieQueueMaxSize to set.public int getZombieQueueMaxSize()
getZombieQueueMaxSize
in interface IRemoteCacheAttributes
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.