public class ClusterServiceLocator extends Object implements ServiceDiscovery
| Modifier and Type | Class and Description |
|---|---|
static class |
ClusterServiceLocator.AttemptsConfig |
| Modifier and Type | Field and Description |
|---|---|
private ClusterServiceLocator.AttemptsConfig |
attemptsConfig |
private DiscoverableService |
fixedService |
private int |
fixedServicePort |
private static org.slf4j.Logger |
logger |
private AtomicBoolean |
running |
private ClusterServiceDiscovery |
serviceDiscovery |
private String |
serviceName |
| Constructor and Description |
|---|
ClusterServiceLocator(ClusterServiceDiscovery serviceDiscovery) |
ClusterServiceLocator(ClusterServiceDiscovery serviceDiscovery,
int fixedServicePort) |
ClusterServiceLocator(DiscoverableService fixedService) |
| Modifier and Type | Method and Description |
|---|---|
ClusterServiceLocator.AttemptsConfig |
getAttemptsConfig() |
DiscoverableService |
getService() |
boolean |
isRunning() |
void |
setAttemptsConfig(ClusterServiceLocator.AttemptsConfig config) |
void |
start() |
void |
stop() |
private static final org.slf4j.Logger logger
private final String serviceName
private final ClusterServiceDiscovery serviceDiscovery
private final DiscoverableService fixedService
private final int fixedServicePort
private final ClusterServiceLocator.AttemptsConfig attemptsConfig
private final AtomicBoolean running
public ClusterServiceLocator(ClusterServiceDiscovery serviceDiscovery)
public ClusterServiceLocator(ClusterServiceDiscovery serviceDiscovery, int fixedServicePort)
public ClusterServiceLocator(DiscoverableService fixedService)
public DiscoverableService getService()
getService in interface ServiceDiscoverypublic boolean isRunning()
public void start()
throws IOException
IOExceptionpublic void stop()
throws IOException
IOExceptionpublic void setAttemptsConfig(ClusterServiceLocator.AttemptsConfig config)
public ClusterServiceLocator.AttemptsConfig getAttemptsConfig()
Copyright © 2015 Apache NiFi(incubating) Project. All rights reserved.