org.apache.geronimo.monitoring.console
Class MRCConnector
java.lang.Object
org.apache.geronimo.monitoring.console.MRCConnector
public class MRCConnector
- extends Object
Method Summary |
Set<String> |
getAllMbeanNames()
|
HashMap<String,ArrayList<String>> |
getAllSnapshotStatAttributes()
|
HashMap<String,ArrayList<String>> |
getDataNameList()
|
Set<String> |
getFreeStatisticsProviderBeanNames()
|
TreeMap<String,String> |
getFreeStatisticsProviderBeanNamesMap()
|
Set<String> |
getFreeStatisticsProviderBeanNamesPretty()
|
HashMap<String,HashMap<String,Object>> |
getLatestSnapshots()
|
Long |
getSnapshotDuration()
|
int |
getSnapshotRetention()
|
ArrayList<HashMap<String,HashMap<String,Object>>> |
getSnapshots(int snapCount,
int skipCount)
|
TreeMap<Long,Long> |
getSpecificStatistics(String mbeanName,
String statsName,
int snapCount,
int skipCount,
boolean showArchive)
|
Set<String> |
getStatAttributesOnMBean(String mBean)
|
Set<String> |
getStatisticsProviderBeanNames()
|
TreeMap<String,String> |
getStatisticsProviderBeanNamesMap()
|
Set<String> |
getStatisticsProviderBeanNamesPretty()
|
HashMap<String,Long> |
getStats(String MBean)
|
Set<String> |
getTrackedBeans()
|
TreeMap<String,String> |
getTrackedBeansMap()
|
Set<String> |
getTrackedBeansPretty()
|
int |
isSnapshotRunning()
|
void |
setSnapshotDuration(long duration)
|
void |
setSnapshotRetention(int duration)
|
boolean |
startSnapshotThread(long time)
|
boolean |
startTrackingMbean(String MBean)
|
boolean |
stopSnapshotThread()
|
boolean |
stopTrackingMbean(String MBean)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MRCConnector
public MRCConnector(String ip,
String userName,
String password,
int port,
int protocol)
throws Exception
- Parameters:
ip
- -
IP address of mrc-server to connect touserName
- -
Username for JMX connection to the hostpassword
- -
Password for JMX connection to the host
- Throws:
Exception
- -
If the connection to mrc-server fails
getSnapshotDuration
public Long getSnapshotDuration()
throws Exception
- Returns:
- - Returns an Long representing the current snapshot duration set
on the server side
- Throws:
Exception
- -
If the connection to the MRC-Server fails
getDataNameList
public HashMap<String,ArrayList<String>> getDataNameList()
throws Exception
- Returns:
- - Returns an ArrayList of String objects containing a listing of
all statistics values being collected
- Throws:
Exception
- -
If the connection to the MRC-Server fails
getSnapshots
public ArrayList<HashMap<String,HashMap<String,Object>>> getSnapshots(int snapCount,
int skipCount)
throws Exception
- Parameters:
snapCount
- -
Number of snapshots to request from the serverskipCount
- -
Every nth snapshot. A value of 1 will be every 1. A value of 2
will be every other.
- Returns:
- - Returns an ArrayList of Map objects.
- Throws:
Exception
- -
If the connection to the MRC-Server fails
getSpecificStatistics
public TreeMap<Long,Long> getSpecificStatistics(String mbeanName,
String statsName,
int snapCount,
int skipCount,
boolean showArchive)
throws Exception
- Throws:
Exception
getLatestSnapshots
public HashMap<String,HashMap<String,Object>> getLatestSnapshots()
throws Exception
- Throws:
Exception
stopSnapshotThread
public boolean stopSnapshotThread()
throws Exception
- Returns:
- - Returns a boolean indicating successful stop
- Throws:
Exception
- -
If the connection to the MRC-Server fails
startSnapshotThread
public boolean startSnapshotThread(long time)
throws Exception
- Returns:
- - Returns a boolean indicating successful stop
- Throws:
Exception
- -
If the connection to the MRC-Server fails
isSnapshotRunning
public int isSnapshotRunning()
getAllMbeanNames
public Set<String> getAllMbeanNames()
throws Exception
- Throws:
Exception
getStatisticsProviderBeanNames
public Set<String> getStatisticsProviderBeanNames()
throws Exception
- Throws:
Exception
getAllSnapshotStatAttributes
public HashMap<String,ArrayList<String>> getAllSnapshotStatAttributes()
throws Exception
- Throws:
Exception
getTrackedBeans
public Set<String> getTrackedBeans()
throws Exception
- Throws:
Exception
getStatAttributesOnMBean
public Set<String> getStatAttributesOnMBean(String mBean)
throws Exception
- Throws:
Exception
getTrackedBeansPretty
public Set<String> getTrackedBeansPretty()
throws Exception
- Throws:
Exception
getTrackedBeansMap
public TreeMap<String,String> getTrackedBeansMap()
throws Exception
- Throws:
Exception
getStatisticsProviderBeanNamesPretty
public Set<String> getStatisticsProviderBeanNamesPretty()
throws Exception
- Throws:
Exception
getStatisticsProviderBeanNamesMap
public TreeMap<String,String> getStatisticsProviderBeanNamesMap()
throws Exception
- Throws:
Exception
getFreeStatisticsProviderBeanNamesPretty
public Set<String> getFreeStatisticsProviderBeanNamesPretty()
throws Exception
- Throws:
Exception
getFreeStatisticsProviderBeanNames
public Set<String> getFreeStatisticsProviderBeanNames()
throws Exception
- Throws:
Exception
getFreeStatisticsProviderBeanNamesMap
public TreeMap<String,String> getFreeStatisticsProviderBeanNamesMap()
throws Exception
- Throws:
Exception
stopTrackingMbean
public boolean stopTrackingMbean(String MBean)
throws Exception
- Throws:
Exception
startTrackingMbean
public boolean startTrackingMbean(String MBean)
throws Exception
- Throws:
Exception
getStats
public HashMap<String,Long> getStats(String MBean)
throws Exception
- Throws:
Exception
setSnapshotDuration
public void setSnapshotDuration(long duration)
getSnapshotRetention
public int getSnapshotRetention()
setSnapshotRetention
public void setSnapshotRetention(int duration)
Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.