|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.management.domain.model.QpidFeature
org.apache.qpid.management.domain.model.QpidMethod
public class QpidMethod
Qpid method definition. An entity describing an invocation that can be made on a managed object instance.
Field Summary | |
---|---|
(package private) List<QpidArgument> |
arguments
Argument list |
Fields inherited from class org.apache.qpid.management.domain.model.QpidFeature |
---|
_description, _name |
Constructor Summary | |
---|---|
QpidMethod(String name,
String description)
Builds a new qpid method definition with the given name and description. |
Method Summary | |
---|---|
(package private) void |
addArgument(QpidArgument argument)
Adds an argument to this method. |
Map<String,Object> |
decodeParameters(byte[] values)
Decodes the given input raw according to this method arguments definitions. |
void |
encodeParameters(Object[] parameters,
org.apache.qpid.transport.codec.Encoder encoder)
Encodes the given parameter values according to this method arguments definitions. |
String |
toString()
Returns a string representation of this method. |
void |
validate(Object[] parameters)
Validates the given array of parameters against the constraint defined on this method's arguments. |
Methods inherited from class org.apache.qpid.management.domain.model.QpidFeature |
---|
getDescription, getName, setDescription, setName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
List<QpidArgument> arguments
Constructor Detail |
---|
QpidMethod(String name, String description)
name
- the method name.description
- the method description.Method Detail |
---|
void addArgument(QpidArgument argument)
argument
- the new argument to be added.public String toString()
toString
in class QpidFeature
public void encodeParameters(Object[] parameters, org.apache.qpid.transport.codec.Encoder encoder)
parameters
- the parameters values.encoder
- the encoder used for encoding.public Map<String,Object> decodeParameters(byte[] values)
parameters
- the parameters values.encoder
- the encoder used for encoding.public void validate(Object[] parameters) throws ValidationException
parameters
- the parameters (values) to be validated.
ValidationException
- when one of the supplied values is violating some constraint.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |