net.dpml.transit.model
Class HostPriorityEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bynet.dpml.transit.model.HostEvent
          extended bynet.dpml.transit.model.HostPriorityEvent
All Implemented Interfaces:
Serializable

public class HostPriorityEvent
extends HostEvent

An event signalling the change in priority of a host.

Version:
1.0.1
Author:
Digital Product Meta Library
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
HostPriorityEvent(HostModel host, int priority)
          Creation of a new host priority change event.
 
Method Summary
 int getPriority()
          Return the new host priority value.
 
Methods inherited from class net.dpml.transit.model.HostEvent
getHostModel
 
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
 

Constructor Detail

HostPriorityEvent

public HostPriorityEvent(HostModel host,
                         int priority)
Creation of a new host priority change event.

Parameters:
host - the host that was changed
priority - the new host prority value
Method Detail

getPriority

public int getPriority()
Return the new host priority value.

Returns:
the assigned host prority