1 23 24 31 package com.sun.enterprise.admin.monitor; 32 33 import java.io.Serializable ; 34 35 import javax.management.JMException ; 36 import javax.management.ObjectName ; 37 38 41 public abstract class MonitorCommand implements Serializable { 42 43 46 public static final String MONITOR_RESULT = "monitor.result"; 47 48 51 protected ObjectName objectName; 52 53 57 protected String monitoredObjectType; 58 59 62 protected int actionCode; 63 64 69 abstract Object runCommand() throws JMException ; 70 71 74 public String toString() { 75 return "MonitorCommand[ObjectName:" + objectName + ";Type:" + monitoredObjectType + ";ActionCode:" + actionCode + "]"; 76 } 77 } 78 | Popular Tags |