org.jppf.server.protocol
Class LocationEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.jppf.server.protocol.LocationEvent
All Implemented Interfaces:
Serializable

public class LocationEvent
extends EventObject

Instances of this class represent events occurring when performing I/O operations between Location instances.

Author:
Laurent Cohen
See Also:
EventObject, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
LocationEvent(Location source, int n)
          Initialize this event with its source location.
 
Method Summary
 int bytesTransferred()
          Get the number of bytes transferred during this event.
 Location getSourceLocation()
          Get the source location, on which the event occurred.
 
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

LocationEvent

public LocationEvent(Location source,
                     int n)
Initialize this event with its source location.

Parameters:
source - - the location on which the event is occurring.
n - - the number of bytes that were transferred to another location.
Method Detail

bytesTransferred

public int bytesTransferred()
Get the number of bytes transferred during this event.

Returns:
the number of bytes as an int.

getSourceLocation

public Location getSourceLocation()
Get the source location, on which the event occurred.

Returns:
the source as a Location instance.


Copyright © 2005-2010 JPPF Team.