org.apache.jcs.auxiliary.lateral
Class LateralCacheAttributes

java.lang.Object
  extended by org.apache.jcs.auxiliary.AbstractAuxiliaryCacheAttributes
      extended by org.apache.jcs.auxiliary.lateral.LateralCacheAttributes
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, AuxiliaryCacheAttributes, ILateralCacheAttributes
Direct Known Subclasses:
TCPLateralCacheAttributes

public class LateralCacheAttributes
extends AbstractAuxiliaryCacheAttributes
implements java.io.Serializable, ILateralCacheAttributes

This class stores attributes for all of the available lateral cache auxiliaries.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCacheAttributes
cacheName, eventQueuePoolName, eventQueueType, name
 
Fields inherited from interface org.apache.jcs.auxiliary.lateral.behavior.ILateralCacheAttributes
HTTP, TCP, UDP, XMLRPC
 
Fields inherited from interface org.apache.jcs.auxiliary.AuxiliaryCacheAttributes
POOLED_QUEUE_TYPE, SINGLE_QUEUE_TYPE
 
Constructor Summary
LateralCacheAttributes()
           
 
Method Summary
 AuxiliaryCacheAttributes copy()
          Returns a clone of the attributes.
 int getHttpListenerPort()
          Gets the httpListenerPort attribute of the ILateralCacheAttributes object
 java.lang.String getHttpServer()
          Gets the httpServer attribute of the LateralCacheAttributes object
 java.lang.String getHttpServers()
          Gets the httpSrvers attribute of the LateralCacheAttributes object
 boolean getPutOnlyMode()
           
 int getTransmissionType()
          Gets the transmissionType attribute of the LateralCacheAttributes object
 java.lang.String getTransmissionTypeName()
          Gets the transmissionTypeName attribute of the LateralCacheAttributes object
 java.lang.String getUdpMulticastAddr()
          Gets the udpMulticastAddr attribute of the LateralCacheAttributes object
 int getUdpMulticastPort()
          Gets the udpMulticastPort attribute of the LateralCacheAttributes object
 boolean isReceive()
          Should a listener be created.
 void setHttpListenerPort(int val)
          Sets the httpListenerPort attribute of the ILateralCacheAttributes object
 void setHttpServer(java.lang.String val)
          Sets the httpServer attribute of the LateralCacheAttributes object
 void setHttpServers(java.lang.String val)
          Sets the httpServers attribute of the LateralCacheAttributes object
 void setPutOnlyMode(boolean val)
          Sets the outgoingOnlyMode attribute of the ILateralCacheAttributes.
 void setReceive(boolean receive)
           
 void setTransmissionType(int val)
          Sets the transmissionType attribute of the LateralCacheAttributes object
 void setTransmissionTypeName(java.lang.String val)
          Sets the transmissionTypeName attribute of the LateralCacheAttributes object
 void setUdpMulticastAddr(java.lang.String val)
          Sets the udpMulticastAddr attribute of the LateralCacheAttributes object
 void setUdpMulticastPort(int val)
          Sets the udpMulticastPort attribute of the LateralCacheAttributes object
 java.lang.String toString()
           
 
Methods inherited from class org.apache.jcs.auxiliary.AbstractAuxiliaryCacheAttributes
getCacheName, getEventQueuePoolName, getEventQueueType, 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, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
 

Constructor Detail

LateralCacheAttributes

public LateralCacheAttributes()
Method Detail

setHttpServer

public void setHttpServer(java.lang.String val)
Sets the httpServer attribute of the LateralCacheAttributes object

Specified by:
setHttpServer in interface ILateralCacheAttributes
Parameters:
val - The new httpServer value

getHttpServer

public java.lang.String getHttpServer()
Gets the httpServer attribute of the LateralCacheAttributes object

Specified by:
getHttpServer in interface ILateralCacheAttributes
Returns:
The httpServer value

setHttpServers

public void setHttpServers(java.lang.String val)
Sets the httpServers attribute of the LateralCacheAttributes object

Specified by:
setHttpServers in interface ILateralCacheAttributes
Parameters:
val - The new httpServers value

getHttpServers

public java.lang.String getHttpServers()
Gets the httpSrvers attribute of the LateralCacheAttributes object

