public class Worker extends Object implements Shutdownable, DaemonCommon
Constructor and Description |
---|
Worker(Map<String,Object> conf,
IContext context,
String topologyId,
String assignmentId,
int supervisorPort,
int port,
String workerId)
TODO: should worker even take the topologyId as input? this should be deducible from cluster state (by searching through assignments) what about if there’s inconsistency in assignments? -> but nimbus should guarantee this consistency.
|
Modifier and Type | Method and Description |
---|---|
void |
checkCredentialsChanged() |
void |
checkLogConfigChanged() |
void |
doExecutorHeartbeats() |
void |
doHeartBeat() |
void |
doRefreshLoad() |
void |
establishLogSettingCallback() |
Map<String,Long> |
getCurrentBlobVersions() |
boolean |
isWaiting() |
static void |
main(String[] args) |
void |
shutdown() |
void |
start() |
void |
updateBlobUpdates() |
public Worker(Map<String,Object> conf, IContext context, String topologyId, String assignmentId, int supervisorPort, int port, String workerId)
TODO: should worker even take the topologyId as input? this should be deducible from cluster state (by searching through assignments) what about if there’s inconsistency in assignments? -> but nimbus should guarantee this consistency.
conf
- context
- -topologyId
- assignmentId
- supervisorPort
- port
- workerId
- public void doRefreshLoad()
public void doHeartBeat() throws IOException
IOException
public void doExecutorHeartbeats()
public Map<String,Long> getCurrentBlobVersions() throws IOException
IOException
public void updateBlobUpdates() throws IOException
IOException
public void checkCredentialsChanged()
public void checkLogConfigChanged()
public void establishLogSettingCallback()
public void shutdown()
shutdown
in interface Shutdownable
public boolean isWaiting()
isWaiting
in interface DaemonCommon
Copyright © 2019 The Apache Software Foundation. All rights reserved.