|
||||||||||
| 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.jini.rio.event.RemoteServiceEvent
org.jini.rio.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 clreaed |
static long |
ID
|
| 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 |
|
| Method Summary | |
|---|---|
Calculable |
getCalculable()
Getter for property calculable |
ThresholdValues |
getThresholdValues()
Getter for property thresholdValues |
int |
getType()
Getter for property type |
void |
setCalculable(Calculable calculable)
Setter for property calculable |
void |
setThresholdValues(ThresholdValues thresholdValues)
Setter for property thresholdValues |
void |
setType(int type)
Setter for property type |
| Methods inherited from class org.jini.rio.event.RemoteServiceEvent |
|---|
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 - New value of property calculablethresholdValues - New value of property thresholdValuestype - Whether the treshold has been breached or cleared| Method Detail |
|---|
public int getType()
public void setType(int type)
type - Whether the treshold 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 thresholdValues
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||