Specified by:
getHttpServers in interface ILateralCacheAttributes
Returns:
The httpServers value

setHttpListenerPort

public void setHttpListenerPort(int val)
Sets the httpListenerPort attribute of the ILateralCacheAttributes object

Specified by:
setHttpListenerPort in interface ILateralCacheAttributes
Parameters:
val - The new tcpListenerPort value

getHttpListenerPort

public int getHttpListenerPort()
Gets the httpListenerPort attribute of the ILateralCacheAttributes object

Specified by:
getHttpListenerPort in interface ILateralCacheAttributes
Returns:
The httpListenerPort value

setUdpMulticastAddr

public void setUdpMulticastAddr(java.lang.String val)
Sets the udpMulticastAddr attribute of the LateralCacheAttributes object

Specified by:
setUdpMulticastAddr in interface ILateralCacheAttributes
Parameters:
val - The new udpMulticastAddr value

getUdpMulticastAddr

public java.lang.String getUdpMulticastAddr()
Gets the udpMulticastAddr attribute of the LateralCacheAttributes object

Specified by:
getUdpMulticastAddr in interface ILateralCacheAttributes
Returns:
The udpMulticastAddr value

setUdpMulticastPort

public void setUdpMulticastPort(int val)
Sets the udpMulticastPort attribute of the LateralCacheAttributes object

Specified by:
setUdpMulticastPort in interface ILateralCacheAttributes
Parameters:
val - The new udpMulticastPort value

getUdpMulticastPort

public int getUdpMulticastPort()
Gets the udpMulticastPort attribute of the LateralCacheAttributes object

Specified by:
getUdpMulticastPort in interface ILateralCacheAttributes
Returns:
The udpMulticastPort value

setTransmissionType

public void setTransmissionType(int val)
Sets the transmissionType attribute of the LateralCacheAttributes object

Specified by:
setTransmissionType in interface ILateralCacheAttributes
Parameters:
val - The new transmissionType value

getTransmissionType

public int getTransmissionType()
Gets the transmissionType attribute of the LateralCacheAttributes object

Specified by:
getTransmissionType in interface ILateralCacheAttributes
Returns:
The transmissionType value

setTransmissionTypeName

public void setTransmissionTypeName(java.lang.String val)
Sets the transmissionTypeName attribute of the LateralCacheAttributes object

Specified by:
setTransmissionTypeName in interface ILateralCacheAttributes
Parameters:
val - The new transmissionTypeName value

getTransmissionTypeName

public java.lang.String getTransmissionTypeName()
Gets the transmissionTypeName attribute of the LateralCacheAttributes object

Specified by:
getTransmissionTypeName in interface ILateralCacheAttributes
Returns:
The transmissionTypeName value

setPutOnlyMode

public void setPutOnlyMode(boolean val)
Sets the outgoingOnlyMode attribute of the ILateralCacheAttributes. When this is true the lateral cache will only issue put and remove order and will not try to retrieve elements from other lateral caches.

Specified by:
setPutOnlyMode in interface ILateralCacheAttributes
Parameters:
val - The new transmissionTypeName value

getPutOnlyMode

public boolean getPutOnlyMode()
Specified by:
getPutOnlyMode in interface ILateralCacheAttributes
Returns:
The outgoingOnlyMode value. Stops gets from going remote.

copy

public AuxiliaryCacheAttributes copy()
Returns a clone of the attributes.

Specified by:
copy in interface AuxiliaryCacheAttributes
Returns:
Self

setReceive

public void setReceive(boolean receive)
Specified by:
setReceive in interface ILateralCacheAttributes
Parameters:
receive - The receive to set.

isReceive

public boolean isReceive()
Description copied from interface: ILateralCacheAttributes
Should a listener be created. By default this is true.

If this is false the lateral will connect to others but it will not create a listener to receive.

It is possible if two laterals are misconfigured that lateral A may have a region R1 that is not configured for the lateral but another is. And if cache B has region R1 configured for lateral distribution, A will get messages for R1 but not send them.

Specified by:
isReceive in interface ILateralCacheAttributes
Returns:
Returns the receive.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
debug string.


Copyright © 2002-2010 Apache Software Foundation. All Rights Reserved.