|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.auxiliary.AbstractAuxiliaryCacheAttributes
org.apache.jcs.auxiliary.remote.RemoteCacheAttributes
public class RemoteCacheAttributes
These objects are used to configure the remote cache client.
| Field Summary |
|---|
| Fields inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCacheAttributes |
|---|
cacheName, eventQueuePoolName, eventQueueType, name |
| Fields inherited from interface org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheAttributes |
|---|
CLUSTER, DEFAULT_RECEIVE, DEFAULT_RMI_SOCKET_FACTORY_TIMEOUT_MILLIS, DEFAULT_ZOMBIE_QUEUE_MAX_SIZE, LOCAL |
| Fields inherited from interface org.apache.jcs.auxiliary.AuxiliaryCacheAttributes |
|---|
POOLED_QUEUE_TYPE, SINGLE_QUEUE_TYPE |
| Constructor Summary | |
|---|---|
RemoteCacheAttributes()
Default constructor for the RemoteCacheAttributes object |
|
| Method Summary | |
|---|---|
AuxiliaryCacheAttributes |
copy()
Description of the Method |
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()
|
| Methods inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCacheAttributes |
|---|
getCacheName, getEventQueuePoolName, getEventQueueType, getEventQueueTypeFactoryCode, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.jcs.auxiliary.AuxiliaryCacheAttributes |
|---|
getCacheName, getEventQueuePoolName, getEventQueueType, getEventQueueTypeFactoryCode, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName |
| Constructor Detail |
|---|
public RemoteCacheAttributes()
| Method Detail |
|---|
public java.lang.String getRemoteTypeName()
getRemoteTypeName in interface IRemoteCacheAttributespublic void setRemoteTypeName(java.lang.String s)
setRemoteTypeName in interface IRemoteCacheAttributess - The new remoteTypeName valuepublic int getFailoverIndex()
getFailoverIndex in interface IRemoteCacheAttributespublic void setFailoverIndex(int p)
setFailoverIndex in interface IRemoteCacheAttributesp - The new failoverIndex valuepublic java.lang.String[] getFailovers()
getFailovers in interface IRemoteCacheAttributespublic void setFailovers(java.lang.String[] f)
setFailovers in interface IRemoteCacheAttributesf - The new failovers valuepublic int getRemoteType()
getRemoteType in interface IRemoteCacheAttributespublic void setRemoteType(int p)
setRemoteType in interface IRemoteCacheAttributesp - The new remoteType valuepublic AuxiliaryCacheAttributes copy()
AuxiliaryCacheAttributes
copy in interface AuxiliaryCacheAttributespublic java.lang.String getRemoteServiceName()
getRemoteServiceName in interface IRemoteCacheAttributespublic void setRemoteServiceName(java.lang.String s)
setRemoteServiceName in interface IRemoteCacheAttributess - The new remoteServiceName valuepublic java.lang.String getRemoteHost()
getRemoteHost in interface IRemoteCacheAttributespublic void setRemoteHost(java.lang.String s)
setRemoteHost in interface IRemoteCacheAttributess - The new remoteHost valuepublic int getRemotePort()
getRemotePort in interface IRemoteCacheAttributespublic void setRemotePort(int p)
setRemotePort in interface IRemoteCacheAttributesp - The new remotePort valuepublic java.lang.String getClusterServers()
getClusterServers in interface IRemoteCacheAttributespublic void setClusterServers(java.lang.String s)
setClusterServers in interface IRemoteCacheAttributess - The new clusterServers valuepublic java.lang.String getFailoverServers()
getFailoverServers in interface IRemoteCacheAttributespublic void setFailoverServers(java.lang.String s)
setFailoverServers in interface IRemoteCacheAttributess - The new failoverServers valuepublic int getLocalPort()
getLocalPort in interface IRemoteCacheAttributespublic void setLocalPort(int p)
setLocalPort in interface IRemoteCacheAttributesp - The new localPort valuepublic boolean getRemoveUponRemotePut()
getRemoveUponRemotePut in interface IRemoteCacheAttributespublic void setRemoveUponRemotePut(boolean r)
setRemoveUponRemotePut in interface IRemoteCacheAttributesr - The new removeUponRemotePut valuepublic boolean getGetOnly()
getGetOnly in interface IRemoteCacheAttributespublic void setGetOnly(boolean r)
setGetOnly in interface IRemoteCacheAttributesr - The new getOnly valuepublic boolean getLocalClusterConsistency()
getLocalClusterConsistency in interface IRemoteCacheAttributespublic void setLocalClusterConsistency(boolean r)
setLocalClusterConsistency in interface IRemoteCacheAttributesr - The new localClusterConsistency valuepublic java.lang.String getThreadPoolName()
IRemoteCacheAttributesThe default name is "remote_cache_client"
getThreadPoolName in interface IRemoteCacheAttributespublic void setThreadPoolName(java.lang.String name)
IRemoteCacheAttributes
setThreadPoolName in interface IRemoteCacheAttributespublic int getGetTimeoutMillis()
IRemoteCacheAttributes
getGetTimeoutMillis in interface IRemoteCacheAttributespublic void setGetTimeoutMillis(int millis)
IRemoteCacheAttributes
setGetTimeoutMillis in interface IRemoteCacheAttributespublic void setRmiSocketFactoryTimeoutMillis(int rmiSocketFactoryTimeoutMillis)
IRemoteCacheAttributes
setRmiSocketFactoryTimeoutMillis in interface IRemoteCacheAttributesrmiSocketFactoryTimeoutMillis - The rmiSocketFactoryTimeoutMillis to set.public int getRmiSocketFactoryTimeoutMillis()
IRemoteCacheAttributesWe have a default setting. The default rmi behavior should never be used.
getRmiSocketFactoryTimeoutMillis in interface IRemoteCacheAttributespublic void setReceive(boolean receive)
setReceive in interface IRemoteCacheAttributesreceive - 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 IRemoteCacheAttributespublic void setZombieQueueMaxSize(int zombieQueueMaxSize)
setZombieQueueMaxSize in interface IRemoteCacheAttributeszombieQueueMaxSize - The zombieQueueMaxSize to set.public int getZombieQueueMaxSize()
getZombieQueueMaxSize in interface IRemoteCacheAttributespublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||