org.apache.activemq.command
Class ConnectionControl

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

public class ConnectionControl
extends BaseCommand

Used to start and stop transports as well as terminating clients.

Version:
$Revision: 1.1 $

Field Summary
protected  boolean close
           
static byte DATA_STRUCTURE_TYPE
           
protected  boolean exit
           
protected  boolean faultTolerant
           
protected  boolean resume
           
protected  boolean suspend
           
 
Fields inherited from class org.apache.activemq.command.BaseCommand
commandId, responseRequired
 
Constructor Summary
ConnectionControl()
           
 
Method Summary
 byte getDataStructureType()
           
 boolean isClose()
           
 boolean isExit()
           
 boolean isFaultTolerant()
           
 boolean isResume()
           
 boolean isSuspend()
           
 void setClose(boolean close)
           
 void setExit(boolean exit)
           
 void setFaultTolerant(boolean faultTolerant)
           
 void setResume(boolean resume)
           
 void setSuspend(boolean suspend)
           
 Response visit(CommandVisitor visitor)
           
 
Methods inherited from class org.apache.activemq.command.BaseCommand
copy, getCommandId, getFrom, getTo, isBrokerInfo, isMarshallAware, isMessage, isMessageAck, isMessageDispatch, isMessageDispatchNotification, isResponse, isResponseRequired, isShutdownInfo, isWireFormatInfo, setCommandId, setFrom, setResponseRequired, setTo, 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

suspend

protected boolean suspend

resume

protected boolean resume

close

protected boolean close

exit

protected boolean exit

faultTolerant

protected boolean faultTolerant
Constructor Detail

ConnectionControl

public ConnectionControl()
Method Detail

getDataStructureType

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

visit

public Response visit(CommandVisitor visitor)
               throws java.lang.Exception
Throws:
java.lang.Exception

isClose

public boolean isClose()
Returns:
Returns the close.

setClose

public void setClose(boolean close)
Parameters:
close - The close to set.

isExit

public boolean isExit()
Returns:
Returns the exit.

setExit

public void setExit(boolean exit)
Parameters:
exit - The exit to set.

isFaultTolerant

public boolean isFaultTolerant()
Returns:
Returns the faultTolerant.

setFaultTolerant

public void setFaultTolerant(boolean faultTolerant)
Parameters:
faultTolerant - The faultTolerant to set.

isResume

public boolean isResume()
Returns:
Returns the resume.

setResume

public void setResume(boolean resume)
Parameters:
resume - The resume to set.

isSuspend

public boolean isSuspend()
Returns:
Returns the suspend.

setSuspend

public void setSuspend(boolean suspend)
Parameters:
suspend - The suspend to set.


Copyright © 2010 Apache Software Foundation. All Rights Reserved.