|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.geronimo.monitoring.MasterRemoteControl
@PermitAll public class MasterRemoteControl
This is a Stateful Session Bean that will be the bottleneck for the communication between the management node and the data in the server node.
| Constructor Summary | |
|---|---|
MasterRemoteControl()
|
|
| Method Summary | |
|---|---|
boolean |
addMBeanForSnapshot(String mbeanName)
Adds a record of the mbean via its name to take snapshots of. |
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()
|
Long |
getSnapshotCount()
|
Long |
getSnapshotDuration()
Gets the elapsed time in milliseconds between each snapshot. |
String |
getSnapshotRetention()
|
TreeMap<Long,Long> |
getSpecificStatistics(String mbeanName,
String statsName,
int numberOfSnapshots,
int everyNthSnapshot,
boolean showArchived)
|
Set<String> |
getStatisticsProviderMBeanNames()
Fetches all mbean names that provide JSR-77 statistics |
static HashMap<String,Long> |
getStats(String objectName)
Looks up the JSR-77 statistics associated with this object name. |
Set<String> |
getTrackedMBeans()
|
void |
handleTimeout(Timer theTimer)
|
Object |
invoke(ObjectName name,
String operationName,
Object[] params,
String[] signature)
|
boolean |
isSnapshotRunning()
|
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(int retention)
|
void |
setUpMEJB(String username,
String password)
Retrieves and instance of the MEJB and starts the snapshot process |
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,
int retention)
|
boolean |
stopSnapshot()
Stops the snapshot thread |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MasterRemoteControl()
| Method Detail |
|---|
@RolesAllowed(value="mejbuser")
public void setUpMEJB(String username,
String password)
@RolesAllowed(value="mejbuser")
public static HashMap<String,Long> getStats(String objectName)
throws Exception
objectName -
Exception
@RolesAllowed(value="mejbadmin")
public void setAttribute(String objectName,
String attrName,
Object attrValue)
throws Exception
objectName - attrName - attrValue -
Exception@PermitAll public void handleTimeout(Timer theTimer)
@RolesAllowed(value="mejbuser") public boolean startSnapshot(Long interval)
interval -
@RolesAllowed(value="mejbuser")
public boolean startSnapshot(Long interval,
int retention)
@RolesAllowed(value="mejbuser") public boolean stopSnapshot()
@RolesAllowed(value="mejbuser")
public ArrayList<HashMap<String,HashMap<String,Object>>> fetchSnapshotData(Integer numberOfSnapshot,
Integer everyNthSnapshot)
numberOfSnapshot - everyNthSnapshot -
@RolesAllowed(value="mejbuser") public HashMap<String,HashMap<String,Long>> fetchMaxSnapshotData(Integer numberOfSnapshot)
numberOfSnapshot -
@RolesAllowed(value="mejbuser") public HashMap<String,HashMap<String,Long>> fetchMinSnapshotData(Integer numberOfSnapshot)
numberOfSnapshot -
@RolesAllowed(value="mejbuser") public Long getSnapshotDuration()
@RolesAllowed(value="mejbuser") public void setSnapshotDuration(Long snapshotDuration)
snapshotDuration - @RolesAllowed(value="mejbuser") public void setSnapshotRetention(int retention)
@RolesAllowed(value="mejbuser") public String getSnapshotRetention()
@RolesAllowed(value="mejbuser") public Long getSnapshotCount()
@RolesAllowed(value="mejbuser") public Set<String> getStatisticsProviderMBeanNames()
@RolesAllowed(value="mejbuser") public Set<String> getAllMBeanNames()
@RolesAllowed(value="mejbuser") public boolean addMBeanForSnapshot(String mbeanName)
mbeanName - @RolesAllowed(value="mejbuser") public boolean removeMBeanForSnapshot(String mbeanName)
mbeanName - @RolesAllowed(value="mejbuser") public HashMap<String,ArrayList<String>> getAllSnapshotStatAttributes()
@RolesAllowed(value="mejbuser") public boolean isSnapshotRunning()
@RolesAllowed(value="mejbadmin")
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
@RolesAllowed(value="mejbuser")
public TreeMap<Long,Long> getSpecificStatistics(String mbeanName,
String statsName,
int numberOfSnapshots,
int everyNthSnapshot,
boolean showArchived)
mbeanName - statsName - numberOfSnapshots - everyNthSnapshot -
@RolesAllowed(value="mejbuser") public Set<String> getTrackedMBeans()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||