|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.jsesoft.mmbi.samples.SampleResource
public class SampleResource
Serves as a sample for a managed resource.
This class demonstrates both, automatic and JMX annotation controlled instrumentation as a Model MBean.
| Constructor Summary | |
|---|---|
|
SampleResource()
Non-parameter constructor. |
|
SampleResource(java.lang.Object coverage)
One-parameter constructor. |
protected |
SampleResource(java.lang.Object coverage,
java.lang.Object protect)
Protected constructor. |
| Method Summary | |
|---|---|
char |
getCharacter()
Returns a character. |
int |
getInteger()
Returns an integer. |
boolean |
isControlled()
The getter for the controlled field. |
protected boolean |
isManageable()
Protected getters aren't remotely manageable. |
boolean |
isReadOnlyField()
The getter for the read-only field. |
boolean |
isReady()
Returns a boolean. |
void |
namedFunction(long l)
Does nothing. |
long |
parametrizedFunction(long aLongParameter)
parametrizedFunction. |
void |
setCharacter(char value)
Returns a character. |
void |
setControlled(boolean isControlled)
The setter for the controlled field. |
protected void |
setManageable(boolean value)
Protected setters aren't remotely manageable. |
void |
xmlFunction()
Doesn't do anything. |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
|---|
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
@JMX(hide=true) public SampleResource()
public SampleResource(java.lang.Object coverage)
coverage - constructor parameter
protected SampleResource(java.lang.Object coverage,
java.lang.Object protect)
coverage - constructor paramprotect - constructor param| Method Detail |
|---|
@JMX(hide=true) public boolean isReadOnlyField()
@JMXNotification(description="Test Notification",
types={"jsesoft.mmbi.test.on","jsesoft.mmbi.test.off"})
public boolean isControlled()
protected boolean isManageable()
protected void setManageable(boolean value)
value - a boolean valuepublic void setControlled(boolean isControlled)
isControlled - the new value for the controlled field
@JMX(displayName="coverage",
description="coverage description")
public long parametrizedFunction(long aLongParameter)
aLongParameter - a long value
@JMX(impact=1)
public void namedFunction(@JMX(name="value")
long l)
l - long@JMX(xml="") public void xmlFunction()
@JMX(name="getInteger") public int getInteger()
public char getCharacter()
public void setCharacter(char value)
value - the characterpublic boolean isReady()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||