Class ProtobufMapper
- java.lang.Object
-
- org.opennms.features.kafka.producer.ProtobufMapper
-
public class ProtobufMapper extends Object
-
-
Constructor Summary
Constructors Constructor Description ProtobufMapper(EventConfDao eventConfDao, HwEntityDao hwEntityDao, SessionUtils sessionUtils, NodeDao nodeDao, long nodeIdToCriteriaMaxCacheSize)
-
Method Summary
-
-
-
Constructor Detail
-
ProtobufMapper
public ProtobufMapper(EventConfDao eventConfDao, HwEntityDao hwEntityDao, SessionUtils sessionUtils, NodeDao nodeDao, long nodeIdToCriteriaMaxCacheSize)
-
-
Method Detail
-
toNode
public OpennmsModelProtos.Node.Builder toNode(OnmsNode node)
-
toHwEntity
public static OpennmsModelProtos.HwEntity.Builder toHwEntity(OnmsHwEntity entity)
-
toHwAlias
public static OpennmsModelProtos.HwAlias.Builder toHwAlias(OnmsHwEntityAlias alias)
-
toEvent
public OpennmsModelProtos.Event.Builder toEvent(Event event)
-
toEvent
public OpennmsModelProtos.Event.Builder toEvent(OnmsEvent event)
-
toAlarm
public OpennmsModelProtos.Alarm.Builder toAlarm(OnmsAlarm alarm)
-
toAlarmFeedback
public OpennmsModelProtos.AlarmFeedback.Builder toAlarmFeedback(AlarmFeedback alarmFeedback)
-
toNodeCriteria
public OpennmsModelProtos.NodeCriteria.Builder toNodeCriteria(OnmsNode node)
-
toSeverity
public OpennmsModelProtos.Severity toSeverity(OnmsSeverity sev)
-
toIpInterface
public OpennmsModelProtos.IpInterface.Builder toIpInterface(OnmsIpInterface ipInterface)
-
toSnmpInterface
public OpennmsModelProtos.SnmpInterface.Builder toSnmpInterface(OnmsSnmpInterface snmpInterface)
-
toTopologyRef
public OpennmsModelProtos.TopologyRef.Builder toTopologyRef(OnmsTopologyProtocol protocol, String id)
-
toEdgeTopologyMessage
public OpennmsModelProtos.TopologyEdge toEdgeTopologyMessage(OnmsTopologyProtocol protocol, OnmsTopologyEdge edge)
-
-