|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.nms.alertdb.AlertHistory
public class AlertHistory
AlertHistory object will be created whenever an action on Alert is taken by WebNMS. The actions may be Updating an Alert, Clearing an Alert, Deleting an Alert. AlertHistory contains fields entity, modTime and notes. AlertAnnotation is direct known subclass of AlertHistory.
Alert,
Serialized Form| Constructor Summary | |
|---|---|
AlertHistory()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
clone()
Return a new AlertHistory object which is a clone of this AlertHistory object. |
java.lang.String |
convertToString(long value)
This method converts a long value into string type. |
void |
decodeObj(byte[] bytes)
This method sets the properties of the AlertHistory object from the byte[] passed as an argument. |
byte[] |
encodeObj()
Returns the byte array in encoded format of the AlertHistory object. |
java.lang.Long |
getAaid()
|
java.lang.String |
getEntity()
Get the entity of the AlertHistory. |
java.lang.String |
getKey()
This method returns the primary key value (entity) for this AlertHistory object |
java.lang.String |
getKeyName()
This method returns the name of the field which is used as the primary key for alerts. |
long |
getModTime()
Get the time at which this alert was last modified. |
java.lang.String |
getNotes()
Get the detailed annotations about updates on this alert. |
java.lang.String |
getOwnerName()
Gets the owner to which the corresponding Alert belongs. |
java.util.Properties |
getProperties()
Returns all the properties of an AlertHistory object. |
void |
setEntity(java.lang.String entity)
Sets the entity of this alert. |
void |
setModTime(long modTime)
Sets the time at which this alert was last modified. |
void |
setNotes(java.lang.String notes)
Sets the detailed annotations about updates on this alert. |
void |
setOwnerName(java.lang.String owner)
Sets the owner to which the corresponding Alert belongs. |
void |
setProperties(java.util.Properties p)
To set the AlertHistory object's properties. |
java.lang.String |
toString()
Returns the string representation of the History Object. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AlertHistory()
| Method Detail |
|---|
public java.lang.Long getAaid()
public java.lang.String getEntity()
public void setEntity(java.lang.String entity)
entity - The value of the entity (Failure object).public long getModTime()
public void setModTime(long modTime)
modTime - The modified time of this alert.public java.lang.String getNotes()
public void setNotes(java.lang.String notes)
notes - The annotations to be done from this alert.public java.lang.String getOwnerName()
public void setOwnerName(java.lang.String owner)
owner - The owner name to which the corresponding Alert belongs.public java.util.Properties getProperties()
getProperties in interface DBInterfacepublic java.lang.Object clone()
clone in interface DBInterfaceclone in class java.lang.Objectpublic void setProperties(java.util.Properties p)
setProperties in interface DBInterfacep - The values of the fields in this AlertHistory.
entity, id, modTime.public java.lang.String getKey()
getKey in interface DBInterfacepublic java.lang.String getKeyName()
getKeyName in interface DBInterfacepublic java.lang.String convertToString(long value)
value - parameter which is to be converted into string type.
public byte[] encodeObj()
public void decodeObj(byte[] bytes)
throws java.io.IOException
bytes - The byte[] containing the properties of AlertHitory object
as returned by the encodeObj() method present in this class.
java.io.IOExceptionencodeObj()public java.lang.String toString()
toString in class java.lang.Object
|
"WEBNMS_5 API Docs" | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||