public class EventState<TYPE>
extends java.lang.Object
event trigger
instances to be used when sending notifications as well as executing the actionsModifier and Type | Class and Description |
---|---|
static class |
EventState.TriggerState<TYPE>
State
Holds the state of a single
event trigger |
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,EventState.TriggerState<TYPE>> |
_states |
Constructor and Description |
---|
EventState()
Constructs an empty event state
|
EventState(java.lang.String id,
java.lang.String desc,
TYPE value)
Constructs an event state and adds a specified trigger state to it
|
Modifier and Type | Method and Description |
---|---|
void |
add(EventState.TriggerState<TYPE> state)
Adds a trigger state to the event state
|
void |
addAll(java.util.Collection<EventState.TriggerState<TYPE>> entries)
Adds a collection of trigger states to the event state
|
EventState.TriggerState<TYPE> |
get(java.lang.String id)
Retrieves a single trigger state
|
java.lang.String |
toString()
Returns a string representation of the event state
|
java.util.Collection<EventState.TriggerState<TYPE>> |
values()
Retrieves a collection of all trigger states of the event state
|
protected java.util.Map<java.lang.String,EventState.TriggerState<TYPE>> _states
public EventState()
public EventState(java.lang.String id, java.lang.String desc, TYPE value)
id
- unique identification string of the associated event triggerdesc
- description of the associated event triggervalue
- effective value of the MXBean attribute (if applicable)public void add(EventState.TriggerState<TYPE> state)
state
- trigger state to addpublic void addAll(java.util.Collection<EventState.TriggerState<TYPE>> entries)
entries
- collection of trigger states to addpublic EventState.TriggerState<TYPE> get(java.lang.String id)
id
- unique identification string of the event triggerpublic java.util.Collection<EventState.TriggerState<TYPE>> values()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2013. All Rights Reserved.