|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bigdata.jini.start.config.ZookeeperServerEntry
public class ZookeeperServerEntry
A description of a zookeeper server entry as found in a
configuration file.
| Field Summary | |
|---|---|
protected static boolean |
DEBUG
|
String |
hostname
The hostname for the server instance. |
int |
id
The zookeeper service instance number (the value written in its myid file). |
protected static boolean |
INFO
|
int |
leaderPort
The second port (used for leader elections). |
protected static org.apache.log4j.Logger |
log
|
int |
peerPort
The first port (used for peer communications). |
| Constructor Summary | |
|---|---|
ZookeeperServerEntry(int id,
String val)
Parses the value associated with a server entry. |
|
| Method Summary | |
|---|---|
String |
getValue()
Return a representation of the property value that would be used for this server. |
boolean |
isLocalHost()
Return true if this is server entry for the local host. |
String |
toString()
Returns a representation of the server property as name=value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
protected static final boolean INFO
protected static final boolean DEBUG
public final int id
myid file).
public final String hostname
public final int peerPort
public final int leaderPort
| Constructor Detail |
|---|
public ZookeeperServerEntry(int id,
String val)
id - The zookeeper service instance number.val - The value as found in a zookeeper configuration file.| Method Detail |
|---|
public String getValue()
public String toString()
name=value.
toString in class Object
public boolean isLocalHost()
throws SocketException,
UnknownHostException
true if this is server entry for the local host.
SocketException
UnknownHostException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||