Package org.opennms.netmgt.tl1d
Class Tl1Message
- java.lang.Object
-
- org.opennms.netmgt.tl1d.Tl1Message
-
- Direct Known Subclasses:
Tl1AutonomousMessage
public abstract class Tl1Message extends Object
Abstraction for generic TL1 Messages. Must generic methods are used to populate OpenNMS Event fields.- Version:
- $Id: $
- Author:
- David Hustace
-
-
Field Summary
Fields Modifier and Type Field Description static intACKNOWLEDGEMENTConstantACKNOWLEDGEMENT=3static intAUTONOMOUSConstantAUTONOMOUS=4static intINPUTConstantINPUT=1static intOUTPUTConstantOUTPUT=2
-
Constructor Summary
Constructors Constructor Description Tl1Message()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHost()getHostStringgetRawMessage()getRawMessageDategetTimestamp()getTimestampvoidsetHost(String host)setHostvoidsetRawMessage(String rawMessage)setRawMessagevoidsetTimestamp(Date timestamp)setTimestampStringtoString()toString
-
-
-
Field Detail
-
INPUT
public static final int INPUT
ConstantINPUT=1- See Also:
- Constant Field Values
-
OUTPUT
public static final int OUTPUT
ConstantOUTPUT=2- See Also:
- Constant Field Values
-
ACKNOWLEDGEMENT
public static final int ACKNOWLEDGEMENT
ConstantACKNOWLEDGEMENT=3- See Also:
- Constant Field Values
-
AUTONOMOUS
public static final int AUTONOMOUS
ConstantAUTONOMOUS=4- See Also:
- Constant Field Values
-
-