Package org.opennms.netmgt.config
Class DefaultServiceMonitorLocator
- java.lang.Object
-
- org.opennms.netmgt.config.DefaultServiceMonitorLocator
-
- All Implemented Interfaces:
Serializable
,ServiceMonitorLocator
public class DefaultServiceMonitorLocator extends Object implements ServiceMonitorLocator, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultServiceMonitorLocator(String serviceName, Class<? extends ServiceMonitor> serviceClass)
Constructor for DefaultServiceMonitorLocator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getServiceLocatorKey()
getServiceLocatorKeyServiceMonitor
getServiceMonitor(ServiceMonitorRegistry registry)
getServiceMonitorString
getServiceName()
getServiceName
-
-
-
Constructor Detail
-
DefaultServiceMonitorLocator
public DefaultServiceMonitorLocator(String serviceName, Class<? extends ServiceMonitor> serviceClass)
Constructor for DefaultServiceMonitorLocator.
-
-
Method Detail
-
getServiceMonitor
public ServiceMonitor getServiceMonitor(ServiceMonitorRegistry registry)
Description copied from interface:ServiceMonitorLocator
getServiceMonitor
- Specified by:
getServiceMonitor
in interfaceServiceMonitorLocator
- Returns:
- a
ServiceMonitor
object.
-
getServiceName
public String getServiceName()
getServiceName
- Specified by:
getServiceName
in interfaceServiceMonitorLocator
- Returns:
- a
String
object.
-
getServiceLocatorKey
public String getServiceLocatorKey()
getServiceLocatorKey
- Specified by:
getServiceLocatorKey
in interfaceServiceMonitorLocator
- Returns:
- a
String
object.
-
-