|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.management.Event
public abstract class Event
This class defines the generic Event object used in the ManagementServer framework. The ProtocolProvider(s) implement this class for protocol specific details . The Event class has a basic set of data fields (or standard properties) to hold values that are vital for Event notification management.
| Constructor Summary | |
|---|---|
Event()
|
|
| Method Summary | |
|---|---|
abstract void |
copy(Event e)
This will copy the values in the Event object given as argument into current object. |
java.lang.String |
getCategory()
Get the category of the event, like Threshold event etc. |
java.lang.String |
getDomain()
Get the domain name of the Agent which generates this event. |
java.lang.String |
getEntity()
Get the Entity (also known as Failure Object) of the Event. |
java.lang.String |
getNetwork()
Get the Network in which the event is generated. |
java.lang.String |
getNode()
Get the Node field of the Event generated. |
java.lang.Object |
getObject()
Get the object associated with the Event. |
abstract java.util.Properties |
getProperties()
This method returns the values of all the fields in this event object as a key,value pair in a java.util.Properties object. |
Property |
getProperty()
Get the Property registered for this Notification. |
int |
getSeverity()
Get the Severity of the Event object. |
java.lang.String |
getText()
Get the descriptive text message of the event. |
long |
getTime()
Get the time of occurrence (creation), in milliseconds, of this Event object. |
java.util.Hashtable |
getUserProperties()
The method returns all the user properties set in this event object as a key,value pair in a java.lang.Properties object. |
java.lang.String |
getUserProperty(java.lang.String nam)
The method returns the value of user property present matching the name passed as argument. |
java.lang.String |
removeUserProperty(java.lang.String nam)
The method removes any user property present in the Event object matching the name passed as arguement and returns the value of the property if it exists, else null is returned. |
void |
setCategory(java.lang.String category)
Set the category of the event, like Threshold event etc. |
void |
setDomain(java.lang.String domain)
Set the domain name of the Agent which generates this event. |
void |
setEntity(java.lang.String entity)
Set the Entity (also known as Failure Object) of the Event. |
void |
setNetwork(java.lang.String network)
Modifier method to Set the Network where the event occurs. |
void |
setNode(java.lang.String node)
Modifier method to Set the Node field of the Event. |
void |
setObject(java.lang.Object obj)
Sets the given object as the object attribute of this Event. |
abstract void |
setProperties(java.util.Properties p)
This method sets the properties of the Event Object. |
void |
setProperty(Property prop)
Set the Property registered for this Notification. |
void |
setSeverity(int severity)
Set the Severity of the Event object. |
void |
setText(java.lang.String text)
This is the modifier method used to set the descriptive text message of the event. |
void |
setTime(long time)
Set the time of occurrence (creation), in milliseconds, of this Event object. |
void |
setUserProperty(java.lang.String nam,
java.lang.String val)
This method sets a user property to the Event Object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Event()
| Method Detail |
|---|
public java.lang.String getText()
public void setText(java.lang.String text)
text - - text string of this event.public java.lang.String getCategory()
public void setCategory(java.lang.String category)
category - - the category of this event.public java.lang.String getDomain()
public void setDomain(java.lang.String domain)
domain - - the domain name as String.public java.lang.String getNetwork()
public void setNetwork(java.lang.String network)
network - - the network name as String.public java.lang.String getNode()
public void setNode(java.lang.String node)
node - - the node name as String.public java.lang.String getEntity()
public void setEntity(java.lang.String entity)
entity - - the name of the Entity as String.public int getSeverity()
public void setSeverity(int severity)
severity - - the severity of the Event.public long getTime()
public void setTime(long time)
time - - the time of occurrence of the Event.public Property getProperty()
public void setProperty(Property prop)
prop - - the request Property.
public void setUserProperty(java.lang.String nam,
java.lang.String val)
nam - - the name of attribute as String.val - - the value of attribute as String.public java.lang.String getUserProperty(java.lang.String nam)
nam - - the name of attribute as String.
public java.lang.String removeUserProperty(java.lang.String nam)
nam - - the name of attribute as String.
public java.util.Hashtable getUserProperties()
public abstract java.util.Properties getProperties()
public abstract void setProperties(java.util.Properties p)
p - - Hashtable containing the attributes to be set as name,
value pair.public abstract void copy(Event e)
p - - Event to be copied.public java.lang.Object getObject()
public void setObject(java.lang.Object obj)
obj - - the Object associated with this Event.
|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||