com.cysols.iodef.analysis.sida
Class Alert

java.lang.Object
  extended by com.cysols.iodef.analysis.sida.Alert
All Implemented Interfaces:
Event

public class Alert
extends Object
implements Event

This class represents Alert itself. This value class has object is used to keep the contents of Alert.


Constructor Summary
Alert()
          Default constructor, instantiates an empty alert object.
 
Method Summary
 String getDstIPAddr()
          Returns the destination address of this alert event.
 String getDstIPType()
          Returns the destination address type of this alert event.
 String getDstMACAddr()
          Returns the destination MAC address of this alert event.
 String getDstPort()
          Returns the destination port number of this alert event.
 String getIndex()
          Returns the index of this alert event.
 String getMessage()
          Returns the message (description) of this alert event.
 String getRuleID()
          Returns the Rule ID of this alert event.
 String getSensorID()
          Returns the Sensor ID of this alert event.
 String getSrcIPAddr()
          Returns the source address of this alert event.
 String getSrcIPType()
          Returns source address type of this alert event.
 String getSrcMACAddr()
          Returns the source MAC address of this alert event.
 String getSrcPort()
          Returns the source port number of this alert event.
 long getTimestamp()
          Returns the timestamp of this alert event.
 void setDstIPAddr(String dstIPAddr)
          Sets an address as the destination address of this alert event.
 void setDstIPType(String dstType)
          Sets an address type as the destination address type of this alert event.
 void setDstMACAddr(String dstMACAddr)
          Sets a MAC address as the destination MAC address of this alert event.
 void setDstPort(String dstPort)
          Sets a port number as the destination port number of this alert event.
 void setIndex(String index)
          Sets an index as the index of this alert event.
 void setMessage(String message)
          Sets a message (description) as the message of this alert event.
 void setRuleID(String ruleID)
          Sets a Rule ID as the Rule ID of this alert event.
 void setSensorID(String sensorID)
          Sets a Sensor ID as the Sensor ID of this alert event.
 void setSrcIPAddr(String srcAddr)
          Sets an address as the source address of this alert event.
 void setSrcIPType(String srcType)
          Sets an address type as the source address type of this alert event.
 void setSrcMACAddr(String srcMACAddr)
          Sets a MAC address as the source MAC address of this alert event.
 void setSrcPort(String srcPort)
          Sets a port number as the source port number of this alert event.
 void setTimestamp(long timestamp)
          Sets a timestamp as the timestamp of this alert event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Alert

public Alert()
Default constructor, instantiates an empty alert object.

Method Detail

getIndex

public final String getIndex()
Returns the index of this alert event.

Returns:
index.

setIndex

public final void setIndex(String index)
Sets an index as the index of this alert event.

Parameters:
index - index.

getSensorID

public final String getSensorID()
Returns the Sensor ID of this alert event.

Returns:
sensor id.

setSensorID

public final void setSensorID(String sensorID)
Sets a Sensor ID as the Sensor ID of this alert event.

Parameters:
sensorID - sensor id

getTimestamp

public final long getTimestamp()
Returns the timestamp of this alert event.

Specified by:
getTimestamp in interface Event
Returns:
timestamp milliseconds.

setTimestamp

public final void setTimestamp(long timestamp)
Sets a timestamp as the timestamp of this alert event.

Parameters:
timestamp - milliseconds

getRuleID

public final String getRuleID()
Returns the Rule ID of this alert event.

Returns:
rule id.

setRuleID

public final void setRuleID(String ruleID)
Sets a Rule ID as the Rule ID of this alert event.

Parameters:
ruleID - rule id

getMessage

public final String getMessage()
Returns the message (description) of this alert event.

Returns:
message (description).

setMessage

public final void setMessage(String message)
Sets a message (description) as the message of this alert event.

Parameters:
message - message (description).

getSrcIPAddr

public final String getSrcIPAddr()
Returns the source address of this alert event.

Specified by:
getSrcIPAddr in interface Event
Returns:
source IP address.

setSrcIPAddr

public final void setSrcIPAddr(String srcAddr)
Sets an address as the source address of this alert event.

Parameters:
srcAddr - source IP address.

getSrcMACAddr

public final String getSrcMACAddr()
Returns the source MAC address of this alert event.

Returns:
source MAC address.

setSrcMACAddr

public final void setSrcMACAddr(String srcMACAddr)
Sets a MAC address as the source MAC address of this alert event.

Parameters:
srcMACAddr - source MAC address.

getSrcPort

public final String getSrcPort()
Returns the source port number of this alert event.

Returns:
source port number.

setSrcPort

public final void setSrcPort(String srcPort)
Sets a port number as the source port number of this alert event.

Parameters:
srcPort - source port number.

getSrcIPType

public final String getSrcIPType()
Returns source address type of this alert event.

Returns:
source IP address type.

setSrcIPType

public final void setSrcIPType(String srcType)
Sets an address type as the source address type of this alert event.

Parameters:
srcType - source IP address type.

getDstIPAddr

public final String getDstIPAddr()
Returns the destination address of this alert event.

Returns:
destination IP address.

setDstIPAddr

public final void setDstIPAddr(String dstIPAddr)
Sets an address as the destination address of this alert event.

Parameters:
dstIPAddr - destination IP address.

getDstMACAddr

public final String getDstMACAddr()
Returns the destination MAC address of this alert event.

Returns:
destination MAC address.

setDstMACAddr

public final void setDstMACAddr(String dstMACAddr)
Sets a MAC address as the destination MAC address of this alert event.

Parameters:
dstMACAddr - destination MAC address.

getDstPort

public final String getDstPort()
Returns the destination port number of this alert event.

Returns:
destination port number.

setDstPort

public final void setDstPort(String dstPort)
Sets a port number as the destination port number of this alert event.

Parameters:
dstPort - destination port number.

getDstIPType

public final String getDstIPType()
Returns the destination address type of this alert event.

Returns:
destination IP address type.

setDstIPType

public final void setDstIPType(String dstType)
Sets an address type as the destination address type of this alert event.

Parameters:
dstType - destination IP address type.