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