org.jboss.cache.invalidation.bridges
Interface JMSCacheInvalidationBridgeMBean

All Superinterfaces:
Service (src) , ServiceMBean (src)
All Known Implementing Classes:
JMSCacheInvalidationBridge (src)

public interface JMSCacheInvalidationBridgeMBean
extends ServiceMBean (src)

Cache invalidation bridge based on JMS. The list of InvalidationGroup to be bridged is *not* automatically discovered, thus, all invalidation messages that are locally generated are forwarded over JMS. In the future, it should be possible, through a JMX attribute, to list the InvalidationGroup that should be included/excluded

See Also:
InvalidationManagerMBean (src)

Field Summary
static int AUTO_ACKNOWLEDGE_MODE
           
static int CLIENT_ACKNOWLEDGE_MODE
           
static int DUPS_OK_ACKNOWLEDGE_MODE
           
static int IN_ONLY_BRIDGE_PROPAGATION
           
static int IN_OUT_BRIDGE_PROPAGATION
           
static int OUT_ONLY_BRIDGE_PROPAGATION
           
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Method Summary
 int getAcknowledgeMode()
          Status of the JMS topic wrt messages acknowledgement
 java.lang.String getConnectionFactoryName()
          JNDI name of the JMS connection factory to use for cache invalidations
 java.lang.String getInvalidationManager()
          ObjectName of the InvalidationManager to be used.
 int getPropagationMode()
          Indicates if this bridge should: 1 - Post local invalidations to the topic and invalidate local caches with invalidations received on the topic 2 - Only invalidate local caches with invalidations received on the topic but not post anything on the topic 3 - Only post local invalidations to the topic and not listen to the Topic for invalidation messages
 java.lang.String getProviderUrl()
          Provider URL to use for JMS access.
 java.lang.String getTopicName()
          JNDI name of the Topic to use to send/receive cache invalidations.
 boolean isTransacted()
          Status of the JMS topic wrt transactions
 void setAcknowledgeMode(int ackMode)
           
 void setConnectionFactoryName(java.lang.String factoryName)
           
 void setInvalidationManager(java.lang.String objectName)
           
 void setPropagationMode(int propagationMode)
           
 void setProviderUrl(java.lang.String url)
           
 void setTopicName(java.lang.String topicName)
           
 void setTransacted(boolean isTransacted)
           
 
Methods inherited from interface org.jboss.system.ServiceMBean (src)
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 

Field Detail

AUTO_ACKNOWLEDGE_MODE

public static final int AUTO_ACKNOWLEDGE_MODE
See Also:
Constant Field Values (src)

CLIENT_ACKNOWLEDGE_MODE

public static final int CLIENT_ACKNOWLEDGE_MODE
See Also:
Constant Field Values (src)

DUPS_OK_ACKNOWLEDGE_MODE

public static final int DUPS_OK_ACKNOWLEDGE_MODE
See Also:
Constant Field Values (src)

IN_OUT_BRIDGE_PROPAGATION

public static final int IN_OUT_BRIDGE_PROPAGATION
See Also:
Constant Field Values (src)

IN_ONLY_BRIDGE_PROPAGATION

public static final int IN_ONLY_BRIDGE_PROPAGATION
See Also:
Constant Field Values (src)

OUT_ONLY_BRIDGE_PROPAGATION

public static final int OUT_ONLY_BRIDGE_PROPAGATION
See Also:
Constant Field Values (src)
Method Detail

getInvalidationManager

public java.lang.String getInvalidationManager()
ObjectName of the InvalidationManager to be used. Optional: in this case, the default InvalidationManager is used.


setInvalidationManager

public void setInvalidationManager(java.lang.String objectName)

getConnectionFactoryName

public java.lang.String getConnectionFactoryName()
JNDI name of the JMS connection factory to use for cache invalidations


setConnectionFactoryName

public void setConnectionFactoryName(java.lang.String factoryName)

getTopicName

public java.lang.String getTopicName()
JNDI name of the Topic to use to send/receive cache invalidations. Defaults to "topic/JMSCacheInvalidationBridge"


setTopicName

public void setTopicName(java.lang.String topicName)

getProviderUrl

public java.lang.String getProviderUrl()
Provider URL to use for JMS access. If null, use the default settings


setProviderUrl

public void setProviderUrl(java.lang.String url)

isTransacted

public boolean isTransacted()
Status of the JMS topic wrt transactions


setTransacted

public void setTransacted(boolean isTransacted)

getAcknowledgeMode

public int getAcknowledgeMode()
Status of the JMS topic wrt messages acknowledgement


setAcknowledgeMode

public void setAcknowledgeMode(int ackMode)

getPropagationMode

public int getPropagationMode()
Indicates if this bridge should: 1 - Post local invalidations to the topic and invalidate local caches with invalidations received on the topic 2 - Only invalidate local caches with invalidations received on the topic but not post anything on the topic 3 - Only post local invalidations to the topic and not listen to the Topic for invalidation messages


setPropagationMode

public void setPropagationMode(int propagationMode)