org.apache.qpid.management.messages
Class MethodInvocationRequestMessage

java.lang.Object
  extended by org.apache.qpid.management.messages.ManagementMessage
      extended by org.apache.qpid.management.messages.MethodInvocationRequestMessage
All Implemented Interfaces:
org.apache.qpid.api.Message

public abstract class MethodInvocationRequestMessage
extends ManagementMessage

Abstract representation of a method invocation request message. Concrete subclasses must supply the values needed to build & encode the message.


Field Summary
 
Fields inherited from class org.apache.qpid.management.messages.ManagementMessage
_codec, _data, ACCUMULATING, READING
 
Constructor Summary
MethodInvocationRequestMessage(long bankId, long brokerId)
          Builds a new method invocation request message with the given target identifiers.
 
Method Summary
protected abstract  String className()
          Returns the class name.
 org.apache.qpid.transport.DeliveryProperties getDeliveryProperties()
          Returns the delivery properties of this message.
 org.apache.qpid.transport.Header getHeader()
          Returns the header of this message.
 org.apache.qpid.transport.MessageProperties getMessageProperties()
          Returns the messages header properties of this message.
protected abstract  QpidMethod method()
          Returns the method to be invoked.
protected abstract  Binary objectId()
          Returns the object identifier.
(package private)  char opcode()
          Returns the opcode that will be used for this message.
protected abstract  String packageName()
          Returns the package name.
protected abstract  Object[] parameters()
          Returns the parameters used for method invocation.
protected abstract  Binary schemaHash()
          Returns the schema hash.
(package private)  void specificMessageEncoding()
          Concrete subclasses (message implementations) must define here their specific data encoding.
 
Methods inherited from class org.apache.qpid.management.messages.ManagementMessage
appendData, appendData, clearData, getMessageTransferId, readData, readData, sequenceNumber, setHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInvocationRequestMessage

public MethodInvocationRequestMessage(long bankId,
                                      long brokerId)
Builds a new method invocation request message with the given target identifiers.

Parameters:
bankId - the bank identifier.
brokerId - the broker identifier.
Method Detail

opcode

char opcode()
Description copied from class: ManagementMessage
Returns the opcode that will be used for this message.

Specified by:
opcode in class ManagementMessage
Returns:
the opcode that will be used for this message.

packageName

protected abstract String packageName()
Returns the package name.

Returns:
the package name.

className

protected abstract String className()
Returns the class name.

Returns:
the class name.

schemaHash

protected abstract Binary schemaHash()
Returns the schema hash.

Returns:
the schema hash.

objectId

protected abstract Binary objectId()
Returns the object identifier.

Returns:
the object identifier.

method

protected abstract QpidMethod method()
Returns the method to be invoked.

Returns:
the method to be invoked.

parameters

protected abstract Object[] parameters()
Returns the parameters used for method invocation.

Returns:
the parameters used for method invocation.

getDeliveryProperties

public org.apache.qpid.transport.DeliveryProperties getDeliveryProperties()
Returns the delivery properties of this message.

Specified by:
getDeliveryProperties in interface org.apache.qpid.api.Message
Overrides:
getDeliveryProperties in class ManagementMessage
Returns:
the delivery properties of this message.

getHeader

public org.apache.qpid.transport.Header getHeader()
Returns the header of this message.

Specified by:
getHeader in interface org.apache.qpid.api.Message
Overrides:
getHeader in class ManagementMessage
Returns:
the header of this message.

getMessageProperties

public org.apache.qpid.transport.MessageProperties getMessageProperties()
Returns the messages header properties of this message.

Specified by:
getMessageProperties in interface org.apache.qpid.api.Message
Overrides:
getMessageProperties in class ManagementMessage
Returns:
the message header properties of this message.

specificMessageEncoding

void specificMessageEncoding()
Description copied from class: ManagementMessage
Concrete subclasses (message implementations) must define here their specific data encoding.

Specified by:
specificMessageEncoding in class ManagementMessage


Licensed to the Apache Software Foundation