|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
net.jini.core.event.RemoteEvent
org.rioproject.event.RemoteServiceEvent
org.rioproject.watch.ThresholdEvent
public class ThresholdEvent
The ThresholdEvent extends RemoteServiceEvent allowing for remote notification of a Threshold being crossed
| Field Summary | |
|---|---|
static int |
BREACHED
Indicates a threshold that has been breached |
static int |
CLEARED
Indicates a threshold that has been cleared |
static long |
ID
|
| Fields inherited from class org.rioproject.event.RemoteServiceEvent |
|---|
date |
| Fields inherited from class net.jini.core.event.RemoteEvent |
|---|
eventID, handback, seqNum, source |
| Constructor Summary | |
|---|---|
ThresholdEvent(Object source)
Creates new ThresholdEvent |
|
ThresholdEvent(Object source,
Calculable calculable,
ThresholdValues thresholdValues,
int type)
Creates new ThresholdEvent |
|
ThresholdEvent(Object source,
Calculable calculable,
ThresholdValues thresholdValues,
int type,
String detail)
Creates new ThresholdEvent |
|
| Method Summary | |
|---|---|
Calculable |
getCalculable()
Getter for property calculable |
String |
getDetail()
|
ThresholdValues |
getThresholdValues()
Getter for property thresholdValues |
int |
getType()
Getter for property type |
void |
setCalculable(Calculable calculable)
Setter for property calculable |
void |
setDetail(String detail)
|
void |
setThresholdValues(ThresholdValues thresholdValues)
Setter for property thresholdValues |
void |
setType(int type)
Setter for property type |
| Methods inherited from class org.rioproject.event.RemoteServiceEvent |
|---|
getDate, setEventID, setHandback, setSequenceNumber |
| Methods inherited from class net.jini.core.event.RemoteEvent |
|---|
getID, getRegistrationObject, getSequenceNumber |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final long ID
public static final int BREACHED
public static final int CLEARED
| Constructor Detail |
|---|
public ThresholdEvent(Object source)
source - The event source
public ThresholdEvent(Object source,
Calculable calculable,
ThresholdValues thresholdValues,
int type)
source - The event sourcecalculable - Value of property calculablethresholdValues - Value of property thresholdValuestype - Whether the threshold has been breached or cleared
public ThresholdEvent(Object source,
Calculable calculable,
ThresholdValues thresholdValues,
int type,
String detail)
source - The event sourcecalculable - Value of property calculablethresholdValues - Value of property thresholdValuestype - Whether the threshold has been breached or cleareddetail - Optional details of the notification (may be null)| Method Detail |
|---|
public int getType()
public void setType(int type)
type - Whether the threshold has been breached or clearedpublic Calculable getCalculable()
public void setCalculable(Calculable calculable)
calculable - New value of property calculablepublic ThresholdValues getThresholdValues()
public void setThresholdValues(ThresholdValues thresholdValues)
thresholdValues - New value of property thresholdValuespublic String getDetail()
public void setDetail(String detail)
|
Copyright © Rio Project. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||