public interface ServiceDetector
| Modifier and Type | Method and Description | 
|---|---|
void | 
dispose()
The detector should clean up after itself in this method if necessary. 
 | 
String | 
getIpMatch()
Get the IPLIKE rule for detecting the service. 
 | 
int | 
getPort()
Get the port where this service will be detected. 
 | 
String | 
getServiceName()
Requires that all implementations of this API return a service name. 
 | 
int | 
getTimeout()
Get the timeout for detecting the service. 
 | 
void | 
init()
Perform any necessary initialization after construction and before detecting. 
 | 
void | 
setIpMatch(String ipMatch)
Set the IPLIKE rule for detecting the service. 
 | 
void | 
setPort(int port)
Set the port where the service will be detected. 
 | 
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. 
 | 
void | 
setTimeout(int timeout)
Set the timeout for detecting the service. 
 | 
void init()
String getServiceName()
String object.void setServiceName(String serviceName)
serviceName - a String object.int getPort()
void setPort(int port)
port - int getTimeout()
void setTimeout(int timeout)
port - String getIpMatch()
void setIpMatch(String ipMatch)
void dispose()
Copyright © 2021. All rights reserved.