@InterfaceAudience.Private public class ClusterStatusPublisher extends ScheduledChore
| 限定符和类型 | 类和说明 |
|---|---|
static class |
ClusterStatusPublisher.MulticastPublisher |
static interface |
ClusterStatusPublisher.Publisher |
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_STATUS_PUBLISH_PERIOD |
static Class<? extends ClusterStatusPublisher.Publisher> |
DEFAULT_STATUS_PUBLISHER_CLASS |
static int |
MAX_SERVER_PER_MESSAGE
We want to limit the size of the protobuf message sent, do fit into a single packet.
|
static int |
NB_SEND
If a server dies, we're sending the information multiple times in case a receiver misses the
message.
|
static String |
STATUS_PUBLISH_PERIOD
The minimum time between two status messages, in milliseconds.
|
static String |
STATUS_PUBLISHER_CLASS
The implementation class used to publish the status.
|
| 限定符 | 构造器和说明 |
|---|---|
protected |
ClusterStatusPublisher() |
|
ClusterStatusPublisher(HMaster master,
org.apache.hadoop.conf.Configuration conf,
Class<? extends ClusterStatusPublisher.Publisher> publisherClass) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected void |
chore() |
protected void |
cleanup() |
protected List<ServerName> |
generateDeadServersListToSend()
Create the dead server to send.
|
protected List<Pair<ServerName,Long>> |
getDeadServers(long since)
Get the servers which died since a given timestamp.
|
cancel, cancel, choreForTesting, getInitialDelay, getName, getPeriod, getStopper, getTimeUnit, initialChore, isInitialChoreComplete, isScheduled, run, toString, triggerNowpublic static final String STATUS_PUBLISHER_CLASS
public static final Class<? extends ClusterStatusPublisher.Publisher> DEFAULT_STATUS_PUBLISHER_CLASS
public static final String STATUS_PUBLISH_PERIOD
public static final int DEFAULT_STATUS_PUBLISH_PERIOD
public static final int MAX_SERVER_PER_MESSAGE
public static final int NB_SEND
public ClusterStatusPublisher(HMaster master, org.apache.hadoop.conf.Configuration conf, Class<? extends ClusterStatusPublisher.Publisher> publisherClass) throws IOException
IOExceptionprotected ClusterStatusPublisher()
protected void chore()
chore 在类中 ScheduledChoreprotected void cleanup()
cleanup 在类中 ScheduledChoreprotected List<ServerName> generateDeadServersListToSend()
protected List<Pair<ServerName,Long>> getDeadServers(long since)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.