public class ZKAssistedDiscovery extends Object implements Discovery<byte[]>, com.datatorrent.api.Component<com.datatorrent.api.Context>, org.apache.flume.conf.Configurable, Serializable
ZKAssistedDiscovery class.
| Modifier and Type | Class and Description |
|---|---|
class |
ZKAssistedDiscovery.InstanceSerializerFactory |
Discovery.Service<T>| Constructor and Description |
|---|
ZKAssistedDiscovery() |
| Modifier and Type | Method and Description |
|---|---|
void |
advertise(Discovery.Service<byte[]> service)
Advertise the host/port address where FlumeSink is accepting a client connection.
|
void |
configure(org.apache.flume.Context context) |
Collection<Discovery.Service<byte[]>> |
discover()
Discover all the addresses which are actively accepting the client connections.
|
void |
doAdvertise(Discovery.Service<byte[]> service,
boolean flag) |
boolean |
equals(Object obj) |
String |
getBasePath() |
int |
getConnectionRetryCount() |
String |
getConnectionString() |
int |
getConnectionTimeoutMillis() |
int |
getConntectionRetrySleepMillis() |
String |
getServiceName() |
int |
hashCode() |
void |
setBasePath(String basePath) |
void |
setConnectionRetryCount(int connectionRetryCount) |
void |
setConnectionString(String connectionString) |
void |
setConnectionTimeoutMillis(int connectionTimeoutMillis) |
void |
setConntectionRetrySleepMillis(int conntectionRetrySleepMillis) |
void |
setServiceName(String serviceName) |
void |
setup(com.datatorrent.api.Context context) |
void |
teardown() |
String |
toString() |
void |
unadvertise(Discovery.Service<byte[]> service)
Recall the previously published address as it's no longer valid.
|
public void unadvertise(Discovery.Service<byte[]> service)
Discoveryunadvertise in interface Discovery<byte[]>public void advertise(Discovery.Service<byte[]> service)
Discoverypublic void doAdvertise(Discovery.Service<byte[]> service, boolean flag)
public Collection<Discovery.Service<byte[]>> discover()
Discoverypublic String getConnectionString()
public void setConnectionString(String connectionString)
connectionString - the connectionString to setpublic String getBasePath()
public void setBasePath(String basePath)
basePath - the basePath to setpublic int getConnectionTimeoutMillis()
public void setConnectionTimeoutMillis(int connectionTimeoutMillis)
connectionTimeoutMillis - the connectionTimeoutMillis to setpublic int getConnectionRetryCount()
public void setConnectionRetryCount(int connectionRetryCount)
connectionRetryCount - the connectionRetryCount to setpublic int getConntectionRetrySleepMillis()
public void setConntectionRetrySleepMillis(int conntectionRetrySleepMillis)
conntectionRetrySleepMillis - the conntectionRetrySleepMillis to setpublic String getServiceName()
public void setServiceName(String serviceName)
serviceName - the serviceName to setpublic void configure(org.apache.flume.Context context)
configure in interface org.apache.flume.conf.Configurablepublic void setup(com.datatorrent.api.Context context)
setup in interface com.datatorrent.api.Component<com.datatorrent.api.Context>public void teardown()
teardown in interface com.datatorrent.api.Component<com.datatorrent.api.Context>Copyright © 2015-2017 Apache Software Foundation. All Rights Reserved.