org.opennms.netmgt.provision
Interface ServiceDetector

All Known Subinterfaces:
AsyncServiceDetector, SyncServiceDetector
All Known Implementing Classes:
AbstractDetector, AbstractJdbcDetector, AbstractJsr160Detector, AsyncAbstractDetector, AsyncBasicDetector, AsyncLineOrientedDetector, AsyncMultilineDetector, BasicDetector, BgpSessionDetector, CitrixDetector, DhcpDetector, DiskUsageDetector, DnsDetector, DominoIIOPDetector, EndPointDetector, FtpDetector, GpDetector, HostResourceSWRunDetector, HttpDetector, HttpsDetector, IcmpDetector, ImapDetector, JBossDetector, JdbcDetector, JdbcStoredProcedureDetector, JMXDetector, Jsr160Detector, LdapDetector, LineOrientedDetector, LoopDetector, MSExchangeDetector, MultilineHttpDetector, MultilineOrientedDetector, MX4JDetector, NotesHttpDetector, NrpeDetector, NtpDetector, Pop3Detector, RadiusAuthDetector, SmbDetector, SmsDetector, SmtpDetector, SnmpDetector, SshDetector, TcpDetector, Win32ServiceDetector, WmiDetector

public interface ServiceDetector

ServiceDetector Note: the isServiceDetected method is not defined here because there is a synchronous version of the method and an asynchronous one that are defined in sub interfaces. This interface is used for the configuration so all service detectors can be found since the would all be initialized and configured the same way.

Version:
$Id: $
Author:
Method Summary
 void dispose()
          The detector should clean up after itself in this method if necessary.
 String getServiceName()
          Requires that all implementations of this API return a service name.
 void init()
          Perform any necessary initialization after construction and before detecting.
 void setServiceName(String serviceName)
          Service name is mutable so that we can create new instances of each implementation and define a new service detector using the underlying protocol.
 

Method Detail

init

void init()
Perform any necessary initialization after construction and before detecting.


getServiceName

String getServiceName()
Requires that all implementations of this API return a service name.

Returns:
a String object.

setServiceName

void setServiceName(String serviceName)
Service name is mutable so that we can create new instances of each implementation and define a new service detector using the underlying protocol.

Parameters:
serviceName - a String object.

dispose

void dispose()
The detector should clean up after itself in this method if necessary.



Copyright © 2011. All Rights Reserved.