Class LocationEvent

java.lang.Object
java.util.EventObject
org.jppf.location.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:
  • Constructor Details

    • LocationEvent

      public LocationEvent(Location<?> source, long 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 Details

    • getTransferredBytes

      public long getTransferredBytes()
      Get the number of bytes transferred during this event.
      Returns:
      the number of bytes as an int.
    • getLocation

      public Location<?> getLocation()
      Get the source location, on which the event occurred.
      Returns:
      the source as a Location instance.