"WEBNMS_5 API Docs"

com.adventnet.nms.eventui
Class DEvent

java.lang.Object
  extended by com.adventnet.nms.eventui.DEvent

public class DEvent
extends java.lang.Object

An event class for display events


Field Summary
 java.lang.String category
           
 long date
           
static long dateDiff
           
 java.lang.String domain
           
 java.lang.String entity
           
 java.lang.String groupName
           
 java.lang.String helpURL
           
 int id
           
 java.lang.String network
           
 java.lang.String node
           
 java.lang.String ownerName
           
 int severity
           
 java.lang.String source
           
 java.lang.String text
           
 java.util.Properties userProperties
           
 
Constructor Summary
DEvent()
           
DEvent(java.util.Properties prop)
           
 
Method Summary
 java.lang.String dateString()
          To get a printable date
static java.lang.String dateString(long dat)
          Returns the string reprsentation of the date in the NMS format.
static java.lang.String dateString(long dat, java.lang.String format)
          Returns the string reprsentation of the date in the format specified by the parameter "format"
static java.lang.String dateString(java.lang.String timeInLong)
          Returns the string reprsentation of the date in the NMS format.
static java.lang.String dateString(java.lang.String timeInLong, java.lang.String format)
          Returns the string reprsentation of the date in the format specified by the parameter "format"
 java.awt.Color getColor()
           
static java.lang.Integer getColumnType(java.lang.String columnName)
           
static long getParsedTime(java.util.Date dt)
          To parse a date string
 java.util.Properties getProperties()
           
 java.lang.String getProperty(java.lang.String propName)
           
 void setProperties(java.util.Properties p)
           
static int severityInt(java.lang.String s)
           
 java.lang.String severityStr()
           
static java.lang.String severityStr(int sev)
           
 java.util.Properties toExportProperties(java.util.Vector fieldsVect)
           
 java.lang.String toPrintString()
           
 java.lang.String toPrintString(java.util.Vector fieldsVect)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

severity

public int severity

source

public java.lang.String source

helpURL

public java.lang.String helpURL

date

public long date

text

public java.lang.String text

id

public int id

category

public java.lang.String category

domain

public java.lang.String domain

network

public java.lang.String network

node

public java.lang.String node

entity

public java.lang.String entity

groupName

public java.lang.String groupName

ownerName

public java.lang.String ownerName

userProperties

public java.util.Properties userProperties

dateDiff

public static long dateDiff
Constructor Detail

DEvent

public DEvent()

DEvent

public DEvent(java.util.Properties prop)
Method Detail

setProperties

public void setProperties(java.util.Properties p)

severityStr

public static java.lang.String severityStr(int sev)

severityInt

public static int severityInt(java.lang.String s)

severityStr

public java.lang.String severityStr()

getColor

public java.awt.Color getColor()

dateString

public java.lang.String dateString()
To get a printable date


dateString

public static java.lang.String dateString(long dat)
Returns the string reprsentation of the date in the NMS format.

Parameters:
dat - The long value which is to be converted into date string.
Returns:
The string representation of date in the format specified in clientparameters.conf.

dateString

public static java.lang.String dateString(long dat,
                                          java.lang.String format)
Returns the string reprsentation of the date in the format specified by the parameter "format"

Parameters:
dat - The long value which is to be converted into date string.
format - The format in which the date string should be returned.
Returns:
The string representation of date in the format specified by the parameter "format"

dateString

public static java.lang.String dateString(java.lang.String timeInLong)
Returns the string reprsentation of the date in the NMS format.

Parameters:
dat - The long value in string which is to be converted into date string.
Returns:
The string representation of date in the format specified in clientparameters.conf.

dateString

public static java.lang.String dateString(java.lang.String timeInLong,
                                          java.lang.String format)
Returns the string reprsentation of the date in the format specified by the parameter "format"

Parameters:
dat - The long value in string which is to be converted into date string.
format - The format in which the date string should be returned.
Returns:
The string representation of date in the format specified by the parameter "format"

getParsedTime

public static long getParsedTime(java.util.Date dt)
To parse a date string


toPrintString

public java.lang.String toPrintString()

toPrintString

public java.lang.String toPrintString(java.util.Vector fieldsVect)

toExportProperties

public java.util.Properties toExportProperties(java.util.Vector fieldsVect)

getProperty

public java.lang.String getProperty(java.lang.String propName)

getProperties

public java.util.Properties getProperties()

getColumnType

public static java.lang.Integer getColumnType(java.lang.String columnName)

"WEBNMS_5 API Docs"

Copyright © 2011 ZOHO Corp., All Rights Reserved.