Class Event
- java.lang.Object
-
- org.opennms.netmgt.xml.event.Event
-
- All Implemented Interfaces:
java.io.Serializable
,Message
public class Event extends java.lang.Object implements Message, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.opennms.core.ipc.sink.api.Message
SINK_METRIC_CONSUMER_DOMAIN, SINK_METRIC_PRODUCER_DOMAIN
-
-
Constructor Summary
Constructors Constructor Description Event()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addAutoaction(int index, Autoaction vAutoaction)
void
addAutoaction(Autoaction vAutoaction)
void
addForward(int index, Forward vForward)
void
addForward(Forward vForward)
void
addLoggroup(int index, java.lang.String vLoggroup)
void
addLoggroup(java.lang.String vLoggroup)
void
addOperaction(int index, Operaction vOperaction)
void
addOperaction(Operaction vOperaction)
void
addParm(Parm parm)
void
addScript(int index, Script vScript)
void
addScript(Script vScript)
static Event
copyFrom(IEvent source)
void
deleteDbid()
void
deleteIfIndex()
void
deleteNodeid()
java.util.Enumeration<Autoaction>
enumerateAutoaction()
Method enumerateAutoaction.java.util.Enumeration<Forward>
enumerateForward()
Method enumerateForward.java.util.Enumeration<java.lang.String>
enumerateLoggroup()
Method enumerateLoggroup.java.util.Enumeration<Operaction>
enumerateOperaction()
Method enumerateOperaction.java.util.Enumeration<Script>
enumerateScript()
Method enumerateScript.AlarmData
getAlarmData()
Returns the value of field 'alarmData'.Autoacknowledge
getAutoacknowledge()
Returns the value of field 'autoacknowledge'.Autoaction[]
getAutoaction()
Method getAutoaction.Returns the contents of the collection in an Array.Autoaction
getAutoaction(int index)
Method getAutoaction.java.util.List<Autoaction>
getAutoactionCollection()
Method getAutoactionCollection.Returns a reference to '_autoactionList'.int
getAutoactionCount()
Method getAutoactionCount.Correlation
getCorrelation()
Returns the value of field 'correlation'.java.util.Date
getCreationTime()
Returns the value of field 'creationTime'.java.lang.Integer
getDbid()
Returns the value of field 'dbid'.java.lang.String
getDescr()
Returns the value of field 'descr'.java.lang.String
getDistPoller()
Returns the value of field 'distPoller'.Forward[]
getForward()
Method getForward.Returns the contents of the collection in an Array.Forward
getForward(int index)
Method getForward.java.util.List<Forward>
getForwardCollection()
Method getForwardCollection.Returns a reference to '_forwardList'.int
getForwardCount()
Method getForwardCount.java.lang.String
getHost()
Returns the value of field 'host'.java.lang.String
getIfAlias()
Returns the value of field 'ifAlias'.java.lang.Integer
getIfIndex()
Returns the value of field 'ifIndex'.java.lang.String
getInterface()
Returns the value of field 'interface'.java.net.InetAddress
getInterfaceAddress()
java.lang.String[]
getLoggroup()
Method getLoggroup.Returns the contents of the collection in an Array.java.lang.String
getLoggroup(int index)
Method getLoggroup.java.util.List<java.lang.String>
getLoggroupCollection()
Method getLoggroupCollection.Returns a reference to '_loggroupList'.int
getLoggroupCount()
Method getLoggroupCount.Logmsg
getLogmsg()
Returns the value of field 'logmsg'.Mask
getMask()
Returns the value of field 'mask'.java.lang.String
getMasterStation()
Returns the value of field 'masterStation'.java.lang.String
getMouseovertext()
Returns the value of field 'mouseovertext'.java.lang.Long
getNodeid()
Returns the value of field 'nodeid'.Operaction[]
getOperaction()
Method getOperaction.Returns the contents of the collection in an Array.Operaction
getOperaction(int index)
Method getOperaction.java.util.List<Operaction>
getOperactionCollection()
Method getOperactionCollection.Returns a reference to '_operactionList'.int
getOperactionCount()
Method getOperactionCount.java.lang.String
getOperinstruct()
Returns the value of field 'operinstruct'.Parm
getParm(java.lang.String key)
java.util.List<Parm>
getParmCollection()
Returns the Collection of parms for this eventParm
getParmTrim(java.lang.String key)
Returns the first parameter with a trimmed name that matches the given key.java.lang.String
getPathoutage()
Returns the value of field 'pathoutage'.Script[]
getScript()
Method getScript.Returns the contents of the collection in an Array.Script
getScript(int index)
Method getScript.java.util.List<Script>
getScriptCollection()
Method getScriptCollection.Returns a reference to '_scriptList'.int
getScriptCount()
Method getScriptCount.java.lang.String
getService()
Returns the value of field 'service'.java.lang.String
getSeverity()
Returns the value of field 'severity'.Snmp
getSnmp()
Returns the value of field 'snmp'.java.lang.String
getSnmphost()
Returns the value of field 'snmphost'.java.lang.String
getSource()
Returns the value of field 'source'.java.util.Date
getTime()
Returns the value of field 'time'.Tticket
getTticket()
Returns the value of field 'tticket'.java.lang.String
getUei()
Returns the value of field 'uei'.java.lang.String
getUuid()
Returns the value of field 'uuid'.boolean
hasDbid()
Method hasDbid.boolean
hasIfIndex()
Method hasIfIndex.boolean
hasNodeid()
Method hasNodeid.java.util.Iterator<Autoaction>
iterateAutoaction()
Method iterateAutoaction.java.util.Iterator<Forward>
iterateForward()
Method iterateForward.java.util.Iterator<java.lang.String>
iterateLoggroup()
Method iterateLoggroup.java.util.Iterator<Operaction>
iterateOperaction()
Method iterateOperaction.java.util.Iterator<Script>
iterateScript()
Method iterateScript.void
removeAllAutoaction()
void
removeAllForward()
void
removeAllLoggroup()
void
removeAllOperaction()
void
removeAllScript()
boolean
removeAutoaction(Autoaction vAutoaction)
Method removeAutoaction.Autoaction
removeAutoactionAt(int index)
Method removeAutoactionAt.boolean
removeForward(Forward vForward)
Method removeForward.Forward
removeForwardAt(int index)
Method removeForwardAt.boolean
removeLoggroup(java.lang.String vLoggroup)
Method removeLoggroup.java.lang.String
removeLoggroupAt(int index)
Method removeLoggroupAt.boolean
removeOperaction(Operaction vOperaction)
Method removeOperaction.Operaction
removeOperactionAt(int index)
Method removeOperactionAt.boolean
removeScript(Script vScript)
Method removeScript.Script
removeScriptAt(int index)
Method removeScriptAt.void
setAlarmData(AlarmData alarmData)
Sets the value of field 'alarmData'.void
setAutoacknowledge(Autoacknowledge autoacknowledge)
Sets the value of field 'autoacknowledge'.void
setAutoaction(int index, Autoaction vAutoaction)
void
setAutoaction(java.util.List<Autoaction> vAutoactionList)
Sets the value of '_autoactionList' by copying the given Vector.void
setAutoaction(Autoaction[] vAutoactionArray)
void
setAutoactionCollection(java.util.List<Autoaction> autoactionList)
Deprecated.void
setCorrelation(Correlation correlation)
Sets the value of field 'correlation'.void
setCreationTime(java.util.Date creationTime)
Sets the value of field 'creationTime'.void
setDbid(java.lang.Integer dbid)
Sets the value of field 'dbid'.void
setDescr(java.lang.String descr)
Sets the value of field 'descr'.void
setDistPoller(java.lang.String distPoller)
Sets the value of field 'distPoller'.void
setForward(int index, Forward vForward)
void
setForward(java.util.List<Forward> vForwardList)
Sets the value of '_forwardList' by copying the given Vector.void
setForward(Forward[] vForwardArray)
void
setForwardCollection(java.util.List<Forward> forwardList)
Deprecated.void
setHost(java.lang.String host)
Sets the value of field 'host'.void
setIfAlias(java.lang.String ifAlias)
Sets the value of field 'ifAlias'.void
setIfIndex(java.lang.Integer ifIndex)
Sets the value of field 'ifIndex'.void
setInterface(java.lang.String _interface)
The interface to which this event is pertinentvoid
setInterfaceAddress(java.net.InetAddress _interface)
void
setLoggroup(int index, java.lang.String vLoggroup)
void
setLoggroup(java.lang.String[] vLoggroupArray)
void
setLoggroup(java.util.List<java.lang.String> vLoggroupList)
Sets the value of '_loggroupList' by copying the given Vector.void
setLoggroupCollection(java.util.List<java.lang.String> loggroupList)
Deprecated.void
setLogmsg(Logmsg logmsg)
Sets the value of field 'logmsg'.void
setMask(Mask mask)
Sets the value of field 'mask'.void
setMasterStation(java.lang.String masterStation)
Sets the value of field 'masterStation'.void
setMouseovertext(java.lang.String mouseovertext)
Sets the value of field 'mouseovertext'.void
setNodeid(java.lang.Long nodeid)
Sets the value of field 'nodeid'.void
setOperaction(int index, Operaction vOperaction)
void
setOperaction(java.util.List<Operaction> vOperactionList)
Sets the value of '_operactionList' by copying the given Vector.void
setOperaction(Operaction[] vOperactionArray)
void
setOperactionCollection(java.util.List<Operaction> operactionList)
Deprecated.void
setOperinstruct(java.lang.String operinstruct)
Sets the value of field 'operinstruct'.void
setParmCollection(java.util.List<Parm> parms)
void
setPathoutage(java.lang.String pathoutage)
Sets the value of field 'pathoutage'.void
setScript(int index, Script vScript)
void
setScript(java.util.List<Script> vScriptList)
Sets the value of '_scriptList' by copying the given Vector.void
setScript(Script[] vScriptArray)
void
setScriptCollection(java.util.List<Script> scriptList)
Deprecated.void
setService(java.lang.String service)
Sets the value of field 'service'.void
setSeverity(java.lang.String severity)
Sets the value of field 'severity'.void
setSnmp(Snmp snmp)
Sets the value of field 'snmp'.void
setSnmphost(java.lang.String snmphost)
Sets the value of field 'snmphost'.void
setSource(java.lang.String source)
Sets the value of field 'source'.void
setTime(java.util.Date time)
Sets the value of field 'time'.void
setTticket(Tticket tticket)
Sets the value of field 'tticket'.void
setUei(java.lang.String uei)
Sets the value of field 'uei'.void
setUuid(java.lang.String uuid)
Sets the value of field 'uuid'.java.lang.String
toString()
java.lang.String
toStringSimple()
-
-
-
Method Detail
-
addAutoaction
public void addAutoaction(Autoaction vAutoaction) throws java.lang.IndexOutOfBoundsException
- Parameters:
vAutoaction
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
addAutoaction
public void addAutoaction(int index, Autoaction vAutoaction) throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-vAutoaction
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
addForward
public void addForward(Forward vForward) throws java.lang.IndexOutOfBoundsException
- Parameters:
vForward
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
addForward
public void addForward(int index, Forward vForward) throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-vForward
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
addLoggroup
public void addLoggroup(java.lang.String vLoggroup) throws java.lang.IndexOutOfBoundsException
- Parameters:
vLoggroup
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
addLoggroup
public void addLoggroup(int index, java.lang.String vLoggroup) throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-vLoggroup
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
addOperaction
public void addOperaction(Operaction vOperaction) throws java.lang.IndexOutOfBoundsException
- Parameters:
vOperaction
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
addParm
public void addParm(Parm parm)
-
addOperaction
public void addOperaction(int index, Operaction vOperaction) throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-vOperaction
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
addScript
public void addScript(Script vScript) throws java.lang.IndexOutOfBoundsException
- Parameters:
vScript
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
addScript
public void addScript(int index, Script vScript) throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-vScript
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
deleteDbid
public void deleteDbid()
-
deleteIfIndex
public void deleteIfIndex()
-
deleteNodeid
public void deleteNodeid()
-
enumerateAutoaction
public java.util.Enumeration<Autoaction> enumerateAutoaction()
Method enumerateAutoaction.- Returns:
- an Enumeration over all possible elements of this collection
-
enumerateForward
public java.util.Enumeration<Forward> enumerateForward()
Method enumerateForward.- Returns:
- an Enumeration over all possible elements of this collection
-
enumerateLoggroup
public java.util.Enumeration<java.lang.String> enumerateLoggroup()
Method enumerateLoggroup.- Returns:
- an Enumeration over all possible elements of this collection
-
enumerateOperaction
public java.util.Enumeration<Operaction> enumerateOperaction()
Method enumerateOperaction.- Returns:
- an Enumeration over all possible elements of this collection
-
enumerateScript
public java.util.Enumeration<Script> enumerateScript()
Method enumerateScript.- Returns:
- an Enumeration over all possible elements of this collection
-
getAlarmData
public AlarmData getAlarmData()
Returns the value of field 'alarmData'. The field 'alarmData' has the following description: Data used to create an event.- Returns:
- the value of field 'AlarmData'.
-
getAutoacknowledge
public Autoacknowledge getAutoacknowledge()
Returns the value of field 'autoacknowledge'. The field 'autoacknowledge' has the following description: The autoacknowledge information for the user- Returns:
- the value of field 'Autoacknowledge'.
-
getAutoaction
public Autoaction getAutoaction(int index) throws java.lang.IndexOutOfBoundsException
Method getAutoaction.- Parameters:
index
-- Returns:
- the value of the Autoaction at the given index
- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
getAutoaction
public Autoaction[] getAutoaction()
Method getAutoaction.Returns the contents of the collection in an Array.Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
- Returns:
- this collection as an Array
-
getAutoactionCollection
public java.util.List<Autoaction> getAutoactionCollection()
Method getAutoactionCollection.Returns a reference to '_autoactionList'. No type checking is performed on any modifications to the Vector.- Returns:
- a reference to the Vector backing this class
-
getAutoactionCount
public int getAutoactionCount()
Method getAutoactionCount.- Returns:
- the size of this collection
-
getCorrelation
public Correlation getCorrelation()
Returns the value of field 'correlation'. The field 'correlation' has the following description: The event correlation information- Returns:
- the value of field 'Correlation'.
-
getCreationTime
public java.util.Date getCreationTime()
Returns the value of field 'creationTime'. The field 'creationTime' has the following description: from header- Returns:
- the value of field 'CreationTime'.
-
getDbid
public java.lang.Integer getDbid()
Returns the value of field 'dbid'. The field 'dbid' has the following description: The event database id- Returns:
- the value of field 'Dbid'.
-
getDescr
public java.lang.String getDescr()
Returns the value of field 'descr'. The field 'descr' has the following description: The event description- Returns:
- the value of field 'Descr'.
-
getDistPoller
public java.lang.String getDistPoller()
Returns the value of field 'distPoller'.- Returns:
- the value of field 'DistPoller'.
-
getForward
public Forward getForward(int index) throws java.lang.IndexOutOfBoundsException
Method getForward.- Parameters:
index
-- Returns:
- the value of the Forward at the given index
- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
getForward
public Forward[] getForward()
Method getForward.Returns the contents of the collection in an Array.Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
- Returns:
- this collection as an Array
-
getForwardCollection
public java.util.List<Forward> getForwardCollection()
Method getForwardCollection.Returns a reference to '_forwardList'. No type checking is performed on any modifications to the Vector.- Returns:
- a reference to the Vector backing this class
-
getForwardCount
public int getForwardCount()
Method getForwardCount.- Returns:
- the size of this collection
-
getHost
public java.lang.String getHost()
Returns the value of field 'host'. The field 'host' has the following description: The host at which the event is generated- Returns:
- the value of field 'Host'.
-
getIfAlias
public java.lang.String getIfAlias()
Returns the value of field 'ifAlias'. The field 'ifAlias' has the following description: The ifAlias to which this event is pertinent- Returns:
- the value of field 'IfAlias'.
-
getIfIndex
public java.lang.Integer getIfIndex()
Returns the value of field 'ifIndex'. The field 'ifIndex' has the following description: The ifIndex to which this event is pertinent- Returns:
- the value of field 'IfIndex'.
-
getInterface
public java.lang.String getInterface()
Returns the value of field 'interface'. The field 'interface' has the following description: The interface to which this event is pertinent- Returns:
- the value of field 'Interface'.
-
getInterfaceAddress
public java.net.InetAddress getInterfaceAddress()
-
getLoggroup
public java.lang.String getLoggroup(int index) throws java.lang.IndexOutOfBoundsException
Method getLoggroup.- Parameters:
index
-- Returns:
- the value of the String at the given index
- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
getLoggroup
public java.lang.String[] getLoggroup()
Method getLoggroup.Returns the contents of the collection in an Array.Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
- Returns:
- this collection as an Array
-
getLoggroupCollection
public java.util.List<java.lang.String> getLoggroupCollection()
Method getLoggroupCollection.Returns a reference to '_loggroupList'. No type checking is performed on any modifications to the Vector.- Returns:
- a reference to the Vector backing this class
-
getLoggroupCount
public int getLoggroupCount()
Method getLoggroupCount.- Returns:
- the size of this collection
-
getLogmsg
public Logmsg getLogmsg()
Returns the value of field 'logmsg'. The field 'logmsg' has the following description: The event logmsg- Returns:
- the value of field 'Logmsg'.
-
getMask
public Mask getMask()
Returns the value of field 'mask'. The field 'mask' has the following description: The event mask which helps to uniquely identify an event- Returns:
- the value of field 'Mask'.
-
getMasterStation
public java.lang.String getMasterStation()
Returns the value of field 'masterStation'. The field 'masterStation' has the following description: from header- Returns:
- the value of field 'MasterStation'.
-
getMouseovertext
public java.lang.String getMouseovertext()
Returns the value of field 'mouseovertext'. The field 'mouseovertext' has the following description: The text to be displayed on a 'mouseOver' event when this event is displayed in the event browser- Returns:
- the value of field 'Mouseovertext'.
-
getNodeid
public java.lang.Long getNodeid()
Returns the value of field 'nodeid'. The field 'nodeid' has the following description: The nodeid to which this event pertains- Returns:
- the value of field 'Nodeid'.
-
getOperaction
public Operaction getOperaction(int index) throws java.lang.IndexOutOfBoundsException
Method getOperaction.- Parameters:
index
-- Returns:
- the value of the Operaction at the given index
- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
getOperaction
public Operaction[] getOperaction()
Method getOperaction.Returns the contents of the collection in an Array.Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
- Returns:
- this collection as an Array
-
getOperactionCollection
public java.util.List<Operaction> getOperactionCollection()
Method getOperactionCollection.Returns a reference to '_operactionList'. No type checking is performed on any modifications to the Vector.- Returns:
- a reference to the Vector backing this class
-
getOperactionCount
public int getOperactionCount()
Method getOperactionCount.- Returns:
- the size of this collection
-
getOperinstruct
public java.lang.String getOperinstruct()
Returns the value of field 'operinstruct'. The field 'operinstruct' has the following description: The operator instruction for this event- Returns:
- the value of field 'Operinstruct'.
-
getParmCollection
public java.util.List<Parm> getParmCollection()
Returns the Collection of parms for this event
-
getParm
public Parm getParm(java.lang.String key)
-
getParmTrim
public Parm getParmTrim(java.lang.String key)
Returns the first parameter with a trimmed name that matches the given key.- Parameters:
key
- name of the parameter to match, must be non-null- Returns:
- the matching parameter, or
null
if none was found
-
getPathoutage
public java.lang.String getPathoutage()
Returns the value of field 'pathoutage'. The field 'pathoutage' has the following description: The path outage information- Returns:
- the value of field 'Pathoutage'.
-
getScript
public Script getScript(int index) throws java.lang.IndexOutOfBoundsException
Method getScript.- Parameters:
index
-- Returns:
- the value of the Script at the given index
- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
getScript
public Script[] getScript()
Method getScript.Returns the contents of the collection in an Array.Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
- Returns:
- this collection as an Array
-
getScriptCollection
public java.util.List<Script> getScriptCollection()
Method getScriptCollection.Returns a reference to '_scriptList'. No type checking is performed on any modifications to the Vector.- Returns:
- a reference to the Vector backing this class
-
getScriptCount
public int getScriptCount()
Method getScriptCount.- Returns:
- the size of this collection
-
getService
public java.lang.String getService()
Returns the value of field 'service'. The field 'service' has the following description: The service to which this event is pertinent- Returns:
- the value of field 'Service'.
-
getSeverity
public java.lang.String getSeverity()
Returns the value of field 'severity'. The field 'severity' has the following description: The event severity- Returns:
- the value of field 'Severity'.
-
getSnmp
public Snmp getSnmp()
Returns the value of field 'snmp'. The field 'snmp' has the following description: The snmp information from the trap- Returns:
- the value of field 'Snmp'.
-
getSnmphost
public java.lang.String getSnmphost()
Returns the value of field 'snmphost'. The field 'snmphost' has the following description: The snmp host of the trap- Returns:
- the value of field 'Snmphost'.
-
getSource
public java.lang.String getSource()
Returns the value of field 'source'.- Returns:
- the value of field 'Source'.
-
getTime
public java.util.Date getTime()
Returns the value of field 'time'. The field 'time' has the following description: The time at which this event was generated. The time is in the format generated by theDateFormat
using theDateFormat.FULL
style for the default locale. For example: "Monday, February 18, 2002 3:01:58 PM EST" Known Issues: This field doesn't have millisecond resolution because we are usingDateFormat.FULL
.- Returns:
- the value of field 'Time'.
-
getTticket
public Tticket getTticket()
Returns the value of field 'tticket'. The field 'tticket' has the following description: The trouble ticket info- Returns:
- the value of field 'Tticket'.
-
getUei
public java.lang.String getUei()
Returns the value of field 'uei'. The field 'uei' has the following description: The Universal Event Identifier- Returns:
- the value of field 'Uei'.
-
getUuid
public java.lang.String getUuid()
Returns the value of field 'uuid'.- Returns:
- the value of field 'Uuid'.
-
hasDbid
public boolean hasDbid()
Method hasDbid.- Returns:
- true if at least one Dbid has been added
-
hasIfIndex
public boolean hasIfIndex()
Method hasIfIndex.- Returns:
- true if at least one IfIndex has been added
-
hasNodeid
public boolean hasNodeid()
Method hasNodeid.- Returns:
- true if at least one Nodeid has been added
-
iterateAutoaction
public java.util.Iterator<Autoaction> iterateAutoaction()
Method iterateAutoaction.- Returns:
- an Iterator over all possible elements in this collection
-
iterateForward
public java.util.Iterator<Forward> iterateForward()
Method iterateForward.- Returns:
- an Iterator over all possible elements in this collection
-
iterateLoggroup
public java.util.Iterator<java.lang.String> iterateLoggroup()
Method iterateLoggroup.- Returns:
- an Iterator over all possible elements in this collection
-
iterateOperaction
public java.util.Iterator<Operaction> iterateOperaction()
Method iterateOperaction.- Returns:
- an Iterator over all possible elements in this collection
-
iterateScript
public java.util.Iterator<Script> iterateScript()
Method iterateScript.- Returns:
- an Iterator over all possible elements in this collection
-
removeAllAutoaction
public void removeAllAutoaction()
-
removeAllForward
public void removeAllForward()
-
removeAllLoggroup
public void removeAllLoggroup()
-
removeAllOperaction
public void removeAllOperaction()
-
removeAllScript
public void removeAllScript()
-
removeAutoaction
public boolean removeAutoaction(Autoaction vAutoaction)
Method removeAutoaction.- Parameters:
vAutoaction
-- Returns:
- true if the object was removed from the collection.
-
removeAutoactionAt
public Autoaction removeAutoactionAt(int index)
Method removeAutoactionAt.- Parameters:
index
-- Returns:
- the element removed from the collection
-
removeForward
public boolean removeForward(Forward vForward)
Method removeForward.- Parameters:
vForward
-- Returns:
- true if the object was removed from the collection.
-
removeForwardAt
public Forward removeForwardAt(int index)
Method removeForwardAt.- Parameters:
index
-- Returns:
- the element removed from the collection
-
removeLoggroup
public boolean removeLoggroup(java.lang.String vLoggroup)
Method removeLoggroup.- Parameters:
vLoggroup
-- Returns:
- true if the object was removed from the collection.
-
removeLoggroupAt
public java.lang.String removeLoggroupAt(int index)
Method removeLoggroupAt.- Parameters:
index
-- Returns:
- the element removed from the collection
-
removeOperaction
public boolean removeOperaction(Operaction vOperaction)
Method removeOperaction.- Parameters:
vOperaction
-- Returns:
- true if the object was removed from the collection.
-
removeOperactionAt
public Operaction removeOperactionAt(int index)
Method removeOperactionAt.- Parameters:
index
-- Returns:
- the element removed from the collection
-
removeScript
public boolean removeScript(Script vScript)
Method removeScript.- Parameters:
vScript
-- Returns:
- true if the object was removed from the collection.
-
removeScriptAt
public Script removeScriptAt(int index)
Method removeScriptAt.- Parameters:
index
-- Returns:
- the element removed from the collection
-
setAlarmData
public void setAlarmData(AlarmData alarmData)
Sets the value of field 'alarmData'. The field 'alarmData' has the following description: Data used to create an event.- Parameters:
alarmData
- the value of field 'alarmData'.
-
setAutoacknowledge
public void setAutoacknowledge(Autoacknowledge autoacknowledge)
Sets the value of field 'autoacknowledge'. The field 'autoacknowledge' has the following description: The autoacknowledge information for the user- Parameters:
autoacknowledge
- the value of field 'autoacknowledge'.
-
setAutoaction
public void setAutoaction(int index, Autoaction vAutoaction) throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-vAutoaction
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
setAutoaction
public void setAutoaction(Autoaction[] vAutoactionArray)
- Parameters:
vAutoactionArray
-
-
setAutoaction
public void setAutoaction(java.util.List<Autoaction> vAutoactionList)
Sets the value of '_autoactionList' by copying the given Vector. All elements will be checked for type safety.- Parameters:
vAutoactionList
- the Vector to copy.
-
setAutoactionCollection
public void setAutoactionCollection(java.util.List<Autoaction> autoactionList)
Deprecated.Sets the value of '_autoactionList' by setting it to the given Vector. No type checking is performed.- Parameters:
autoactionList
- the Vector to set.
-
setCorrelation
public void setCorrelation(Correlation correlation)
Sets the value of field 'correlation'. The field 'correlation' has the following description: The event correlation information- Parameters:
correlation
- the value of field 'correlation'.
-
setCreationTime
public void setCreationTime(java.util.Date creationTime)
Sets the value of field 'creationTime'. The field 'creationTime' has the following description: from header- Parameters:
creationTime
- the value of field 'creationTime'.
-
setDbid
public void setDbid(java.lang.Integer dbid)
Sets the value of field 'dbid'. The field 'dbid' has the following description: The event database id- Parameters:
dbid
- the value of field 'dbid'.
-
setDescr
public void setDescr(java.lang.String descr)
Sets the value of field 'descr'. The field 'descr' has the following description: The event description- Parameters:
descr
- the value of field 'descr'.
-
setDistPoller
public void setDistPoller(java.lang.String distPoller)
Sets the value of field 'distPoller'.- Parameters:
distPoller
- the value of field 'distPoller'.
-
setForward
public void setForward(int index, Forward vForward) throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-vForward
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
setForward
public void setForward(Forward[] vForwardArray)
- Parameters:
vForwardArray
-
-
setForward
public void setForward(java.util.List<Forward> vForwardList)
Sets the value of '_forwardList' by copying the given Vector. All elements will be checked for type safety.- Parameters:
vForwardList
- the Vector to copy.
-
setForwardCollection
public void setForwardCollection(java.util.List<Forward> forwardList)
Deprecated.Sets the value of '_forwardList' by setting it to the given Vector. No type checking is performed.- Parameters:
forwardList
- the Vector to set.
-
setHost
public void setHost(java.lang.String host)
Sets the value of field 'host'. The field 'host' has the following description: The host at which the event is generated- Parameters:
host
- the value of field 'host'.
-
setIfAlias
public void setIfAlias(java.lang.String ifAlias)
Sets the value of field 'ifAlias'. The field 'ifAlias' has the following description: The ifAlias to which this event is pertinent- Parameters:
ifAlias
- the value of field 'ifAlias'.
-
setIfIndex
public void setIfIndex(java.lang.Integer ifIndex)
Sets the value of field 'ifIndex'. The field 'ifIndex' has the following description: The ifIndex to which this event is pertinent- Parameters:
ifIndex
- the value of field 'ifIndex'.
-
setInterface
public void setInterface(java.lang.String _interface)
The interface to which this event is pertinent
-
setInterfaceAddress
public void setInterfaceAddress(java.net.InetAddress _interface)
-
setLoggroup
public void setLoggroup(int index, java.lang.String vLoggroup) throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-vLoggroup
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
setLoggroup
public void setLoggroup(java.lang.String[] vLoggroupArray)
- Parameters:
vLoggroupArray
-
-
setLoggroup
public void setLoggroup(java.util.List<java.lang.String> vLoggroupList)
Sets the value of '_loggroupList' by copying the given Vector. All elements will be checked for type safety.- Parameters:
vLoggroupList
- the Vector to copy.
-
setLoggroupCollection
public void setLoggroupCollection(java.util.List<java.lang.String> loggroupList)
Deprecated.Sets the value of '_loggroupList' by setting it to the given Vector. No type checking is performed.- Parameters:
loggroupList
- the Vector to set.
-
setLogmsg
public void setLogmsg(Logmsg logmsg)
Sets the value of field 'logmsg'. The field 'logmsg' has the following description: The event logmsg- Parameters:
logmsg
- the value of field 'logmsg'.
-
setMask
public void setMask(Mask mask)
Sets the value of field 'mask'. The field 'mask' has the following description: The event mask which helps to uniquely identify an event- Parameters:
mask
- the value of field 'mask'.
-
setMasterStation
public void setMasterStation(java.lang.String masterStation)
Sets the value of field 'masterStation'. The field 'masterStation' has the following description: from header- Parameters:
masterStation
- the value of field 'masterStation'.
-
setMouseovertext
public void setMouseovertext(java.lang.String mouseovertext)
Sets the value of field 'mouseovertext'. The field 'mouseovertext' has the following description: The text to be displayed on a 'mouseOver' event when this event is displayed in the event browser- Parameters:
mouseovertext
- the value of field 'mouseovertext'.
-
setNodeid
public void setNodeid(java.lang.Long nodeid)
Sets the value of field 'nodeid'. The field 'nodeid' has the following description: The nodeid to which this event pertains- Parameters:
nodeid
- the value of field 'nodeid'.
-
setOperaction
public void setOperaction(int index, Operaction vOperaction) throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-vOperaction
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
setOperaction
public void setOperaction(Operaction[] vOperactionArray)
- Parameters:
vOperactionArray
-
-
setOperaction
public void setOperaction(java.util.List<Operaction> vOperactionList)
Sets the value of '_operactionList' by copying the given Vector. All elements will be checked for type safety.- Parameters:
vOperactionList
- the Vector to copy.
-
setOperactionCollection
public void setOperactionCollection(java.util.List<Operaction> operactionList)
Deprecated.Sets the value of '_operactionList' by setting it to the given Vector. No type checking is performed.- Parameters:
operactionList
- the Vector to set.
-
setOperinstruct
public void setOperinstruct(java.lang.String operinstruct)
Sets the value of field 'operinstruct'. The field 'operinstruct' has the following description: The operator instruction for this event- Parameters:
operinstruct
- the value of field 'operinstruct'.
-
setParmCollection
public void setParmCollection(java.util.List<Parm> parms)
-
setPathoutage
public void setPathoutage(java.lang.String pathoutage)
Sets the value of field 'pathoutage'. The field 'pathoutage' has the following description: The path outage information- Parameters:
pathoutage
- the value of field 'pathoutage'.
-
setScript
public void setScript(int index, Script vScript) throws java.lang.IndexOutOfBoundsException
- Parameters:
index
-vScript
-- Throws:
java.lang.IndexOutOfBoundsException
- if the index given is outside the bounds of the collection
-
setScript
public void setScript(Script[] vScriptArray)
- Parameters:
vScriptArray
-
-
setScript
public void setScript(java.util.List<Script> vScriptList)
Sets the value of '_scriptList' by copying the given Vector. All elements will be checked for type safety.- Parameters:
vScriptList
- the Vector to copy.
-
setScriptCollection
public void setScriptCollection(java.util.List<Script> scriptList)
Deprecated.Sets the value of '_scriptList' by setting it to the given Vector. No type checking is performed.- Parameters:
scriptList
- the Vector to set.
-
setService
public void setService(java.lang.String service)
Sets the value of field 'service'. The field 'service' has the following description: The service to which this event is pertinent- Parameters:
service
- the value of field 'service'.
-
setSeverity
public void setSeverity(java.lang.String severity)
Sets the value of field 'severity'. The field 'severity' has the following description: The event severity- Parameters:
severity
- the value of field 'severity'.
-
setSnmp
public void setSnmp(Snmp snmp)
Sets the value of field 'snmp'. The field 'snmp' has the following description: The snmp information from the trap- Parameters:
snmp
- the value of field 'snmp'.
-
setSnmphost
public void setSnmphost(java.lang.String snmphost)
Sets the value of field 'snmphost'. The field 'snmphost' has the following description: The snmp host of the trap- Parameters:
snmphost
- the value of field 'snmphost'.
-
setSource
public void setSource(java.lang.String source)
Sets the value of field 'source'.- Parameters:
source
- the value of field 'source'.
-
setTime
public void setTime(java.util.Date time)
Sets the value of field 'time'. The field 'time' has the following description: The time at which this event was generated. The time is in the format generated by the java.text.DateFormat using the DateFormat.FULL style for the default locale. For example: "Monday, February 18, 2002 3:01:58 PM EST"- Parameters:
time
- the value of field 'time'.
-
setTticket
public void setTticket(Tticket tticket)
Sets the value of field 'tticket'. The field 'tticket' has the following description: The trouble ticket info- Parameters:
tticket
- the value of field 'tticket'.
-
setUei
public void setUei(java.lang.String uei)
Sets the value of field 'uei'. The field 'uei' has the following description: The Universal Event Identifier- Parameters:
uei
- the value of field 'uei'.
-
setUuid
public void setUuid(java.lang.String uuid)
Sets the value of field 'uuid'.- Parameters:
uuid
- the value of field 'uuid'.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringSimple
public java.lang.String toStringSimple()
-
-