Package org.opennms.netmgt.trapd
Class TrapSinkConsumer
- java.lang.Object
-
- org.opennms.netmgt.trapd.TrapSinkConsumer
-
- All Implemented Interfaces:
MessageConsumer<TrapInformationWrapper,TrapLogDTO>
public class TrapSinkConsumer extends Object implements MessageConsumer<TrapInformationWrapper,TrapLogDTO>
-
-
Field Summary
Fields Modifier and Type Field Description static TrapdInstrumentation
trapdInstrumentation
-
Constructor Summary
Constructors Constructor Description TrapSinkConsumer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SinkModule<TrapInformationWrapper,TrapLogDTO>
getModule()
void
handleMessage(TrapLogDTO messageLog)
void
init()
-
-
-
Field Detail
-
trapdInstrumentation
public static final TrapdInstrumentation trapdInstrumentation
-
-
Method Detail
-
init
@PostConstruct public void init() throws Exception
- Throws:
Exception
-
getModule
public SinkModule<TrapInformationWrapper,TrapLogDTO> getModule()
- Specified by:
getModule
in interfaceMessageConsumer<TrapInformationWrapper,TrapLogDTO>
-
handleMessage
public void handleMessage(TrapLogDTO messageLog)
- Specified by:
handleMessage
in interfaceMessageConsumer<TrapInformationWrapper,TrapLogDTO>
-
-