|
Joram 5.3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.joram.mom.dest.DestinationImpl
org.objectweb.joram.mom.dest.QueueImpl
org.objectweb.joram.mom.dest.MonitoringQueueImpl
public class MonitoringQueueImpl
The MonitoringQueueImpl
class implements the monitoring
behavior, it delivers monitoring messages when requested.
Field Summary |
---|
Fields inherited from class org.objectweb.joram.mom.dest.QueueImpl |
---|
arrivalsCounter, consumers, contexts, deliveredMsgs, logger, messages, nbMaxMsg, receiving, requests |
Fields inherited from class org.objectweb.joram.mom.dest.DestinationImpl |
---|
_rights, agent, clients, creationDate, dmqId, freeReading, freeWriting, nbMsgsDeliverSinceCreation, nbMsgsReceiveSinceCreation, nbMsgsSentToDMQSinceCreation, READ, READWRITE, WAKEUP_PERIOD, WRITE |
Constructor Summary | |
---|---|
MonitoringQueueImpl(fr.dyade.aaa.agent.AgentId adminId,
java.util.Properties properties)
Constructs a MonitoringQueueImpl instance. |
Method Summary | |
---|---|
void |
addMonitoredAttributes(java.lang.String MBeanName,
java.lang.String attributes)
Add the specified attributes to the list of monitored attributes. |
void |
delMonitoredAttributes(java.lang.String mbean)
Removes all the attributes of the specified MBean in the list of monitored attributes. |
long |
getExpiration()
Returns the expiration value for produced messages. |
java.lang.String[] |
getMonitoredAttributes()
Returns the comma separated list of all monitored attributes. |
int |
getPriority()
Returns the priority of produced messages. |
void |
initialize(boolean firstTime)
Initializes the destination. |
boolean |
isMessagePersistent()
Returns true if the messages produced are persistent. |
ClientMessages |
preProcess(fr.dyade.aaa.agent.AgentId from,
ClientMessages cm)
|
void |
setExpiration(long expiration)
Sets the expiration value for produced messages. |
void |
setMessagePersistent(boolean isPersistent)
Sets the DeliveryMode value for the produced messages. |
void |
setPriority(int priority)
Sets the priority of produced messages. |
java.lang.String |
toString()
Returns a string representation of this destination. |
void |
wakeUpNot(WakeUpNot not)
When the queue is waken up, collect the monitoring information required and send it. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.objectweb.joram.mom.dest.QueueImplMBean |
---|
cleanPendingMessage, cleanWaitingRequest, getDeliveredMessageCount, getMessage, getMessages, getNbMaxMsg, getPendingMessageCount, getThreshold, getWaitingRequestCount, setNbMaxMsg, setThreshold |
Methods inherited from interface org.objectweb.joram.mom.dest.DestinationImplMBean |
---|
getCreationDate, getCreationTimeInMillis, getDestinationId, getDMQId, getNbMsgsDeliverSinceCreation, getNbMsgsReceiveSinceCreation, getNbMsgsSentToDMQSinceCreation, getPeriod, getRight, getRights, isFreeReading, isFreeWriting, setFreeReading, setFreeWriting, setPeriod |
Constructor Detail |
---|
public MonitoringQueueImpl(fr.dyade.aaa.agent.AgentId adminId, java.util.Properties properties)
MonitoringQueueImpl
instance.
adminId
- Identifier of the administrator of the queue.properties
- The initial set of properties.Method Detail |
---|
public boolean isMessagePersistent()
isMessagePersistent
in interface MonitoringQueueImplMBean
public void setMessagePersistent(boolean isPersistent)
setMessagePersistent
in interface MonitoringQueueImplMBean
isPersistent
- if true the messages produced are persistent.public int getPriority()
getPriority
in interface MonitoringQueueImplMBean
public void setPriority(int priority)
setPriority
in interface MonitoringQueueImplMBean
priority
- the priority to set.public long getExpiration()
getExpiration
in interface MonitoringQueueImplMBean
public void setExpiration(long expiration)
setExpiration
in interface MonitoringQueueImplMBean
expiration
- the expiration to set.public void initialize(boolean firstTime)
initialize
in class QueueImpl
firstTime
- true when first called by the factorypublic ClientMessages preProcess(fr.dyade.aaa.agent.AgentId from, ClientMessages cm)
preProcess
in class DestinationImpl
public void wakeUpNot(WakeUpNot not)
wakeUpNot
in class QueueImpl
public java.lang.String[] getMonitoredAttributes()
getMonitoredAttributes
in interface MonitoringQueueImplMBean
public void addMonitoredAttributes(java.lang.String MBeanName, java.lang.String attributes)
addMonitoredAttributes
in interface MonitoringQueueImplMBean
MBeanName
- the name of the MBean.attributes
- the comma separated list of attributes to monitor.public void delMonitoredAttributes(java.lang.String mbean)
delMonitoredAttributes
in interface MonitoringQueueImplMBean
mbean
- the name of the MBean.public java.lang.String toString()
QueueImpl
toString
in interface DestinationImplMBean
toString
in class QueueImpl
|
Joram 5.3.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |