org.apache.qpid.management.domain.handler.impl
Class QpidDomainObject

java.lang.Object
  extended by org.apache.qpid.management.domain.handler.impl.QpidDomainObject
All Implemented Interfaces:
QpidDomainObjectMBean

public class QpidDomainObject
extends Object
implements QpidDomainObjectMBean

This is a sample entity used on QMan test case.


Constructor Summary
QpidDomainObject()
          Builds a new QpidDomainObject with default values for its properties.
 
Method Summary
 InvocationResult echoWithArrays(Long[] longs, Boolean[] booleans, Double[] doubles, Float[] floats, Integer[] integers, Short[] shorts, String[] strings, URI[] uris, Date[] dates)
          Echo method that accepts and returns wrapper type arrays .
 InvocationResult echoWithByteArray(byte[] byteArray)
          Echo method that accepts and returns a byte array.
 InvocationResult echoWithMap(Map<String,Object> map)
          Echo method that accepts and returns a Map.
 InvocationResult echoWithSimpleTypeArrays(long[] longs, boolean[] booleans, double[] doubles, float[] floats, int[] integers, short[] shorts)
          Echo method that accepts and returns primitive type arrays.
 InvocationResult echoWithSimpleTypes(Long aLong, Boolean aBoolean, Double aDouble, Float aFloat, Integer anInteger, Short aShort, String aString, URI anURI, Date aDate)
          Echo method that accepts and returns wrapper types.
 InvocationResult echoWithUUID(UUID uuid)
          Echo method that accepts and returns an UUID.
 Map<String,Object> getArguments()
          Returns the arguments property value.
 byte[] getByteArray()
           
 Integer getConsumerCount()
          Returns the consumerCount property value.
 Boolean getDurable()
          Returns the durable property value.
 Date getExpireTime()
          Returns the expireTime property value.
 Short getMgmtPubInterval()
          Returns the mgmtPubInterval property value.
 Long getMsgTotalEnqueues()
          Returns the msgTotalEnqueues property value.
 String getName()
          Returns the name property value.
 String getType()
          Sets the type property value.
 UUID getVhostRef()
          Returns the VHostRef property value.
 void setExpireTime(Date expireTime)
          Sets the expireTime property value.
 void setMgmtPubInterval(Short value)
          Sets the mgmtPubInterval property value.
 void setType(String type)
          Returns the type property value.
 void throwsException()
          A method that is throwing an exception, everytime.
 InvocationResult voidWithoutArguments()
          Sample echo method that return an empty result object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QpidDomainObject

public QpidDomainObject()
Builds a new QpidDomainObject with default values for its properties.

Method Detail

throwsException

public void throwsException()
                     throws Exception
A method that is throwing an exception, everytime.

Specified by:
throwsException in interface QpidDomainObjectMBean
Throws:
Exception - each time the method is called.

voidWithoutArguments

public InvocationResult voidWithoutArguments()
Sample echo method that return an empty result object. That is, an object with only status code / text valorized (no output parameters).

Specified by:
voidWithoutArguments in interface QpidDomainObjectMBean
Returns:
an empty result object.

echoWithSimpleTypeArrays

public InvocationResult echoWithSimpleTypeArrays(long[] longs,
                                                 boolean[] booleans,
                                                 double[] doubles,
                                                 float[] floats,
                                                 int[] integers,
                                                 short[] shorts)
Echo method that accepts and returns primitive type arrays.

Specified by:
echoWithSimpleTypeArrays in interface QpidDomainObjectMBean
Parameters:
longs - an array of long.
booleans - an array of boolean.
doubles - an array of double.
floats - an array of float.
integers - an array of int.
shorts - an array of short.
Returns:
a result object with the same input parameters (as output parameters).

echoWithSimpleTypes

public InvocationResult echoWithSimpleTypes(Long aLong,
                                            Boolean aBoolean,
                                            Double aDouble,
                                            Float aFloat,
                                            Integer anInteger,
                                            Short aShort,
                                            String aString,
                                            URI anURI,
                                            Date aDate)
Echo method that accepts and returns wrapper types.

Specified by:
echoWithSimpleTypes in interface QpidDomainObjectMBean
Parameters:
aLong - a java.lang.Long
aBoolean - a java.lang.Boolean
aDouble - a java.lang.Double
aFloat - a java.lang.Float
anInteger - a java.lang.Integer
aShort - a java.lang.Short
aString - a java.lang.String
anURI - a java.net.URI
aDate - a java.util.Date
Returns:
a result object with the same given parameters (as output parameters)

echoWithArrays

public InvocationResult echoWithArrays(Long[] longs,
                                       Boolean[] booleans,
                                       Double[] doubles,
                                       Float[] floats,
                                       Integer[] integers,
                                       Short[] shorts,
                                       String[] strings,
                                       URI[] uris,
                                       Date[] dates)
Echo method that accepts and returns wrapper type arrays .

Specified by:
echoWithArrays in interface QpidDomainObjectMBean
Parameters:
longs - an array of java.lang.Long
booleans - an array of java.lang.Boolean
doubles - an array of java.lang.Double
floats - an array of java.lang.Float
integers - an array of java.lang.Integer
shorts - an array of java.lang.Short
strings - an array of java.lang.String
uris - an array of java.net.URI
dates - an array of java.util.Date
Returns:
a result object with the same input parameters (as output parameters).

echoWithByteArray

public InvocationResult echoWithByteArray(byte[] byteArray)
Echo method that accepts and returns a byte array.

Specified by:
echoWithByteArray in interface QpidDomainObjectMBean
Parameters:
byteArray - a byte array
Returns:
a result containing the input byte array (as output parameter)

echoWithUUID

public InvocationResult echoWithUUID(UUID uuid)
Echo method that accepts and returns an UUID.

Specified by:
echoWithUUID in interface QpidDomainObjectMBean
Parameters:
uuid - a java.util.UUID.
Returns:
a result containing the input UUID (as output parameter)

echoWithMap

public InvocationResult echoWithMap(Map<String,Object> map)
Echo method that accepts and returns a Map.

Specified by:
echoWithMap in interface QpidDomainObjectMBean
Parameters:
map - a java.util.Map.
Returns:
a result containing the input Map (as output parameter)

getVhostRef

public UUID getVhostRef()
Description copied from interface: QpidDomainObjectMBean
Returns the VHostRef property value.

Specified by:
getVhostRef in interface QpidDomainObjectMBean
Returns:
the VHostRef property value.

getName

public String getName()
Description copied from interface: QpidDomainObjectMBean
Returns the name property value.

Specified by:
getName in interface QpidDomainObjectMBean
Returns:
the name property value.

getDurable

public Boolean getDurable()
Description copied from interface: QpidDomainObjectMBean
Returns the durable property value.

Specified by:
getDurable in interface QpidDomainObjectMBean
Returns:
the durable property value.

getArguments

public Map<String,Object> getArguments()
Description copied from interface: QpidDomainObjectMBean
Returns the arguments property value.

Specified by:
getArguments in interface QpidDomainObjectMBean
Returns:
the arguments property value.

getMsgTotalEnqueues

public Long getMsgTotalEnqueues()
Description copied from interface: QpidDomainObjectMBean
Returns the msgTotalEnqueues property value.

Specified by:
getMsgTotalEnqueues in interface QpidDomainObjectMBean
Returns:
the msgTotalEnqueues property value.

getConsumerCount

public Integer getConsumerCount()
Description copied from interface: QpidDomainObjectMBean
Returns the consumerCount property value.

Specified by:
getConsumerCount in interface QpidDomainObjectMBean
Returns:
the consumerCount property value.

getExpireTime

public Date getExpireTime()
Description copied from interface: QpidDomainObjectMBean
Returns the expireTime property value.

Specified by:
getExpireTime in interface QpidDomainObjectMBean
Returns:
the expireTime property value.

getMgmtPubInterval

public Short getMgmtPubInterval()
Description copied from interface: QpidDomainObjectMBean
Returns the mgmtPubInterval property value.

Specified by:
getMgmtPubInterval in interface QpidDomainObjectMBean
Returns:
the mgmtPubInterval property value.

setExpireTime

public void setExpireTime(Date expireTime)
Description copied from interface: QpidDomainObjectMBean
Sets the expireTime property value.

Specified by:
setExpireTime in interface QpidDomainObjectMBean

setMgmtPubInterval

public void setMgmtPubInterval(Short value)
Description copied from interface: QpidDomainObjectMBean
Sets the mgmtPubInterval property value.

Specified by:
setMgmtPubInterval in interface QpidDomainObjectMBean

setType

public void setType(String type)
Description copied from interface: QpidDomainObjectMBean
Returns the type property value.

Specified by:
setType in interface QpidDomainObjectMBean

getType

public String getType()
Description copied from interface: QpidDomainObjectMBean
Sets the type property value.

Specified by:
getType in interface QpidDomainObjectMBean
Returns:
the type property value.

getByteArray

public byte[] getByteArray()


Licensed to the Apache Software Foundation