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
IOException
public String getWorkerIdentity()
ServiceInstance
getWorkerIdentity
in interface ServiceInstance
public String getHost()
ServiceInstance
getHost
in interface ServiceInstance
public int getRpcPort()
ServiceInstance
getRpcPort
in interface ServiceInstance
public Map<String,String> getProperties()
ServiceInstance
getProperties
in interface ServiceInstance
public void setHost(String host)
public void setRpcPort(int rpcPort)
public void setWorkerIdentity(String workerIdentity)
Copyright © 2022 The Apache Software Foundation. All rights reserved.