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 StringgetServiceLocatorKey()getServiceLocatorKeyServiceMonitorgetServiceMonitor(ServiceMonitorRegistry registry)getServiceMonitorStringgetServiceName()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:ServiceMonitorLocatorgetServiceMonitor
- Specified by:
getServiceMonitorin interfaceServiceMonitorLocator- Returns:
- a
ServiceMonitorobject.
-
getServiceName
public String getServiceName()
getServiceName
- Specified by:
getServiceNamein interfaceServiceMonitorLocator- Returns:
- a
Stringobject.
-
getServiceLocatorKey
public String getServiceLocatorKey()
getServiceLocatorKey
- Specified by:
getServiceLocatorKeyin interfaceServiceMonitorLocator- Returns:
- a
Stringobject.
-
-