Package org.opennms.netmgt.dao.api
Class ServiceRef
- java.lang.Object
-
- org.opennms.netmgt.dao.api.ServiceRef
-
public class ServiceRef extends Object
A immutable reference to an IP-service
-
-
Constructor Summary
Constructors Constructor Description ServiceRef(int nodeId, InetAddress ipAddress, String serviceName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static ServiceReffromEvent(IEvent event)static ServiceReffromIpInterface(OnmsIpInterface ipInterface, String serviceName)InetAddressgetIpAddress()intgetNodeId()StringgetServiceName()inthashCode()StringtoString()
-
-
-
Constructor Detail
-
ServiceRef
public ServiceRef(int nodeId, InetAddress ipAddress, String serviceName)
-
-
Method Detail
-
fromEvent
public static ServiceRef fromEvent(IEvent event)
-
fromIpInterface
public static ServiceRef fromIpInterface(OnmsIpInterface ipInterface, String serviceName)
-
getNodeId
public int getNodeId()
-
getIpAddress
public InetAddress getIpAddress()
-
getServiceName
public String getServiceName()
-
-