public class TaskNodeStatusImpl extends Object implements TaskNodeStatus
Constructor and Description |
---|
TaskNodeStatusImpl(Class<? extends Name<String>> groupName,
Class<? extends Name<String>> operName,
String taskId,
TaskNode node) |
Modifier and Type | Method and Description |
---|---|
void |
clearStateAndReleaseLocks()
Used when the task has failed to clear all.
|
void |
expectAckFor(ReefNetworkGroupCommProtos.GroupCommMessage.Type msgType,
String srcId)
This needs to happen in line rather than in a stage because we need to note.
|
boolean |
hasChanges() |
boolean |
isActive(String neighborId) |
void |
onTopologySetupMessageSent() |
void |
processAcknowledgement(GroupCommunicationMessage gcm)
Process the msg that was received and update.
|
void |
updateFailureOf(String failTaskId)
This should remove state concerning neighboring tasks.
|
void |
updatingTopology()
Called to denote that a UpdateTopology msg will.
|
void |
waitForTopologySetup() |
public void onTopologySetupMessageSent()
onTopologySetupMessageSent
in interface TaskNodeStatus
public boolean isActive(String neighborId)
isActive
in interface TaskNodeStatus
public void expectAckFor(ReefNetworkGroupCommProtos.GroupCommMessage.Type msgType, String srcId)
expectAckFor
in interface TaskNodeStatus
public void clearStateAndReleaseLocks()
TaskNodeStatus
clearStateAndReleaseLocks
in interface TaskNodeStatus
public void updateFailureOf(String failTaskId)
TaskNodeStatus
updateFailureOf
in interface TaskNodeStatus
public void processAcknowledgement(GroupCommunicationMessage gcm)
TaskNodeStatus
processAcknowledgement
in interface TaskNodeStatus
public void updatingTopology()
TaskNodeStatus
updatingTopology
in interface TaskNodeStatus
public boolean hasChanges()
hasChanges
in interface TaskNodeStatus
public void waitForTopologySetup()
waitForTopologySetup
in interface TaskNodeStatus
Copyright © 2016 The Apache Software Foundation. All rights reserved.