org.jppf.server.protocol
Class LocationEvent
java.lang.Object
java.util.EventObject
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
|
Constructor Summary |
LocationEvent(Location source,
int n)
Initialize this event with its source location. |
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.
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.