|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.opennms.bb.dp.events.EventHeader
EventHeader holds data from the
Field Summary | |
private Calendar |
m_created
the creation date of this event stream |
private String |
m_dpName
the distributed poller sending the events |
private String |
m_mstation
master station associated with the poller sending the event |
private String |
m_ver
the dtd version used |
Constructor Summary | |
EventHeader()
Constructs a new event header object with the default values. |
|
EventHeader(EventHeader second)
Construct a new event header object that is a duplicate of the passed object. |
|
EventHeader(String ver,
String dpName,
String mstation,
Calendar created)
Constructs a EventHeader object with all the specific value. |
Method Summary | |
String |
getDPName()
Returns the distributed poller name |
String |
getMStation()
Returns the master station address information |
Calendar |
getTimestamp()
Returns the time when the header was created. |
String |
getVersion()
Returns the current version text. |
(package private) void |
serializeToXML(PrintStream ps)
Writes self to event stream |
void |
setDPName(String dpName)
Sets the distributed poller name |
void |
setMStation(String mstation)
Sets the master station field |
void |
setTimestamp(Calendar c)
Sets the time that the header was created. |
void |
setTimestamp(Date d)
Sets the time that the header was created. |
void |
setVersion(String version)
Sets the version string for the header |
Methods inherited from class java.lang.Object |
|
Field Detail |
private String m_ver
private String m_dpName
private Calendar m_created
private String m_mstation
Constructor Detail |
public EventHeader()
Constructs a new event header object with the default values. The default values are null for all string elements and the singular calendar element is initialized to the current time.
public EventHeader(EventHeader second)
Construct a new event header object that is a duplicate of the passed object. For all purposes the new instances is an exact copy of the passed value.
second
- The instance to be copied.public EventHeader(String ver, String dpName, String mstation, Calendar created)
ver
- The version of the headerdpName
- The distributed poller name from the header.mstation
- The configured master station for the poller.created
- The header's timestamp.Method Detail |
void serializeToXML(PrintStream ps)
public String getVersion()
public void setVersion(String version)
version
- The version information for the header.public String getDPName()
public void setDPName(String dpName)
dpName
- The distributed poller name.public String getMStation()
public void setMStation(String mstation)
mstation
- The new text for the master staion.public Calendar getTimestamp()
public void setTimestamp(Calendar c)
d
- The date the header was created.public void setTimestamp(Date d)
d
- The date the header was created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |