Package com.ibm.di.api.jmx.mbeans
Class SystemQueue
- java.lang.Object
-
- com.ibm.di.api.jmx.mbeans.BaseAdmin
-
- com.ibm.di.api.jmx.mbeans.SystemQueue
-
- All Implemented Interfaces:
BaseAdminMBean,BaseMBean,SystemQueueMBean
public class SystemQueue extends BaseAdmin implements SystemQueueMBean
SystemQueue class implements public methods exposed through JMX layer.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringMBEAN_IDId of the MBean.static java.lang.StringMBEAN_TYPEType of the MBean.
-
Constructor Summary
Constructors Constructor Description SystemQueue(SystemQueue aLocalSystemQueue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBytesMessage(java.lang.String aQueueName, int aTimeOut)Retrieves a BytesMessage from the specified System QueueEntrygetEntry(java.lang.String aQueueName, int aTimeOut)Retrieves an Entry object from the specified System Queuejava.lang.StringgetId()Reads attribute "Id".javax.jms.MessagegetMessage(java.lang.String aQueueName, int aTimeOut)Retrieves a JMS Message from the specified System Queuejava.lang.StringgetTextMessage(java.lang.String aQueueName, int aTimeOut)Retrieves a TextMessage from the specified System Queuejava.lang.StringgetType()Reads attribute "Type".voidputBytesMessage(java.lang.String aQueueName, byte[] aMessageBytes)Stores a BytesMessage in the specified System QueuevoidputEntry(java.lang.String aQueueName, Entry aEntry)Stores an Entry object to the specified System QueuevoidputMessage(java.lang.String aQueueName, javax.jms.Message aMessage)Stores a Message to the specified System QueuevoidputTextMessage(java.lang.String aQueueName, java.lang.String aMessageText)Stores a TextMessage to the System Queue-
Methods inherited from class com.ibm.di.api.jmx.mbeans.BaseAdmin
getCurrentUserId, getKeyPropertyList
-
-
-
-
Field Detail
-
MBEAN_TYPE
public static final java.lang.String MBEAN_TYPE
Type of the MBean.- See Also:
- Constant Field Values
-
MBEAN_ID
public static final java.lang.String MBEAN_ID
Id of the MBean.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SystemQueue
public SystemQueue(SystemQueue aLocalSystemQueue) throws DIException
- Parameters:
aLocalSystemQueue-SystemQueue- Throws:
DIException
-
-
Method Detail
-
getType
public java.lang.String getType()
Reads attribute "Type".getType()andgetId()are used in a common schema for object names for all MBeans in the management package. The key properties part of the object name of each MBean is defined as"type=" + getType() + ",id=" + getId(), for example "type=AssemblyLine,id=Hello".
-
getId
public java.lang.String getId()
Reads attribute "Id". The "Id" value should be different for different MBeans of the same type.getType()andgetId()are used in a common schema for object names for all MBeans in the management package. The key properties part of the object name of each MBean is defined as"type=" + getType() + ",id=" + getId(), for example "type=AssemblyLine,id=Hello".
-
getMessage
public javax.jms.Message getMessage(java.lang.String aQueueName, int aTimeOut) throws DIExceptionRetrieves a JMS Message from the specified System Queue- Specified by:
getMessagein interfaceSystemQueueMBean- Parameters:
aQueueName- - the name of the queue from which the message is retrievedaTimeOut- - specifies the maximum time in seconds to wait for a new message; if 0 is specified - if there is no message available this method returns immediately; if a negative number is specified, this method will wait indefinitely or until a message becomes available- Returns:
- the javax.jms.Message object.
- Throws:
DIException- if an error occurs during receiving
-
putMessage
public void putMessage(java.lang.String aQueueName, javax.jms.Message aMessage) throws DIExceptionStores a Message to the specified System Queue- Specified by:
putMessagein interfaceSystemQueueMBean- Parameters:
aQueueName- - the name of the queue to which the message is to be storedaMessage- - the Message object to be stored- Throws:
DIException- if an error occurs during storing
-
getTextMessage
public java.lang.String getTextMessage(java.lang.String aQueueName, int aTimeOut) throws DIExceptionRetrieves a TextMessage from the specified System Queue- Specified by:
getTextMessagein interfaceSystemQueueMBean- Parameters:
aQueueName- - the name of the queue from which the message is retrievedaTimeOut- - specifies the maximum time in seconds to wait for a new message; if 0 is specified - if there is no message available this method returns immediately; if a negative number is specified, this method will wait indefinitely or until a message becomes available- Returns:
- The text of the message
- Throws:
DIException- if an error occurs during receiving
-
putTextMessage
public void putTextMessage(java.lang.String aQueueName, java.lang.String aMessageText) throws DIExceptionStores a TextMessage to the System Queue- Specified by:
putTextMessagein interfaceSystemQueueMBean- Parameters:
aQueueName- - the name of the queue to which the message is to be storedaMessageText- - the text to be stored- Throws:
DIException- if an error occurs during sending
-
getBytesMessage
public byte[] getBytesMessage(java.lang.String aQueueName, int aTimeOut) throws DIExceptionRetrieves a BytesMessage from the specified System Queue- Specified by:
getBytesMessagein interfaceSystemQueueMBean- Parameters:
aQueueName- - the name of the queue from which the message is retrievedaTimeOut- - specifies the maximum time in seconds to wait for a new message; if 0 is specified - if there is no message available this method returns immediately; if a negative number is specified, this method will wait indefinitely or until a message becomes available- Returns:
- The bytes of the message in a byte array
- Throws:
DIException- if an error occurs during receiving
-
putBytesMessage
public void putBytesMessage(java.lang.String aQueueName, byte[] aMessageBytes) throws DIExceptionStores a BytesMessage in the specified System Queue- Specified by:
putBytesMessagein interfaceSystemQueueMBean- Parameters:
aQueueName- - the name of the queue to which the message is to be storedaMessageBytes- - the byte array to be stored- Throws:
DIException- if an error occurs during sending
-
getEntry
public Entry getEntry(java.lang.String aQueueName, int aTimeOut) throws DIException
Retrieves an Entry object from the specified System Queue- Specified by:
getEntryin interfaceSystemQueueMBean- Parameters:
aQueueName- - the name of the queue from which the message is retrievedaTimeOut- - specifies the maximum time in seconds to wait for a new message; if 0 is specified - if there is no message available this method returns immediately; if a negative number is specified, this method will wait indefinitely or until a message becomes available- Returns:
- The retrieved com.ibm.di.entry.Entry object
- Throws:
DIException- if an error occurs during receiving, or if the message retrieved is not an ObjectMessage or if the ObjectMessage retrieved does not store a com.ibm.di.entry.Entry object
-
putEntry
public void putEntry(java.lang.String aQueueName, Entry aEntry) throws DIExceptionStores an Entry object to the specified System Queue- Specified by:
putEntryin interfaceSystemQueueMBean- Parameters:
aQueueName- - the name of the queue to which the Entry is to be storedaEntry- - the Entry object to be stored- Throws:
DIException- if an error occurs during sending
-
-