org.eclipse.jetty.monitor.jmx
类 EventState<TYPE>

java.lang.Object
  继承者 org.eclipse.jetty.monitor.jmx.EventState<TYPE>

public class EventState<TYPE>
extends Object

EventState Holds the state of one or more event trigger instances to be used when sending notifications as well as executing the actions


嵌套类摘要
static class EventState.TriggerState<TYPE>
          State Holds the state of a single event trigger
 
字段摘要
protected  Map<String,EventState.TriggerState<TYPE>> _states
           
 
构造方法摘要
EventState()
          Constructs an empty event state
EventState(String id, String desc, TYPE value)
          Constructs an event state and adds a specified trigger state to it
 
方法摘要
 void add(EventState.TriggerState<TYPE> state)
          Adds a trigger state to the event state
 void addAll(Collection<EventState.TriggerState<TYPE>> entries)
          Adds a collection of trigger states to the event state
 EventState.TriggerState<TYPE> get(String id)
          Retrieves a single trigger state
 String toString()
          Returns a string representation of the event state
 Collection<EventState.TriggerState<TYPE>> values()
          Retrieves a collection of all trigger states of the event state
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

字段详细信息

_states

protected Map<String,EventState.TriggerState<TYPE>> _states
构造方法详细信息

EventState

public EventState()
Constructs an empty event state


EventState

public EventState(String id,
                  String desc,
                  TYPE value)
Constructs an event state and adds a specified trigger state to it

参数:
id - unique identification string of the associated event trigger
desc - description of the associated event trigger
value - effective value of the MXBean attribute (if applicable)
方法详细信息

add

public void add(EventState.TriggerState<TYPE> state)
Adds a trigger state to the event state

参数:
state - trigger state to add

addAll

public void addAll(Collection<EventState.TriggerState<TYPE>> entries)
Adds a collection of trigger states to the event state

参数:
entries - collection of trigger states to add

get

public EventState.TriggerState<TYPE> get(String id)
Retrieves a single trigger state

参数:
id - unique identification string of the event trigger
返回:
requested trigger state or null if not found

values

public Collection<EventState.TriggerState<TYPE>> values()
Retrieves a collection of all trigger states of the event state

返回:
collection of the trigger states

toString

public String toString()
Returns a string representation of the event state

覆盖:
Object 中的 toString
返回:
string representation of the event state


Copyright © 2013. All Rights Reserved.