public class DefaultClientEvent extends AbstractTypedEvent<ClientEvent.Type> implements ClientEvent, Distributable
ClientEvent
Modifier and Type | Class and Description |
---|---|
static class |
DefaultClientEvent.Alert |
ClientEvent.Type
Constructor and Description |
---|
DefaultClientEvent(ClientEvent.Type type,
MacAddress mac,
IpAddress ip,
long timestamp,
IpAddress switchIp,
BigPortNumber port)
Create Default Client Event with info received from NodeService.
|
DefaultClientEvent(ClientEvent.Type type,
MacAddress mac,
IpAddress ip,
long timestamp,
String userID,
String deviceOS,
IpAddress providerIp,
IpAddress switchIp,
BigPortNumber port,
String uuid,
String deviceType,
String groups)
Create Default Client Event with all related info.
|
DefaultClientEvent(ClientEvent.Type type,
MacAddress mac,
IpAddress ip,
String userID,
String deviceOS,
long timestamp,
IpAddress providerIp,
String deviceType,
String groups)
- * Create Default Client Event with info received from CP.
|
Modifier and Type | Method and Description |
---|---|
DefaultClientEvent.Alert |
getAlert() |
String |
getDeviceOS() |
String |
getDeviceType() |
String |
getGroups() |
IpAddress |
getIp()
Returns ip address related to the event
|
MacAddress |
getMac()
Returns the mac address related to the event
|
BigPortNumber |
getPort() |
IpAddress |
getProviderIp() |
IpAddress |
getSwitchIp() |
long |
getTimestamp() |
String |
getUserID() |
String |
getUuid() |
void |
setAlert(DefaultClientEvent.Alert alert) |
void |
setDeviceOS(String deviceOS) |
void |
setDeviceType(String deviceType) |
void |
setGroups(String groups) |
void |
setIp(IpAddress ip) |
void |
setMac(MacAddress mac) |
void |
setPort(BigPortNumber port) |
void |
setProviderIp(IpAddress providerIp) |
void |
setSwitchIp(IpAddress switchIp) |
void |
setTimestamp(long timestamp) |
void |
setUserID(String userID) |
static String |
supportedValues()
Returns supported property names
|
time, toString, ts, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
ts, type
public DefaultClientEvent(ClientEvent.Type type, MacAddress mac, IpAddress ip, String userID, String deviceOS, long timestamp, IpAddress providerIp, String deviceType, String groups)
type
- of eventmac
- of end hostip
- address of end hostuserID
- username of userdeviceOS
- OS type end hosttimestamp
- of eventproviderIp
- from where event was receiveddeviceType
- device type of end hostgroups
- of userpublic DefaultClientEvent(ClientEvent.Type type, MacAddress mac, IpAddress ip, long timestamp, String userID, String deviceOS, IpAddress providerIp, IpAddress switchIp, BigPortNumber port, String uuid, String deviceType, String groups)
type
- of eventmac
- of end hostip
- Ip address of end hosttimestamp
- of eventuserID
- username of userdeviceOS
- OS type of end hostproviderIp
- from where event was receivedswitchIp
- Ip address of switch where host is connectedport
- of switch where end host connecteduuid
- of eventdeviceType
- of end hostgroups
- of userpublic DefaultClientEvent(ClientEvent.Type type, MacAddress mac, IpAddress ip, long timestamp, IpAddress switchIp, BigPortNumber port)
mac
- of end hostip
- Ip address of end hosttimestamp
- of eventswitchIp
- Ip address of switch where host is connectedport
- port of switch where end host connectedpublic static String supportedValues()
public String getUuid()
public MacAddress getMac()
public void setMac(MacAddress mac)
mac
- the mac to setpublic IpAddress getIp()
public void setIp(IpAddress ip)
ip
- the ip to setpublic String getUserID()
public void setUserID(String userID)
userID
- the userID to setpublic String getDeviceOS()
public void setDeviceOS(String deviceOS)
deviceOS
- the deviceOS 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 getProviderIp()
public void setProviderIp(IpAddress providerIp)
providerIp
- the providerIp to setpublic IpAddress getSwitchIp()
public void setSwitchIp(IpAddress switchIp)
switchIp
- the switchIp to setpublic String getDeviceType()
public void setDeviceType(String deviceType)
deviceType
- the deviceType to setpublic void setAlert(DefaultClientEvent.Alert alert)
alert
- alert associated to the eventpublic DefaultClientEvent.Alert getAlert()
public String getGroups()
public void setGroups(String groups)
groups
- the groups to setCopyright © 2016. All Rights Reserved.