org.apache.activemq.command
Class DestinationInfo

java.lang.Object
  extended by org.apache.activemq.command.BaseCommand
      extended by org.apache.activemq.command.DestinationInfo
All Implemented Interfaces:
Command, DataStructure

public class DestinationInfo
extends BaseCommand

Used to create and destroy destinations on the broker.


Field Summary
static byte ADD_OPERATION_TYPE
           
protected  BrokerId[] brokerPath
           
protected  ConnectionId connectionId
           
static byte DATA_STRUCTURE_TYPE
           
protected  ActiveMQDestination destination
           
protected  byte operationType
           
static byte REMOVE_OPERATION_TYPE
           
protected  long timeout
           
 
Fields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired
 
Constructor Summary
DestinationInfo()
           
DestinationInfo(ConnectionId connectionId, byte operationType, ActiveMQDestination destination)
           
 
Method Summary
 DestinationInfo copy()
           
 BrokerId[] getBrokerPath()
          The route of brokers the command has moved through.
 ConnectionId getConnectionId()
           
 byte getDataStructureType()
           
 ActiveMQDestination getDestination()
           
 byte getOperationType()
           
 long getTimeout()
           
 boolean isAddOperation()
           
 boolean isRemoveOperation()
           
 void setBrokerPath(BrokerId[] brokerPath)
           
 void setConnectionId(ConnectionId connectionId)
           
 void setDestination(ActiveMQDestination destination)
           
 void setOperationType(byte operationType)
           
 void setTimeout(long timeout)
           
 Response visit(CommandVisitor visitor)
           
 
Methods inherited from class org.apache.activemq.command.BaseCommand
copy, getCommandId, getFrom, getTo, isBrokerInfo, isConnectionControl, isMarshallAware, isMessage, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponse, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DATA_STRUCTURE_TYPE

public static final byte DATA_STRUCTURE_TYPE
See Also:
Constant Field Values

ADD_OPERATION_TYPE

public static final byte ADD_OPERATION_TYPE
See Also:
Constant Field Values

REMOVE_OPERATION_TYPE

public static final byte REMOVE_OPERATION_TYPE
See Also:
Constant Field Values

connectionId

protected ConnectionId connectionId

destination

protected ActiveMQDestination destination

operationType

protected byte operationType

timeout

protected long timeout

brokerPath

protected BrokerId[] brokerPath
Constructor Detail

DestinationInfo

public DestinationInfo()

DestinationInfo

public DestinationInfo(ConnectionId connectionId,
                       byte operationType,
                       ActiveMQDestination destination)
Method Detail

getDataStructureType

public byte getDataStructureType()
Returns:
The type of the data structure

isAddOperation

public boolean isAddOperation()

isRemoveOperation

public boolean isRemoveOperation()

getConnectionId

public ConnectionId getConnectionId()

setConnectionId

public void setConnectionId(ConnectionId connectionId)

getDestination

public ActiveMQDestination getDestination()

setDestination

public void setDestination(ActiveMQDestination destination)

getOperationType

public byte getOperationType()

setOperationType

public void setOperationType(byte operationType)

getTimeout

public long getTimeout()

setTimeout

public void setTimeout(long timeout)

getBrokerPath

public BrokerId[] getBrokerPath()
The route of brokers the command has moved through.


setBrokerPath

public void setBrokerPath(BrokerId[] brokerPath)

visit

public Response visit(CommandVisitor visitor)
               throws Exception
Throws:
Exception

copy

public DestinationInfo copy()


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