org.apache.activemq.command
Class NetworkBridgeFilter

java.lang.Object
  extended by org.apache.activemq.command.NetworkBridgeFilter
All Implemented Interfaces:
DataStructure, BooleanExpression, Expression

public class NetworkBridgeFilter
extends Object
implements DataStructure, BooleanExpression


Field Summary
static byte DATA_STRUCTURE_TYPE
           
protected  BrokerId networkBrokerId
           
protected  int networkTTL
           
 
Constructor Summary
NetworkBridgeFilter()
           
NetworkBridgeFilter(BrokerId networkBrokerId, int networkTTL)
           
 
Method Summary
static boolean contains(BrokerId[] brokerPath, BrokerId brokerId)
           
 Object evaluate(MessageEvaluationContext message)
           
 byte getDataStructureType()
           
 BrokerId getNetworkBrokerId()
           
 int getNetworkTTL()
           
 boolean isMarshallAware()
           
 boolean matches(MessageEvaluationContext mec)
           
protected  boolean matchesForwardingFilter(Message message, MessageEvaluationContext mec)
           
 void setNetworkBrokerId(BrokerId remoteBrokerPath)
           
 void setNetworkTTL(int networkTTL)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_STRUCTURE_TYPE

public static final byte DATA_STRUCTURE_TYPE
See Also:
Constant Field Values

networkBrokerId

protected BrokerId networkBrokerId

networkTTL

protected int networkTTL
Constructor Detail

NetworkBridgeFilter

public NetworkBridgeFilter()

NetworkBridgeFilter

public NetworkBridgeFilter(BrokerId networkBrokerId,
                           int networkTTL)
Method Detail

getDataStructureType

public byte getDataStructureType()
Specified by:
getDataStructureType in interface DataStructure
Returns:
The type of the data structure

isMarshallAware

public boolean isMarshallAware()
Specified by:
isMarshallAware in interface DataStructure

matches

public boolean matches(MessageEvaluationContext mec)
                throws JMSException
Specified by:
matches in interface BooleanExpression
Returns:
true if the expression evaluates to Boolean.TRUE.
Throws:
JMSException

evaluate

public Object evaluate(MessageEvaluationContext message)
                throws JMSException
Specified by:
evaluate in interface Expression
Returns:
the value of this expression
Throws:
JMSException

matchesForwardingFilter

protected boolean matchesForwardingFilter(Message message,
                                          MessageEvaluationContext mec)

contains

public static boolean contains(BrokerId[] brokerPath,
                               BrokerId brokerId)

getNetworkTTL

public int getNetworkTTL()

setNetworkTTL

public void setNetworkTTL(int networkTTL)

getNetworkBrokerId

public BrokerId getNetworkBrokerId()

setNetworkBrokerId

public void setNetworkBrokerId(BrokerId remoteBrokerPath)


Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.