Joram 5.3.1

org.objectweb.joram.mom.dest
Class MonitoringTopicImpl

java.lang.Object
  extended by org.objectweb.joram.mom.dest.DestinationImpl
      extended by org.objectweb.joram.mom.dest.TopicImpl
          extended by org.objectweb.joram.mom.dest.MonitoringTopicImpl
All Implemented Interfaces:
java.io.Serializable, DestinationImplMBean, MonitoringTopicImplMBean, TopicImplMBean

public class MonitoringTopicImpl
extends TopicImpl
implements MonitoringTopicImplMBean

The MonitoringTopicImpl class implements the monitoring behavior, regularly delivering monitoring messages to subscribers.

See Also:
Serialized Form

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 org.objectweb.joram.mom.dest.DestinationImpl
canBeDeleted, clientMessages, deleteNot, forward, getCreationDate, getCreationTimeInMillis, getDestinationId, getDMQId, getId, getJMXStatistics, getNbMsgsDeliverSinceCreation, getNbMsgsSentToDMQSinceCreation, getPeriod, getRight, getRights, handleDeniedMessage, isAdministrator, isFreeReading, isFreeWriting, isLocal, isReader, isValidJMXAttribute, isWriter, monitFreeAccess, monitGetDMQSettings, monitGetReaders, monitGetStat, monitGetWriters, postProcess, postProcess, preProcess, processSetRight, replyToTopic, requestGroupNot, setAgent, setDMQRequest, setFreeReading, setFreeWriting, setPeriod, setRightRequest, specialAdminProcess, specialAdminRequest, unknownAgent
 
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

MonitoringTopicImpl

public MonitoringTopicImpl(fr.dyade.aaa.agent.AgentId adminId,
                           java.util.Properties properties)
Method Detail

isMessagePersistent

public boolean isMessagePersistent()
Returns true if the messages produced are persistent.

Specified by:
isMessagePersistent in interface MonitoringTopicImplMBean
Returns:
true if the messages produced are persistent.

setMessagePersistent

public void setMessagePersistent(boolean isPersistent)
Sets the DeliveryMode value for the produced messages. if the parameter is true the messages produced are persistent.

Specified by:
setMessagePersistent in interface MonitoringTopicImplMBean
Parameters:
isPersistent - if true the messages produced are persistent.

getPriority

public int getPriority()
Returns the priority of produced messages.

Specified by:
getPriority in interface MonitoringTopicImplMBean
Returns:
the priority of produced messages.

setPriority

public void setPriority(int priority)
Sets the priority of produced messages.

Specified by:
setPriority in interface MonitoringTopicImplMBean
Parameters:
priority - the priority to set.

getExpiration

public long getExpiration()
Returns the expiration value for produced messages.

Specified by:
getExpiration in interface MonitoringTopicImplMBean
Returns:
the expiration value for produced messages.

setExpiration

public void setExpiration(long expiration)
Sets the expiration value for produced messages.

Specified by:
setExpiration in interface MonitoringTopicImplMBean
Parameters:
expiration - the expiration to set.

initialize

public void initialize(boolean firstTime)
Description copied from class: TopicImpl
Initializes the destination.

Overrides:
initialize in class TopicImpl
Parameters:
firstTime - true when first called by the factory

preProcess

public ClientMessages preProcess(fr.dyade.aaa.agent.AgentId from,
                                 ClientMessages cm)
Overrides:
preProcess in class DestinationImpl

wakeUpNot

public void wakeUpNot(WakeUpNot not)
When the topic is waken up, collect the monitoring information required and send it.

Overrides:
wakeUpNot in class TopicImpl

getMonitoredAttributes

public java.lang.String[] getMonitoredAttributes()
Returns the comma separated list of all monitored attributes.

Specified by:
getMonitoredAttributes in interface MonitoringTopicImplMBean
Returns:
the comma separated list of all monitored attributes.

addMonitoredAttributes

public void addMonitoredAttributes(java.lang.String MBeanName,
                                   java.lang.String attributes)
Add the specified attributes to the list of monitored attributes. If the Mbean is already monitored, the specified list of attributes overrides the existing one.

Specified by:
addMonitoredAttributes in interface MonitoringTopicImplMBean
Parameters:
MBeanName - the name of the MBean.
attributes - the comma separated list of attributes to monitor.

delMonitoredAttributes

public void delMonitoredAttributes(java.lang.String mbean)
Removes all the attributes of the specified MBean in the list of monitored attributes.

Specified by:
delMonitoredAttributes in interface MonitoringTopicImplMBean
Parameters:
mbean - the name of the MBean.

Joram 5.3.1

Copyright © 2000 - 2009 Scalagent D.T. - All rights reserved