public class ClientNodeEvent extends AbstractTypedEvent<ClientEvent.Type> implements ClientEvent, Distributable
ClientNodeEvent
Modifier and Type | Class and Description |
---|---|
static class |
ClientNodeEvent.Status |
ClientEvent.Type
Constructor and Description |
---|
ClientNodeEvent(ClientEvent.Type type,
MacAddress mac,
IpAddress ip,
long timestamp,
IpAddress switchIp,
BigPortNumber port)
Create Client Node Event with all related info.
|
Modifier and Type | Method and Description |
---|---|
ClientEvent.Type |
getEventType() |
IpAddress |
getIp() |
MacAddress |
getMac()
Returns the mac address related to the event
|
BigPortNumber |
getPort() |
ClientNodeEvent.Status |
getStatus() |
IpAddress |
getSwitchIp() |
long |
getTimestamp() |
void |
setEventType(ClientEvent.Type type) |
void |
setIp(IpAddress ip) |
void |
setMac(MacAddress mac) |
void |
setPort(BigPortNumber port) |
void |
setStatus(ClientNodeEvent.Status status) |
void |
setSwitchIp(IpAddress switchIp) |
void |
setTimestamp(long timestamp) |
time, toString, ts, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
ts, type
public ClientNodeEvent(ClientEvent.Type type, MacAddress mac, IpAddress ip, long timestamp, IpAddress switchIp, BigPortNumber port)
type
- of eventmac
- of end hosttimestamp
- of eventswitchIp
- Ip address of switch where host is connectedport
- of switch where end host connectedpublic void setEventType(ClientEvent.Type type)
type
- the type to setpublic ClientEvent.Type getEventType()
public MacAddress getMac()
public void setMac(MacAddress mac)
mac
- the mac to setpublic long getTimestamp()
public void setTimestamp(long timestamp)
timestamp
- the timestamp to setpublic BigPortNumber getPort()
public void setPort(BigPortNumber port)
port
- the port to setpublic IpAddress getSwitchIp()
public void setSwitchIp(IpAddress switchIp)
switchIp
- the switchIp to setpublic void setStatus(ClientNodeEvent.Status status)
status
- the status to setpublic ClientNodeEvent.Status getStatus()
public void setIp(IpAddress ip)
ip
- the IpAddress of the clientpublic IpAddress getIp()
Copyright © 2016. All Rights Reserved.