public class HostEvent extends AbstractEvent<HostEvent.Type,Host>
| Modifier and Type | Class and Description |
|---|---|
static class |
HostEvent.Type
Type of host events.
|
| Constructor and Description |
|---|
HostEvent(HostEvent.Type type,
Host host)
Creates an event of a given type and for the specified host and the
current time.
|
HostEvent(HostEvent.Type type,
Host host,
Host prevSubject)
Creates an event with previous subject.
|
HostEvent(HostEvent.Type type,
Host host,
long time)
Creates an event of a given type and for the specified host and time.
|
| Modifier and Type | Method and Description |
|---|---|
Host |
prevSubject()
Gets the previous subject in this host event.
|
java.lang.String |
toString() |
subject, time, typepublic HostEvent(HostEvent.Type type, Host host)
type - host event typehost - event host subjectpublic HostEvent(HostEvent.Type type, Host host, long time)
type - host event typehost - event host subjecttime - occurrence timepublic HostEvent(HostEvent.Type type, Host host, Host prevSubject)
type - host event typehost - event host subjectprevSubject - previous host subjectpublic Host prevSubject()
public java.lang.String toString()
toString in class AbstractEvent<HostEvent.Type,Host>