|
Joram 5.3.0 | ||||||||
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 |
---|
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, WAKEUP_PERIOD, WRITE |
Constructor Summary | |
---|---|
MonitoringTopicImpl(fr.dyade.aaa.agent.AgentId adminId,
java.util.Properties properties)
|
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. |
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, getNbMsgsReceiveSinceCreation, 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, getNbMsgsReceiveSinceCreation, getNbMsgsSentToDMQSinceCreation, getPeriod, getRight, getRights, isFreeReading, isFreeWriting, setFreeReading, setFreeWriting, setPeriod, toString |
Constructor Detail |
---|
public MonitoringTopicImpl(fr.dyade.aaa.agent.AgentId adminId, java.util.Properties properties)
Method Detail |
---|
public boolean isMessagePersistent()
isMessagePersistent
in interface MonitoringTopicImplMBean
public void setMessagePersistent(boolean isPersistent)
setMessagePersistent
in interface MonitoringTopicImplMBean
isPersistent
- if true the messages produced are persistent.public int getPriority()
getPriority
in interface MonitoringTopicImplMBean
public void setPriority(int priority)
setPriority
in interface MonitoringTopicImplMBean
priority
- the priority to set.public long getExpiration()
getExpiration
in interface MonitoringTopicImplMBean
public void setExpiration(long expiration)
setExpiration
in interface MonitoringTopicImplMBean
expiration
- the expiration to set.public void initialize(boolean firstTime)
TopicImpl
initialize
in class TopicImpl
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 TopicImpl
public java.lang.String[] getMonitoredAttributes()
getMonitoredAttributes
in interface MonitoringTopicImplMBean
public void addMonitoredAttributes(java.lang.String MBeanName, java.lang.String attributes)
addMonitoredAttributes
in interface MonitoringTopicImplMBean
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 MonitoringTopicImplMBean
mbean
- the name of the MBean.
|
Joram 5.3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |