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
- IOException
public Worker(Map<String,Object> conf, IContext context, String topologyId, String assignmentId, int supervisorPort, int port, String workerId) throws IOException
IOException
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 © 2022 The Apache Software Foundation. All rights reserved.