public class ServiceInstanceBase extends Object implements ServiceInstance
| Constructor and Description |
|---|
ServiceInstanceBase() |
ServiceInstanceBase(org.apache.hadoop.registry.client.types.ServiceRecord srv,
String rpcName) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getHost()
Hostname of the service instance
|
Map<String,String> |
getProperties()
Config properties of the Service Instance (llap.daemon.*)
|
int |
getRpcPort()
RPC Endpoint for service instance
|
String |
getWorkerIdentity()
Worker identity is a UUID (unique across restarts), to identify a node which died & was brought
back on the same host/port
|
int |
hashCode() |
void |
setHost(String host) |
void |
setProperties(Map<String,String> properties) |
void |
setRpcPort(int rpcPort) |
void |
setWorkerIdentity(String workerIdentity) |
String |
toString() |
public ServiceInstanceBase()
public ServiceInstanceBase(org.apache.hadoop.registry.client.types.ServiceRecord srv,
String rpcName)
throws IOException
IOExceptionpublic String getWorkerIdentity()
ServiceInstancegetWorkerIdentity in interface ServiceInstancepublic String getHost()
ServiceInstancegetHost in interface ServiceInstancepublic int getRpcPort()
ServiceInstancegetRpcPort in interface ServiceInstancepublic Map<String,String> getProperties()
ServiceInstancegetProperties in interface ServiceInstancepublic void setHost(String host)
public void setRpcPort(int rpcPort)
public void setWorkerIdentity(String workerIdentity)
Copyright © 2019 The Apache Software Foundation. All Rights Reserved.