|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.monitoring.MasterRemoteControlJMX
public class MasterRemoteControlJMX
This is the GBean that will be the bottleneck for the communication between the management node and the data in the server node.
| Field Summary | |
|---|---|
static GBeanInfo |
GBEAN_INFO
|
| Constructor Summary | |
|---|---|
MasterRemoteControlJMX()
|
|
| Method Summary | |
|---|---|
boolean |
addMBeanForSnapshot(String mbeanName)
Adds a record of the mbean via its name to take snapshots of. |
void |
doFail()
Fails the GBean. |
void |
doStart()
Executes when the GBean starts up. |
void |
doStop()
Executes when the GBean stops. |
HashMap<String,HashMap<String,Long>> |
fetchMaxSnapshotData(Integer numberOfSnapshot)
Fetches the max amount for each statistic stored from the snapshot thread and returns it in a HashMap |
HashMap<String,HashMap<String,Long>> |
fetchMinSnapshotData(Integer numberOfSnapshot)
Fetches the min amount for each statistic stored from the snapshot thread and returns it in a HashMap |
ArrayList<HashMap<String,HashMap<String,Object>>> |
fetchSnapshotData(Integer numberOfSnapshot,
Integer everyNthSnapshot)
Fetches the data stored from the snapshot thread and returns it in a ArrayList with each element being a HashMap of the attribute mapping to the statistic. |
Set<String> |
getAllMBeanNames()
Fetches all mbean names |
HashMap<String,ArrayList<String>> |
getAllSnapshotStatAttributes()
|
static GBeanInfo |
getGBeanInfo()
|
Long |
getSnapshotCount()
|
Long |
getSnapshotDuration()
Gets the elapsed time in milliseconds between each snapshot. |
Integer |
getSnapshotRetention()
|
TreeMap<Long,Long> |
getSpecificStatistics(String mbeanName,
String statsName,
Integer numberOfSnapshots,
Integer everyNthSnapshot,
Boolean showArchived)
|
Set<String> |
getStatisticsProviderMBeanNames()
Fetches all mbean names that provide JSR-77 statistics |
static HashMap |
getStats(String objectName)
Looks up the JSR-77 statistics associated with this object name. |
Set<String> |
getTrackedMBeans()
|
Object |
invoke(ObjectName name,
String operationName,
Object[] params,
String[] signature)
|
boolean |
removeMBeanForSnapshot(String mbeanName)
Removes a record of the mbean via its name to take snapshots of. |
void |
setAttribute(String objectName,
String attrName,
Object attrValue)
Changes the objectName's attrName's value to attrValue |
void |
setSnapshotDuration(Long snapshotDuration)
Sets the elapsed time in milliseconds between each snapshot. |
void |
setSnapshotRetention(Integer retention)
|
Integer |
SnapshotStatus()
|
boolean |
startSnapshot(Long interval)
Begins the snapshot process given the time interval between snapshots Precondition: interval is given in milli seconds |
boolean |
startSnapshot(Long interval,
Integer retention)
Begins the snapshot process given the time interval between snapshots Precondition: interval is given in milli seconds |
boolean |
stopSnapshot()
Stops the snapshot thread |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final GBeanInfo GBEAN_INFO
| Constructor Detail |
|---|
public MasterRemoteControlJMX()
| Method Detail |
|---|
public static HashMap getStats(String objectName)
throws Exception
objectName -
Exception
public void setAttribute(String objectName,
String attrName,
Object attrValue)
throws Exception
objectName - attrName - attrValue -
Exceptionpublic boolean stopSnapshot()
public ArrayList<HashMap<String,HashMap<String,Object>>> fetchSnapshotData(Integer numberOfSnapshot,
Integer everyNthSnapshot)
numberOfSnapshot - everyNthSnapshot -
public HashMap<String,HashMap<String,Long>> fetchMaxSnapshotData(Integer numberOfSnapshot)
numberOfSnapshot -
public HashMap<String,HashMap<String,Long>> fetchMinSnapshotData(Integer numberOfSnapshot)
numberOfSnapshot -
public Long getSnapshotDuration()
public void setSnapshotDuration(Long snapshotDuration)
snapshotDuration - public void setSnapshotRetention(Integer retention)
public boolean startSnapshot(Long interval)
interval -
public boolean startSnapshot(Long interval,
Integer retention)
interval - public Long getSnapshotCount()
public Set<String> getStatisticsProviderMBeanNames()
public Set<String> getAllMBeanNames()
public void doFail()
GBeanLifecycle
doFail in interface GBeanLifecyclepublic void doStart()
doStart in interface GBeanLifecyclepublic void doStop()
doStop in interface GBeanLifecyclepublic boolean addMBeanForSnapshot(String mbeanName)
mbeanName - public boolean removeMBeanForSnapshot(String mbeanName)
mbeanName - public HashMap<String,ArrayList<String>> getAllSnapshotStatAttributes()
public Set<String> getTrackedMBeans()
public Integer getSnapshotRetention()
public Object invoke(ObjectName name,
String operationName,
Object[] params,
String[] signature)
throws Exception
name - - object name of the mbeanoperationName - - method within the classparams - - parameters for the methodsignature - - types for the parameters
Exception
public TreeMap<Long,Long> getSpecificStatistics(String mbeanName,
String statsName,
Integer numberOfSnapshots,
Integer everyNthSnapshot,
Boolean showArchived)
mbeanName - statsName - numberOfSnapshots - everyNthSnapshot -
public Integer SnapshotStatus()
public static GBeanInfo getGBeanInfo()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||