Class MasterEvent
java.lang.Object
java.util.EventObject
zleurtor.scanmanager.model.events.MasterEvent
- All Implemented Interfaces:
Serializable
The class of events fired by the master.
- Author:
- Zleurtor
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionMasterEvent
(Object source, String theIp, String theName, Object theData) Constructs a new master event using the specified source, ip, name and snapshot filename. -
Method Summary
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
MasterEvent
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
Returns the IP of the slave involved in this event.- Returns:
- The IP of the slave involved in this event.
-
getName
Returns the name of the slave involved in this event.- Returns:
- The name of the slave involved in this event.
-
getData
Returns the data (specific to each master event).- Returns:
- The master event data.
-