Package org.jppf.location
Class LocationEvent
java.lang.Object
java.util.EventObject
org.jppf.location.LocationEvent
- All Implemented Interfaces:
Serializable
Instances of this class represent events occurring when performing I/O operations between
Location instances.- Author:
- Laurent Cohen
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionLocationEvent(Location<?> source, long n) Initialize this event with its source location. -
Method Summary
Modifier and TypeMethodDescriptionLocation<?>Get the source location, on which the event occurred.longGet the number of bytes transferred during this event.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
LocationEvent
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 Details
-
getTransferredBytes
public long getTransferredBytes()Get the number of bytes transferred during this event.- Returns:
- the number of bytes as an int.
-
getLocation
Get the source location, on which the event occurred.- Returns:
- the source as a
Locationinstance.
-