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) |
Worker(Map<String,Object> conf,
IContext context,
String topologyId,
String assignmentId,
int supervisorPort,
int port,
String workerId,
Supplier<SupervisorIfaceFactory> supervisorIfaceSupplier)
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, Supplier<SupervisorIfaceFactory> supervisorIfaceSupplier) throws IOException
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 - IOExceptionpublic Worker(Map<String,Object> conf, IContext context, String topologyId, String assignmentId, int supervisorPort, int port, String workerId) throws IOException
IOExceptionpublic void doRefreshLoad()
public void doHeartBeat()
throws IOException
IOExceptionpublic void doExecutorHeartbeats()
public Map<String,Long> getCurrentBlobVersions() throws IOException
IOExceptionpublic void updateBlobUpdates()
throws IOException
IOExceptionpublic void checkCredentialsChanged()
public void checkLogConfigChanged()
public void establishLogSettingCallback()
public void shutdown()
shutdown in interface Shutdownablepublic boolean isWaiting()
isWaiting in interface DaemonCommonCopyright © 2021 The Apache Software Foundation. All rights reserved.