org.apache.qpid.framing.amqp_8_0
Class TestIntegerBodyImpl

java.lang.Object
  extended by org.apache.qpid.framing.AMQMethodBodyImpl
      extended by org.apache.qpid.framing.amqp_8_0.AMQMethodBody_8_0
          extended by org.apache.qpid.framing.amqp_8_0.TestIntegerBodyImpl
All Implemented Interfaces:
AMQBody, AMQMethodBody, EncodableAMQDataBlock, TestIntegerBody

public class TestIntegerBodyImpl
extends AMQMethodBody_8_0
implements TestIntegerBody


Field Summary
static int CLASS_ID
           
static int METHOD_ID
           
 
Fields inherited from class org.apache.qpid.framing.AMQMethodBodyImpl
TYPE
 
Fields inherited from interface org.apache.qpid.framing.AMQMethodBody
TYPE
 
Constructor Summary
TestIntegerBodyImpl(org.apache.mina.common.ByteBuffer buffer)
           
TestIntegerBodyImpl(short integer1, int integer2, long integer3, long integer4, short operation)
           
 
Method Summary
 boolean execute(MethodDispatcher dispatcher, int channelId)
           
protected  int getBodySize()
          unsigned short
 int getClazz()
           
static AMQMethodBodyInstanceFactory getFactory()
           
 short getInteger1()
           
 int getInteger2()
           
 long getInteger3()
           
 long getInteger4()
           
 int getMethod()
           
 short getOperation()
           
 String toString()
           
 void writeMethodPayload(org.apache.mina.common.ByteBuffer buffer)
           
 
Methods inherited from class org.apache.qpid.framing.amqp_8_0.AMQMethodBody_8_0
getMajor, getMinor
 
Methods inherited from class org.apache.qpid.framing.AMQMethodBodyImpl
generateFrame, getChannelException, getChannelException, getChannelNotFoundException, getConnectionException, getConnectionException, getFrameType, getSize, getSizeOf, getSizeOf, getSizeOf, getSizeOf, handle, readAMQShortString, readBitfield, readByte, readBytes, readContent, readFieldTable, readInt, readLong, readShort, readTimestamp, readUnsignedByte, readUnsignedInteger, readUnsignedShort, writeAMQShortString, writeBitfield, writeByte, writeBytes, writeContent, writeFieldTable, writeInt, writeLong, writePayload, writeShort, writeTimestamp, writeUnsignedByte, writeUnsignedInteger, writeUnsignedShort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.qpid.framing.AMQMethodBody
generateFrame, getChannelException, getChannelException, getChannelNotFoundException, getConnectionException, getConnectionException, getMajor, getMinor, getSize, writePayload
 
Methods inherited from interface org.apache.qpid.framing.AMQBody
getFrameType, handle
 

Field Detail

CLASS_ID

public static final int CLASS_ID
See Also:
Constant Field Values

METHOD_ID

public static final int METHOD_ID
See Also:
Constant Field Values
Constructor Detail

TestIntegerBodyImpl

public TestIntegerBodyImpl(org.apache.mina.common.ByteBuffer buffer)
                    throws AMQFrameDecodingException
Throws:
AMQFrameDecodingException

TestIntegerBodyImpl

public TestIntegerBodyImpl(short integer1,
                           int integer2,
                           long integer3,
                           long integer4,
                           short operation)
Method Detail

getFactory

public static AMQMethodBodyInstanceFactory getFactory()

getClazz

public int getClazz()
Specified by:
getClazz in interface AMQMethodBody
Returns:
unsigned short

getMethod

public int getMethod()
Specified by:
getMethod in interface AMQMethodBody
Returns:
unsigned short

getInteger1

public final short getInteger1()
Specified by:
getInteger1 in interface TestIntegerBody

getInteger2

public final int getInteger2()
Specified by:
getInteger2 in interface TestIntegerBody

getInteger3

public final long getInteger3()
Specified by:
getInteger3 in interface TestIntegerBody

getInteger4

public final long getInteger4()
Specified by:
getInteger4 in interface TestIntegerBody

getOperation

public final short getOperation()
Specified by:
getOperation in interface TestIntegerBody

getBodySize

protected int getBodySize()
Description copied from class: AMQMethodBodyImpl
unsigned short

Specified by:
getBodySize in class AMQMethodBodyImpl

writeMethodPayload

public void writeMethodPayload(org.apache.mina.common.ByteBuffer buffer)
Specified by:
writeMethodPayload in interface AMQMethodBody

execute

public boolean execute(MethodDispatcher dispatcher,
                       int channelId)
                throws AMQException
Specified by:
execute in interface AMQMethodBody
Throws:
AMQException

toString

public String toString()
Specified by:
toString in interface AMQMethodBody
Overrides:
toString in class Object


Licensed to the Apache Software Foundation