org.opennms.netmgt.config
Class DefaultServiceMonitorLocator

java.lang.Object
  extended by org.opennms.netmgt.config.DefaultServiceMonitorLocator
All Implemented Interfaces:
Serializable, ServiceMonitorLocator

public class DefaultServiceMonitorLocator
extends Object
implements ServiceMonitorLocator, Serializable

See Also:
Serialized Form

Constructor Summary
DefaultServiceMonitorLocator(String serviceName, Class<? extends ServiceMonitor> serviceClass)
          Constructor for DefaultServiceMonitorLocator.
 
Method Summary
 String getServiceLocatorKey()
          getServiceLocatorKey
 ServiceMonitor getServiceMonitor()
          getServiceMonitor
 String getServiceName()
          getServiceName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultServiceMonitorLocator

public DefaultServiceMonitorLocator(String serviceName,
                                    Class<? extends ServiceMonitor> serviceClass)

Constructor for DefaultServiceMonitorLocator.

Parameters:
serviceName - a String object.
serviceClass - a Class object.
Method Detail

getServiceMonitor

public ServiceMonitor getServiceMonitor()

getServiceMonitor

Specified by:
getServiceMonitor in interface ServiceMonitorLocator
Returns:
a ServiceMonitor object.

getServiceName

public String getServiceName()

getServiceName

Specified by:
getServiceName in interface ServiceMonitorLocator
Returns:
a String object.

getServiceLocatorKey

public String getServiceLocatorKey()

getServiceLocatorKey

Specified by:
getServiceLocatorKey in interface ServiceMonitorLocator
Returns:
a String object.


Copyright © 2011. All Rights Reserved.