org.jboss.cache.invalidation.bridges
Interface JMSCacheInvalidationBridgeMBean

All Superinterfaces:
org.jboss.system.Service, org.jboss.system.ServiceMBean
All Known Implementing Classes:
JMSCacheInvalidationBridge

public interface JMSCacheInvalidationBridgeMBean
extends org.jboss.system.ServiceMBean

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

Version:
$Revision: 57209 $

Revisions:

28 septembre 2002 Sacha Labourey:

Author:
Sacha Labourey.
See Also:
InvalidationManagerMBean

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
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
 String getConnectionFactoryName()
          JNDI name of the JMS connection factory to use for cache invalidations
 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
 String getProviderUrl()
          Provider URL to use for JMS access.
 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(String factoryName)
           
 void setInvalidationManager(String objectName)
           
 void setPropagationMode(int propagationMode)
           
 void setProviderUrl(String url)
           
 void setTopicName(String topicName)
           
 void setTransacted(boolean isTransacted)
           
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Field Detail

AUTO_ACKNOWLEDGE_MODE

static final int AUTO_ACKNOWLEDGE_MODE
See Also:
Constant Field Values

CLIENT_ACKNOWLEDGE_MODE

static final int CLIENT_ACKNOWLEDGE_MODE
See Also:
Constant Field Values

DUPS_OK_ACKNOWLEDGE_MODE

static final int DUPS_OK_ACKNOWLEDGE_MODE
See Also:
Constant Field Values

IN_OUT_BRIDGE_PROPAGATION

static final int IN_OUT_BRIDGE_PROPAGATION
See Also:
Constant Field Values

IN_ONLY_BRIDGE_PROPAGATION

static final int IN_ONLY_BRIDGE_PROPAGATION
See Also:
Constant Field Values

OUT_ONLY_BRIDGE_PROPAGATION

static final int OUT_ONLY_BRIDGE_PROPAGATION
See Also:
Constant Field Values
Method Detail

getInvalidationManager

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


setInvalidationManager

void setInvalidationManager(String objectName)

getConnectionFactoryName

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


setConnectionFactoryName

void setConnectionFactoryName(String factoryName)

getTopicName

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


setTopicName

void setTopicName(String topicName)

getProviderUrl

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


setProviderUrl

void setProviderUrl(String url)

isTransacted

boolean isTransacted()
Status of the JMS topic wrt transactions


setTransacted

void setTransacted(boolean isTransacted)

getAcknowledgeMode

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


setAcknowledgeMode

void setAcknowledgeMode(int ackMode)

getPropagationMode

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

void setPropagationMode(int propagationMode)


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.