org.apache.jcs.auxiliary.lateral.behavior
Interface ILateralCacheAttributes

All Superinterfaces:
AuxiliaryCacheAttributes, java.lang.Cloneable, java.io.Serializable
All Known Implementing Classes:
LateralCacheAttributes

public interface ILateralCacheAttributes
extends java.io.Serializable, AuxiliaryCacheAttributes

Description of the Interface


Field Summary
static int HTTP
           
static int JAVAGROUPS
           
static int TCP
           
static int UDP
           
static int XMLRPC
           
 
Fields inherited from interface org.apache.jcs.auxiliary.AuxiliaryCacheAttributes
POOLED_QUEUE_TYPE, SINGLE_QUEUE_TYPE
 
Method Summary
 int getHttpListenerPort()
          Gets the httpListenerPort attribute of the ILateralCacheAttributes object
 java.lang.String getHttpServer()
          Gets the httpServer attribute of the ILateralCacheAttributes object
 java.lang.String getHttpServers()
          Gets the httpSrvers attribute of the LateralCacheAttributes object
 java.lang.String getJGChannelProperties()
           
 boolean getPutOnlyMode()
           
 int getTcpListenerPort()
          Gets the tcpListenerPort attribute of the ILateralCacheAttributes object
 java.lang.String getTcpServer()
          Gets the tcpServer attribute of the ILateralCacheAttributes object
 java.lang.String getTcpServers()
          Gets the tcpServers attribute of the ILateralCacheAttributes object
 int getTransmissionType()
          Gets the transmissionType attribute of the ILateralCacheAttributes object
 java.lang.String getTransmissionTypeName()
          Gets the transmissionTypeName attribute of the ILateralCacheAttributes object
 java.lang.String getUdpDiscoveryAddr()
          The address to broadcast to if UDPDiscovery is enabled.
 int getUdpDiscoveryPort()
          The port to use if UDPDiscovery is enabled.
 java.lang.String getUdpMulticastAddr()
          Gets the udpMulticastAddr attribute of the ILateralCacheAttributes object
 int getUdpMulticastPort()
          Gets the udpMulticastPort attribute of the ILateralCacheAttributes object
 boolean isReceive()
          Should a listener be created.
 boolean isUdpDiscoveryEnabled()
          Whether or not TCP laterals can try to find each other by multicast communication.
 void setHttpListenerPort(int val)
          Sets the httpListenerPort attribute of the ILateralCacheAttributes object
 void setHttpServer(java.lang.String val)
          Sets the httpServer attribute of the ILateralCacheAttributes object
 void setHttpServers(java.lang.String val)
          Sets the httpServers attribute of the LateralCacheAttributes object
 void setJGChannelProperties(java.lang.String channelProperties)
          Sets the Javagroups channel propeties.
 void setPutOnlyMode(boolean val)
          Sets the putOnlyMode attribute of the ILateralCacheAttributes.
 void setReceive(boolean receive)
           
 void setTcpListenerPort(int val)
          Sets the tcpListenerPort attribute of the ILateralCacheAttributes object
 void setTcpServer(java.lang.String val)
          Sets the tcpServer attribute of the ILateralCacheAttributes object
 void setTcpServers(java.lang.String val)
          Sets the tcpServers attribute of the ILateralCacheAttributes object
 void setTransmissionType(int val)
          Sets the transmissionType attribute of the ILateralCacheAttributes object
 void setTransmissionTypeName(java.lang.String val)
          Sets the transmissionTypeName attribute of the ILateralCacheAttributes object
 void setUdpDiscoveryAddr(java.lang.String udpDiscoveryAddr)
          Sets the address to broadcast to if UDPDiscovery is enabled.
 void setUdpDiscoveryEnabled(boolean udpDiscoveryEnabled)
          Can setup UDP Discovery.
 void setUdpDiscoveryPort(int udpDiscoveryPort)
          Sets the port to use if UDPDiscovery is enabled.
 void setUdpMulticastAddr(java.lang.String val)
          Sets the udpMulticastAddr attribute of the ILateralCacheAttributes object
 void setUdpMulticastPort(int val)
          Sets the udpMulticastPort attribute of the ILateralCacheAttributes object
 
Methods inherited from interface org.apache.jcs.auxiliary.AuxiliaryCacheAttributes
copy, getCacheName, getEventQueuePoolName, getEventQueueType, getEventQueueTypeFactoryCode, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
 

Field Detail

HTTP

public static final int HTTP
See Also:
Constant Field Values

UDP

