Class MasterEvent

java.lang.Object
java.util.EventObject
zleurtor.scanmanager.model.events.MasterEvent
All Implemented Interfaces:
Serializable

public class MasterEvent extends EventObject
The class of events fired by the master.
Author:
Zleurtor
See Also:
  • Constructor Details

    • MasterEvent

      public MasterEvent(Object source, String theIp, String theName, Object theData)
      Constructs a new master event using the specified source, ip, name and snapshot filename.
      Parameters:
      source - The object which fired this event.
      theIp - The IP of the slave involved in this event.
      theName - The name of the slave involved in this event.
      theData - The event specific data.
  • Method Details

    • getIp

      public final String getIp()
      Returns the IP of the slave involved in this event.
      Returns:
      The IP of the slave involved in this event.
    • getName

      public final String getName()
      Returns the name of the slave involved in this event.
      Returns:
      The name of the slave involved in this event.
    • getData

      public final Object getData()
      Returns the data (specific to each master event).
      Returns:
      The master event data.