FileDocCategorySizeDatePackage
MonitorCommand.javaAPI DocGlassfish v2 API3495Fri May 04 22:33:44 BST 2007com.sun.enterprise.admin.monitor

MonitorCommand

public abstract class MonitorCommand extends Object implements Serializable
Monitoring Command. This is the super class of all monitoring commands.

Fields Summary
public static final String
MONITOR_RESULT
Constant to denote monitoring result attribute in event result.
protected ObjectName
objectName
Object name for the MBean to which command applies.
protected String
monitoredObjectType
Sub-types to which this command applies. If not null, the monitoring command applies only to child MBeans of this type.
protected int
actionCode
Action Code. The sub-classes can use this to branch processing.
Constructors Summary
Methods Summary
abstract java.lang.ObjectrunCommand()
Run this command. The returned object should contain result of running this command.

throws
JMXException if the command could not be run

public java.lang.StringtoString()
Get a string representation


                               
        

             
       
        return "MonitorCommand[ObjectName:" + objectName + ";Type:" + monitoredObjectType + ";ActionCode:" + actionCode + "]";