public static final int UDP
See Also:
Constant Field Values

TCP

public static final int TCP
See Also:
Constant Field Values

XMLRPC

public static final int XMLRPC
See Also:
Constant Field Values

JAVAGROUPS

public static final int JAVAGROUPS
See Also:
Constant Field Values
Method Detail

setHttpServer

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

Parameters:
val - The new httpServer value

getHttpServer

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

Returns:
The httpServer value

setTcpServer

public void setTcpServer(java.lang.String val)
Sets the tcpServer attribute of the ILateralCacheAttributes object

Parameters:
val - The new tcpServer value

getTcpServer

public java.lang.String getTcpServer()
Gets the tcpServer attribute of the ILateralCacheAttributes object

Returns:
The tcpServer value

setTcpServers

public void setTcpServers(java.lang.String val)
Sets the tcpServers attribute of the ILateralCacheAttributes object

Parameters:
val - The new tcpServers value

getTcpServers

public java.lang.String getTcpServers()
Gets the tcpServers attribute of the ILateralCacheAttributes object

Returns:
The tcpServers value

setTcpListenerPort

public void setTcpListenerPort(int val)
Sets the tcpListenerPort attribute of the ILateralCacheAttributes object

Parameters:
val - The new tcpListenerPort value

getTcpListenerPort

public int getTcpListenerPort()
Gets the tcpListenerPort attribute of the ILateralCacheAttributes object

Returns:
The tcpListenerPort value

setHttpListenerPort

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

Parameters:
val - The new tcpListenerPort value

getHttpListenerPort

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

Returns:
The httpListenerPort value

setHttpServers

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

Parameters:
val - The new httpServers value

getHttpServers

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

Returns:
The httpServers value

setUdpMulticastAddr

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

Parameters:
val - The new udpMulticastAddr value

getUdpMulticastAddr

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

Returns:
The udpMulticastAddr value

setUdpMulticastPort

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

Parameters:
val - The new udpMulticastPort value

getUdpMulticastPort

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

Returns:
The udpMulticastPort value

setTransmissionType

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

Parameters:
val - The new transmissionType value

getTransmissionType

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

Returns:
The transmissionType value

setTransmissionTypeName

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

Parameters:
val - The new transmissionTypeName value

getTransmissionTypeName

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

Returns:
The transmissionTypeName value

setPutOnlyMode

public void setPutOnlyMode(boolean val)
Sets the putOnlyMode 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.

Parameters:
val - The new transmissionTypeName value

getPutOnlyMode

public boolean getPutOnlyMode()
Returns:
The outgoingOnlyMode value. Stops gets from going remote.

getJGChannelProperties

public java.lang.String getJGChannelProperties()
Returns:
String The Javagroups channel propeties.

setJGChannelProperties

public void setJGChannelProperties(java.lang.String channelProperties)
Sets the Javagroups channel propeties.

Parameters:
channelProperties - String

setReceive

public void setReceive(boolean receive)
Parameters:
receive - The receive to set.

isReceive

public boolean isReceive()
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.

Returns:
true if we should have a listener conenction

setUdpDiscoveryEnabled

public void setUdpDiscoveryEnabled(boolean udpDiscoveryEnabled)
Can setup UDP Discovery. This only works for TCp laterals right now. It allows TCP laterals to find each other by broadcasting to a multicast port.

Parameters:
udpDiscoveryEnabled - The udpDiscoveryEnabled to set.

isUdpDiscoveryEnabled

public boolean isUdpDiscoveryEnabled()
Whether or not TCP laterals can try to find each other by multicast communication.

Returns:
Returns the udpDiscoveryEnabled.

getUdpDiscoveryPort

public int getUdpDiscoveryPort()
The port to use if UDPDiscovery is enabled.

Returns:
Returns the udpDiscoveryPort.

setUdpDiscoveryPort

public void setUdpDiscoveryPort(int udpDiscoveryPort)
Sets the port to use if UDPDiscovery is enabled.

Parameters:
udpDiscoveryPort - The udpDiscoveryPort to set.

getUdpDiscoveryAddr

public java.lang.String getUdpDiscoveryAddr()
The address to broadcast to if UDPDiscovery is enabled.

Returns:
Returns the udpDiscoveryAddr.

setUdpDiscoveryAddr

public void setUdpDiscoveryAddr(java.lang.String udpDiscoveryAddr)
Sets the address to broadcast to if UDPDiscovery is enabled.

Parameters:
udpDiscoveryAddr - The udpDiscoveryAddr to set.


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