Class LateralCacheAttributes
java.lang.Object
org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheAttributes
org.apache.commons.jcs3.auxiliary.lateral.LateralCacheAttributes
- All Implemented Interfaces:
Serializable,Cloneable,AuxiliaryCacheAttributes,ILateralCacheAttributes
- Direct Known Subclasses:
TCPLateralCacheAttributes
public class LateralCacheAttributes
extends AbstractAuxiliaryCacheAttributes
implements ILateralCacheAttributes
This class stores attributes for all of the available lateral cache auxiliaries.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.commons.jcs3.auxiliary.lateral.behavior.ILateralCacheAttributes
ILateralCacheAttributes.Type -
Field Summary
Fields inherited from interface org.apache.commons.jcs3.auxiliary.lateral.behavior.ILateralCacheAttributes
DEFAULT_ZOMBIE_QUEUE_MAX_SIZE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintGets the httpListenerPort attribute of the ILateralCacheAttributes objectGets the httpServer attribute of the LateralCacheAttributes objectGets the httpSrvers attribute of the LateralCacheAttributes objectbooleanGets the transmissionType attribute of the LateralCacheAttributes objectDeprecated.Gets the udpMulticastAddr attribute of the LateralCacheAttributes objectintGets the udpMulticastPort attribute of the LateralCacheAttributes objectintThe number of elements the zombie queue will hold.booleanShould a listener be created.voidsetHttpListenerPort(int val) Sets the httpListenerPort attribute of the ILateralCacheAttributes objectvoidsetHttpServer(String val) Sets the httpServer attribute of the LateralCacheAttributes objectvoidsetHttpServers(String val) Sets the httpServers attribute of the LateralCacheAttributes objectvoidsetPutOnlyMode(boolean val) Sets the outgoingOnlyMode attribute of the ILateralCacheAttributes.voidsetReceive(boolean receive) voidSets the transmissionType attribute of the LateralCacheAttributes objectvoidDeprecated.voidSets the udpMulticastAddr attribute of the LateralCacheAttributes objectvoidsetUdpMulticastPort(int val) Sets the udpMulticastPort attribute of the LateralCacheAttributes objectvoidsetZombieQueueMaxSize(int zombieQueueMaxSize) The number of elements the zombie queue will hold.toString()Methods inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheAttributes
clone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setNameMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.commons.jcs3.auxiliary.AuxiliaryCacheAttributes
clone, getCacheName, getEventQueuePoolName, getEventQueueType, getName, setCacheName, setEventQueuePoolName, setEventQueueType, setName
-
Constructor Details
-
LateralCacheAttributes
public LateralCacheAttributes()
-
-
Method Details
-
setHttpServer
Sets the httpServer attribute of the LateralCacheAttributes object- Specified by:
setHttpServerin interfaceILateralCacheAttributes- Parameters:
val- The new httpServer value
-
getHttpServer
Gets the httpServer attribute of the LateralCacheAttributes object- Specified by:
getHttpServerin interfaceILateralCacheAttributes- Returns:
- The httpServer value
-
setHttpServers
Sets the httpServers attribute of the LateralCacheAttributes object- Specified by:
setHttpServersin interfaceILateralCacheAttributes- Parameters:
val- The new httpServers value
-
getHttpServers
Gets the httpSrvers attribute of the LateralCacheAttributes object- Specified by:
getHttpServersin interfaceILateralCacheAttributes- Returns:
- The httpServers value
-
setHttpListenerPort
Sets the httpListenerPort attribute of the ILateralCacheAttributes object- Specified by:
setHttpListenerPortin interfaceILateralCacheAttributes- Parameters:
val- The new tcpListenerPort value
-
getHttpListenerPort
Gets the httpListenerPort attribute of the ILateralCacheAttributes object- Specified by:
getHttpListenerPortin interfaceILateralCacheAttributes- Returns:
- The httpListenerPort value
-
setUdpMulticastAddr
Sets the udpMulticastAddr attribute of the LateralCacheAttributes object- Specified by:
setUdpMulticastAddrin interfaceILateralCacheAttributes- Parameters:
val- The new udpMulticastAddr value
-
getUdpMulticastAddr
Gets the udpMulticastAddr attribute of the LateralCacheAttributes object- Specified by:
getUdpMulticastAddrin interfaceILateralCacheAttributes- Returns:
- The udpMulticastAddr value
-
setUdpMulticastPort
Sets the udpMulticastPort attribute of the LateralCacheAttributes object- Specified by:
setUdpMulticastPortin interfaceILateralCacheAttributes- Parameters:
val- The new udpMulticastPort value
-
getUdpMulticastPort
Gets the udpMulticastPort attribute of the LateralCacheAttributes object- Specified by:
getUdpMulticastPortin interfaceILateralCacheAttributes- Returns:
- The udpMulticastPort value
-
setTransmissionType
Sets the transmissionType attribute of the LateralCacheAttributes object- Specified by:
setTransmissionTypein interfaceILateralCacheAttributes- Parameters:
val- The new transmissionType value
-
getTransmissionType
Gets the transmissionType attribute of the LateralCacheAttributes object- Specified by:
getTransmissionTypein interfaceILateralCacheAttributes- Returns:
- The transmissionType value
-
setTransmissionTypeName
Deprecated.Sets the transmissionTypeName attribute of the LateralCacheAttributes object- Specified by:
setTransmissionTypeNamein interfaceILateralCacheAttributes- Parameters:
val- The new transmissionTypeName value
-
getTransmissionTypeName
Deprecated.Gets the transmissionTypeName attribute of the LateralCacheAttributes object- Specified by:
getTransmissionTypeNamein interfaceILateralCacheAttributes- Returns:
- The transmissionTypeName value
-
setPutOnlyMode
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:
setPutOnlyModein interfaceILateralCacheAttributes- Parameters:
val- The new transmissionTypeName value
-
getPutOnlyMode
- Specified by:
getPutOnlyModein interfaceILateralCacheAttributes- Returns:
- The outgoingOnlyMode value. Stops gets from going remote.
-
setReceive
- Specified by:
setReceivein interfaceILateralCacheAttributes- Parameters:
receive- The receive to set.
-
isReceive
Description copied from interface:ILateralCacheAttributesShould 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:
isReceivein interfaceILateralCacheAttributes- Returns:
- Returns the receive.
-
setZombieQueueMaxSize
The number of elements the zombie queue will hold. This queue is used to store events if we loose our connection with the server.- Specified by:
setZombieQueueMaxSizein interfaceILateralCacheAttributes- Parameters:
zombieQueueMaxSize- The zombieQueueMaxSize to set.
-
getZombieQueueMaxSize
The number of elements the zombie queue will hold. This queue is used to store events if we loose our connection with the server.- Specified by:
getZombieQueueMaxSizein interfaceILateralCacheAttributes- Returns:
- Returns the zombieQueueMaxSize.
-
toString
-