public class Event extends Object implements Message, Serializable
SINK_METRIC_CONSUMER_DOMAIN, SINK_METRIC_PRODUCER_DOMAIN
Constructor and Description |
---|
Event() |
Modifier and Type | Method and Description |
---|---|
void |
addAutoaction(Autoaction vAutoaction) |
void |
addAutoaction(int index,
Autoaction vAutoaction) |
void |
addForward(Forward vForward) |
void |
addForward(int index,
Forward vForward) |
void |
addLoggroup(int index,
String vLoggroup) |
void |
addLoggroup(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() |
Enumeration<Autoaction> |
enumerateAutoaction()
Method enumerateAutoaction.
|
Enumeration<Forward> |
enumerateForward()
Method enumerateForward.
|
Enumeration<String> |
enumerateLoggroup()
Method enumerateLoggroup.
|
Enumeration<Operaction> |
enumerateOperaction()
Method enumerateOperaction.
|
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.
|
List<Autoaction> |
getAutoactionCollection()
Method getAutoactionCollection.Returns a reference to '_autoactionList'.
|
int |
getAutoactionCount()
Method getAutoactionCount.
|
Correlation |
getCorrelation()
Returns the value of field 'correlation'.
|
Date |
getCreationTime()
Returns the value of field 'creationTime'.
|
Integer |
getDbid()
Returns the value of field 'dbid'.
|
String |
getDescr()
Returns the value of field 'descr'.
|
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.
|
List<Forward> |
getForwardCollection()
Method getForwardCollection.Returns a reference to '_forwardList'.
|
int |
getForwardCount()
Method getForwardCount.
|
String |
getHost()
Returns the value of field 'host'.
|
String |
getIfAlias()
Returns the value of field 'ifAlias'.
|
Integer |
getIfIndex()
Returns the value of field 'ifIndex'.
|
String |
getInterface()
Returns the value of field 'interface'.
|
InetAddress |
getInterfaceAddress() |
String[] |
getLoggroup()
Method getLoggroup.Returns the contents of the collection in an Array.
|
String |
getLoggroup(int index)
Method getLoggroup.
|
List<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'.
|
String |
getMasterStation()
Returns the value of field 'masterStation'.
|
String |
getMouseovertext()
Returns the value of field 'mouseovertext'.
|
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.
|
List<Operaction> |
getOperactionCollection()
Method getOperactionCollection.Returns a reference to '_operactionList'.
|
int |
getOperactionCount()
Method getOperactionCount.
|
String |
getOperinstruct()
Returns the value of field 'operinstruct'.
|
Parm |
getParm(String key) |
List<Parm> |
getParmCollection()
Returns the Collection of parms for this event
|
Parm |
getParmTrim(String key)
Returns the first parameter with a trimmed name
that matches the given key.
|
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.
|
List<Script> |
getScriptCollection()
Method getScriptCollection.Returns a reference to '_scriptList'.
|
int |
getScriptCount()
Method getScriptCount.
|
String |
getService()
Returns the value of field 'service'.
|
String |
getSeverity()
Returns the value of field 'severity'.
|
Snmp |
getSnmp()
Returns the value of field 'snmp'.
|
String |
getSnmphost()
Returns the value of field 'snmphost'.
|
String |
getSource()
Returns the value of field 'source'.
|
Date |
getTime()
Returns the value of field 'time'.
|
Tticket |
getTticket()
Returns the value of field 'tticket'.
|
String |
getUei()
Returns the value of field 'uei'.
|
String |
getUuid()
Returns the value of field 'uuid'.
|
boolean |
hasDbid()
Method hasDbid.
|
boolean |
hasIfIndex()
Method hasIfIndex.
|
boolean |
hasNodeid()
Method hasNodeid.
|
Iterator<Autoaction> |
iterateAutoaction()
Method iterateAutoaction.
|
Iterator<Forward> |
iterateForward()
Method iterateForward.
|
Iterator<String> |
iterateLoggroup()
Method iterateLoggroup.
|
Iterator<Operaction> |
iterateOperaction()
Method iterateOperaction.
|
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(String vLoggroup)
Method removeLoggroup.
|
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(Autoaction[] vAutoactionArray) |
void |
setAutoaction(int index,
Autoaction vAutoaction) |
void |
setAutoaction(List<Autoaction> vAutoactionList)
Sets the value of '_autoactionList' by copying the given Vector.
|
void |
setAutoactionCollection(List<Autoaction> autoactionList)
Deprecated.
|
void |
setCorrelation(Correlation correlation)
Sets the value of field 'correlation'.
|
void |
setCreationTime(Date creationTime)
Sets the value of field 'creationTime'.
|
void |
setDbid(Integer dbid)
Sets the value of field 'dbid'.
|
void |
setDescr(String descr)
Sets the value of field 'descr'.
|
void |
setDistPoller(String distPoller)
Sets the value of field 'distPoller'.
|
void |
setForward(Forward[] vForwardArray) |
void |
setForward(int index,
Forward vForward) |
void |
setForward(List<Forward> vForwardList)
Sets the value of '_forwardList' by copying the given Vector.
|
void |
setForwardCollection(List<Forward> forwardList)
Deprecated.
|
void |
setHost(String host)
Sets the value of field 'host'.
|
void |
setIfAlias(String ifAlias)
Sets the value of field 'ifAlias'.
|
void |
setIfIndex(Integer ifIndex)
Sets the value of field 'ifIndex'.
|
void |
setInterface(String _interface)
The interface to which this event is pertinent
|
void |
setInterfaceAddress(InetAddress _interface) |
void |
setLoggroup(int index,
String vLoggroup) |
void |
setLoggroup(List<String> vLoggroupList)
Sets the value of '_loggroupList' by copying the given Vector.
|
void |
setLoggroup(String[] vLoggroupArray) |
void |
setLoggroupCollection(List<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(String masterStation)
Sets the value of field 'masterStation'.
|
void |
setMouseovertext(String mouseovertext)
Sets the value of field 'mouseovertext'.
|
void |
setNodeid(Long nodeid)
Sets the value of field 'nodeid'.
|
void |
setOperaction(int index,
Operaction vOperaction) |
void |
setOperaction(List<Operaction> vOperactionList)
Sets the value of '_operactionList' by copying the given Vector.
|
void |
setOperaction(Operaction[] vOperactionArray) |
void |
setOperactionCollection(List<Operaction> operactionList)
Deprecated.
|
void |
setOperinstruct(String operinstruct)
Sets the value of field 'operinstruct'.
|
void |
setParmCollection(List<Parm> parms) |
void |
setPathoutage(String pathoutage)
Sets the value of field 'pathoutage'.
|
void |
setScript(int index,
Script vScript) |
void |
setScript(List<Script> vScriptList)
Sets the value of '_scriptList' by copying the given Vector.
|
void |
setScript(Script[] vScriptArray) |
void |
setScriptCollection(List<Script> scriptList)
Deprecated.
|
void |
setService(String service)
Sets the value of field 'service'.
|
void |
setSeverity(String severity)
Sets the value of field 'severity'.
|
void |
setSnmp(Snmp snmp)
Sets the value of field 'snmp'.
|
void |
setSnmphost(String snmphost)
Sets the value of field 'snmphost'.
|
void |
setSource(String source)
Sets the value of field 'source'.
|
void |
setTime(Date time)
Sets the value of field 'time'.
|
void |
setTticket(Tticket tticket)
Sets the value of field 'tticket'.
|
void |
setUei(String uei)
Sets the value of field 'uei'.
|
void |
setUuid(String uuid)
Sets the value of field 'uuid'.
|
String |
toString() |
String |
toStringSimple() |
public void addAutoaction(Autoaction vAutoaction) throws IndexOutOfBoundsException
vAutoaction
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addAutoaction(int index, Autoaction vAutoaction) throws IndexOutOfBoundsException
index
- vAutoaction
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addForward(Forward vForward) throws IndexOutOfBoundsException
vForward
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addForward(int index, Forward vForward) throws IndexOutOfBoundsException
index
- vForward
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addLoggroup(String vLoggroup) throws IndexOutOfBoundsException
vLoggroup
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addLoggroup(int index, String vLoggroup) throws IndexOutOfBoundsException
index
- vLoggroup
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addOperaction(Operaction vOperaction) throws IndexOutOfBoundsException
vOperaction
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addParm(Parm parm)
public void addOperaction(int index, Operaction vOperaction) throws IndexOutOfBoundsException
index
- vOperaction
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addScript(Script vScript) throws IndexOutOfBoundsException
vScript
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addScript(int index, Script vScript) throws IndexOutOfBoundsException
index
- vScript
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void deleteDbid()
public void deleteIfIndex()
public void deleteNodeid()
public Enumeration<Autoaction> enumerateAutoaction()
public Enumeration<Forward> enumerateForward()
public Enumeration<String> enumerateLoggroup()
public Enumeration<Operaction> enumerateOperaction()
public Enumeration<Script> enumerateScript()
public AlarmData getAlarmData()
public Autoacknowledge getAutoacknowledge()
public Autoaction getAutoaction(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Autoaction[] getAutoaction()
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.
public List<Autoaction> getAutoactionCollection()
public int getAutoactionCount()
public Correlation getCorrelation()
public Date getCreationTime()
public Integer getDbid()
public String getDescr()
public String getDistPoller()
public Forward getForward(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Forward[] getForward()
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.
public List<Forward> getForwardCollection()
public int getForwardCount()
public String getHost()
public String getIfAlias()
public Integer getIfIndex()
public String getInterface()
public InetAddress getInterfaceAddress()
public String getLoggroup(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic String[] getLoggroup()
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.
public List<String> getLoggroupCollection()
public int getLoggroupCount()
public Logmsg getLogmsg()
public Mask getMask()
public String getMasterStation()
public String getMouseovertext()
public Long getNodeid()
public Operaction getOperaction(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Operaction[] getOperaction()
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.
public List<Operaction> getOperactionCollection()
public int getOperactionCount()
public String getOperinstruct()
public List<Parm> getParmCollection()
public Parm getParmTrim(String key)
key
- name of the parameter to match, must be non-nullnull
if none was foundpublic String getPathoutage()
public Script getScript(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Script[] getScript()
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.
public List<Script> getScriptCollection()
public int getScriptCount()
public String getService()
public String getSeverity()
public Snmp getSnmp()
public String getSnmphost()
public String getSource()
public Date getTime()
DateFormat
using the
DateFormat.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 using DateFormat.FULL
.http://issues.opennms.org/browse/NMS-3561
public Tticket getTticket()
public String getUei()
public String getUuid()
public boolean hasDbid()
public boolean hasIfIndex()
public boolean hasNodeid()
public Iterator<Autoaction> iterateAutoaction()
public Iterator<Forward> iterateForward()
public Iterator<String> iterateLoggroup()
public Iterator<Operaction> iterateOperaction()
public Iterator<Script> iterateScript()
public void removeAllAutoaction()
public void removeAllForward()
public void removeAllLoggroup()
public void removeAllOperaction()
public void removeAllScript()
public boolean removeAutoaction(Autoaction vAutoaction)
vAutoaction
- public Autoaction removeAutoactionAt(int index)
index
- public boolean removeForward(Forward vForward)
vForward
- public Forward removeForwardAt(int index)
index
- public boolean removeLoggroup(String vLoggroup)
vLoggroup
- public String removeLoggroupAt(int index)
index
- public boolean removeOperaction(Operaction vOperaction)
vOperaction
- public Operaction removeOperactionAt(int index)
index
- public boolean removeScript(Script vScript)
vScript
- public Script removeScriptAt(int index)
index
- public void setAlarmData(AlarmData alarmData)
alarmData
- the value of field 'alarmData'.public void setAutoacknowledge(Autoacknowledge autoacknowledge)
autoacknowledge
- the value of field 'autoacknowledge'.public void setAutoaction(int index, Autoaction vAutoaction) throws IndexOutOfBoundsException
index
- vAutoaction
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setAutoaction(Autoaction[] vAutoactionArray)
vAutoactionArray
- public void setAutoaction(List<Autoaction> vAutoactionList)
vAutoactionList
- the Vector to copy.public void setAutoactionCollection(List<Autoaction> autoactionList)
autoactionList
- the Vector to set.public void setCorrelation(Correlation correlation)
correlation
- the value of field 'correlation'.public void setCreationTime(Date creationTime)
creationTime
- the value of field 'creationTime'.public void setDbid(Integer dbid)
dbid
- the value of field 'dbid'.public void setDescr(String descr)
descr
- the value of field 'descr'.public void setDistPoller(String distPoller)
distPoller
- the value of field 'distPoller'.public void setForward(int index, Forward vForward) throws IndexOutOfBoundsException
index
- vForward
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setForward(Forward[] vForwardArray)
vForwardArray
- public void setForward(List<Forward> vForwardList)
vForwardList
- the Vector to copy.public void setForwardCollection(List<Forward> forwardList)
forwardList
- the Vector to set.public void setHost(String host)
host
- the value of field 'host'.public void setIfAlias(String ifAlias)
ifAlias
- the value of field 'ifAlias'.public void setIfIndex(Integer ifIndex)
ifIndex
- the value of field 'ifIndex'.public void setInterface(String _interface)
public void setInterfaceAddress(InetAddress _interface)
public void setLoggroup(int index, String vLoggroup) throws IndexOutOfBoundsException
index
- vLoggroup
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setLoggroup(String[] vLoggroupArray)
vLoggroupArray
- public void setLoggroup(List<String> vLoggroupList)
vLoggroupList
- the Vector to copy.public void setLoggroupCollection(List<String> loggroupList)
loggroupList
- the Vector to set.public void setLogmsg(Logmsg logmsg)
logmsg
- the value of field 'logmsg'.public void setMask(Mask mask)
mask
- the value of field 'mask'.public void setMasterStation(String masterStation)
masterStation
- the value of field 'masterStation'.public void setMouseovertext(String mouseovertext)
mouseovertext
- the value of field 'mouseovertext'.public void setNodeid(Long nodeid)
nodeid
- the value of field 'nodeid'.public void setOperaction(int index, Operaction vOperaction) throws IndexOutOfBoundsException
index
- vOperaction
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setOperaction(Operaction[] vOperactionArray)
vOperactionArray
- public void setOperaction(List<Operaction> vOperactionList)
vOperactionList
- the Vector to copy.public void setOperactionCollection(List<Operaction> operactionList)
operactionList
- the Vector to set.public void setOperinstruct(String operinstruct)
operinstruct
- the value of field 'operinstruct'.public void setPathoutage(String pathoutage)
pathoutage
- the value of field 'pathoutage'.public void setScript(int index, Script vScript) throws IndexOutOfBoundsException
index
- vScript
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setScript(Script[] vScriptArray)
vScriptArray
- public void setScript(List<Script> vScriptList)
vScriptList
- the Vector to copy.public void setScriptCollection(List<Script> scriptList)
scriptList
- the Vector to set.public void setService(String service)
service
- the value of field 'service'.public void setSeverity(String severity)
severity
- the value of field 'severity'.public void setSnmp(Snmp snmp)
snmp
- the value of field 'snmp'.public void setSnmphost(String snmphost)
snmphost
- the value of field 'snmphost'.public void setSource(String source)
source
- the value of field 'source'.public void setTime(Date time)
time
- the value of field 'time'.public void setTticket(Tticket tticket)
tticket
- the value of field 'tticket'.public void setUei(String uei)
uei
- the value of field 'uei'.public void setUuid(String uuid)
uuid
- the value of field 'uuid'.public String toStringSimple()
Copyright © 2021. All rights reserved.