public class WorkerId extends Object implements org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
WorkerId()
Default constructor for workerId.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
org.apache.hadoop.io.Text |
getHostname()
Get hostname for Worker.
|
String |
getIPAddress()
Get Worker IP address.
|
String |
getWorkerId()
Get workerId.
|
int |
hashCode() |
void |
readFields(DataInput dataInput) |
void |
setHostname(org.apache.hadoop.io.Text wkhostname)
Set hostname for Worker.
|
void |
setWorkerId(String localworkerId)
Set workerId.
|
String |
toString()
Print workerId.
|
void |
write(DataOutput dataOutput) |
public WorkerId()
public final org.apache.hadoop.io.Text getHostname()
public final void setHostname(org.apache.hadoop.io.Text wkhostname)
wkhostname - : Hostname of workerpublic final String getIPAddress()
public final String toString()
public final String getWorkerId()
public final void setWorkerId(String localworkerId)
localworkerId - : Worker identifierpublic final void write(DataOutput dataOutput) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic final void readFields(DataInput dataInput) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2008–2023 Apache Software Foundation. All rights reserved.