|
Joram 5.2.6 | ||||||||
| 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.TopicImpl
org.objectweb.joram.mom.dest.MonitoringTopicImpl
public class MonitoringTopicImpl
The MonitoringTopicImpl class implements the monitoring
behavior, regularly delivering monitoring messages to subscribers.
| Field Summary | |
|---|---|
protected long |
period
Time between two monitoring events. |
| Fields inherited from class org.objectweb.joram.mom.dest.TopicImpl |
|---|
alreadySentLocally, fatherId, friends, selectors, subscribers |
| Fields inherited from class org.objectweb.joram.mom.dest.DestinationImpl |
|---|
_rights, agent, clients, creationDate, dmqId, freeReading, freeWriting, logger, nbMsgsDeliverSinceCreation, nbMsgsReceiveSinceCreation, nbMsgsSentToDMQSinceCreation, READ, READWRITE, WRITE |
| Constructor Summary | |
|---|---|
MonitoringTopicImpl(fr.dyade.aaa.agent.AgentId adminId,
java.util.Properties prop)
|
|
| 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 MBeanName)
Removes all the attributes of the specified MBean in the list of monitored attributes. |
java.lang.String[] |
getMonitoredAttributes()
Returns the comma separated list of all monitored attributes. |
long |
getNbMsgsReceiveSinceCreation()
Returns the number of messages received since creation time of this destination. |
long |
getPeriod()
Returns the time between two monitoring events, one minute if not set. |
void |
initialize(boolean firstTime)
Initializes the destination. |
ClientMessages |
preProcess(fr.dyade.aaa.agent.AgentId from,
ClientMessages msgs)
|
void |
setPeriod(long period)
Sets or unsets the period for this queue. |
void |
wakeUpNot(WakeUpNot not)
When the topic is waken up, collect the monitoring information required and send it. |
| Methods inherited from class org.objectweb.joram.mom.dest.TopicImpl |
|---|
clusterAck, clusterNot, clusterRequest, clusterTest, destinationAdminRequestNot, doClientMessages, doDeleteNot, doRightRequest, doUnknownAgent, fatherAck, fatherTest, forwardMessages, getSubscriberIds, monitGetCluster, monitGetFather, monitGetSubscriptions, postSubscribe, postUnsubscribe, preSubscribe, preUnsubscribe, processMessages, setAlreadySentLocally, setFatherRequest, subscribeRequest, topicForwardNot, toString, unclusterNot, unclusterRequest, unsetFatherRequest, unsubscribeRequest |
| 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.TopicImplMBean |
|---|
getSubscriberIds |
| Methods inherited from interface org.objectweb.joram.mom.dest.DestinationImplMBean |
|---|
getCreationDate, getCreationTimeInMillis, getDestinationId, getDMQId, getNbMsgsDeliverSinceCreation, getNbMsgsSentToDMQSinceCreation, getRight, getRights, isFreeReading, isFreeWriting, setFreeReading, setFreeWriting, toString |
| Field Detail |
|---|
protected long period
| Constructor Detail |
|---|
public MonitoringTopicImpl(fr.dyade.aaa.agent.AgentId adminId,
java.util.Properties prop)
| Method Detail |
|---|
public void initialize(boolean firstTime)
TopicImpl
initialize in class TopicImplfirstTime - true when first called by the factorypublic long getPeriod()
getPeriod in interface MonitoringTopicImplMBean
public ClientMessages preProcess(fr.dyade.aaa.agent.AgentId from,
ClientMessages msgs)
preProcess in class DestinationImplpublic void setPeriod(long period)
setPeriod in interface MonitoringTopicImplMBeanperiod - The period value to be set or -1 for unsetting previous value.public void wakeUpNot(WakeUpNot not)
public long getNbMsgsReceiveSinceCreation()
DestinationImpl
getNbMsgsReceiveSinceCreation in interface DestinationImplMBeangetNbMsgsReceiveSinceCreation in class TopicImplpublic java.lang.String[] getMonitoredAttributes()
getMonitoredAttributes in interface MonitoringTopicImplMBean
public void addMonitoredAttributes(java.lang.String MBeanName,
java.lang.String attributes)
addMonitoredAttributes in interface MonitoringTopicImplMBeanMBeanName - the name of the MBean.attributes - the comma separated list of attributes to monitor.public void delMonitoredAttributes(java.lang.String MBeanName)
delMonitoredAttributes in interface MonitoringTopicImplMBeanMBeanName - the name of the MBean.
|
Joram 5.2.6 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||