org.apache.jcs.auxiliary.remote.server.behavior
Interface IRemoteCacheServerAttributes

All Superinterfaces:
AuxiliaryCacheAttributes, Cloneable, ICommonRemoteCacheAttributes, Serializable
All Known Implementing Classes:
RemoteCacheServerAttributes

public interface IRemoteCacheServerAttributes
extends ICommonRemoteCacheAttributes

This defines the minimal behavior for the objects that are used to configure the remote cache server.


Field Summary
 
Fields inherited from interface org.apache.jcs.auxiliary.remote.behavior.ICommonRemoteCacheAttributes
DEFAULT_RMI_SOCKET_FACTORY_TIMEOUT_MILLIS
 
Fields inherited from interface org.apache.jcs.auxiliary.AuxiliaryCacheAttributes
POOLED_QUEUE_TYPE, SINGLE_QUEUE_TYPE
 
Method Summary
 String getConfigFileName()
          Gets the ConfigFileName attribute of the IRemoteCacheAttributes object.
 long getRegistryKeepAliveDelayMillis()
           
 int getServicePort()
          Gets the localPort attribute of the IRemoteCacheAttributes object.
 boolean isAllowClusterGet()
          Should we try to get remotely when the request does not come in from a cluster.
 boolean isStartRegistry()
          Should we start the registry
 boolean isUseRegistryKeepAlive()
          Should we try to keep the registry alive
 void setAllowClusterGet(boolean r)
          Should cluster updates be propagated to the locals.
 void setConfigFileName(String s)
          Sets the ConfigFileName attribute of the IRemoteCacheAttributes object.
 void setRegistryKeepAliveDelayMillis(long registryKeepAliveDelayMillis)
           
 void setServicePort(int p)
          Sets the localPort attribute of the IRemoteCacheAttributes object.
 void setStartRegistry(boolean startRegistry)
          Should we start the registry
 void setUseRegistryKeepAlive(boolean useRegistryKeepAlive)
          Should we try to keep the registry alive
 
Methods inherited from interface org.apache.jcs.auxiliary.remote.behavior.ICommonRemoteCacheAttributes
getClusterServers, getGetOnly, getRemoteHost, getRemotePort, getRemoteServiceName, getRemoteType, getRemoteTypeName, getRemoveUponRemotePut, getRmiSocketFactoryTimeoutMillis, isLocalClusterConsistency, setClusterServers, setGetOnly, setLocalClusterConsistency, setRemoteHost, setRemotePort, setRemoteServiceName, setRemoteType, setRemoteTypeName, setRemoveUponRemotePut, setRmiSocketFactoryTimeoutMillis
 
Methods inherited from interface org.apache.jcs.auxiliary.AuxiliaryCacheAttributes
copy, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
 

Method Detail

getServicePort

int getServicePort()
Gets the localPort attribute of the IRemoteCacheAttributes object.

Returns:
The localPort value

setServicePort

void setServicePort(int p)
Sets the localPort attribute of the IRemoteCacheAttributes object.

Parameters:
p - The new localPort value

isAllowClusterGet

boolean isAllowClusterGet()
Should we try to get remotely when the request does not come in from a cluster. If local L1 asks remote server R1 for element A and R1 doesn't have it, should R1 look remotely? The difference is between a local and a remote update. The local update stays local. Normal updates, removes, etc, stay local when they come from a client. If this is set to true, then they can go remote.

Returns:
The localClusterConsistency value

setAllowClusterGet

void setAllowClusterGet(boolean r)
Should cluster updates be propagated to the locals.

Parameters:
r - The new localClusterConsistency value

getConfigFileName

String getConfigFileName()
Gets the ConfigFileName attribute of the IRemoteCacheAttributes object.

Returns:
The clusterServers value

setConfigFileName

void setConfigFileName(String s)
Sets the ConfigFileName attribute of the IRemoteCacheAttributes object.

Parameters:
s - The new clusterServers value

setUseRegistryKeepAlive

void setUseRegistryKeepAlive(boolean useRegistryKeepAlive)
Should we try to keep the registry alive

Parameters:
useRegistryKeepAlive - the useRegistryKeepAlive to set

setStartRegistry

void setStartRegistry(boolean startRegistry)
Should we start the registry

Parameters:
startRegistry - the startRegistry to set

isStartRegistry

boolean isStartRegistry()
Should we start the registry

Returns:
the startRegistry

isUseRegistryKeepAlive

boolean isUseRegistryKeepAlive()
Should we try to keep the registry alive

Returns:
the useRegistryKeepAlive

setRegistryKeepAliveDelayMillis

void setRegistryKeepAliveDelayMillis(long registryKeepAliveDelayMillis)
Parameters:
registryKeepAliveDelayMillis - the registryKeepAliveDelayMillis to set

getRegistryKeepAliveDelayMillis

long getRegistryKeepAliveDelayMillis()
Returns:
the registryKeepAliveDelayMillis


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.