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
the state that is associated with this task
Also should release the locks held for implementing
the convenience wait* methods
|
void |
expectAckFor(ReefNetworkGroupCommProtos.GroupCommMessage.Type msgType,
String srcId)
This needs to happen in line rather than in a stage because we need to note
the messages we send to the tasks before we start processing msgs from the
nodes.(Acks & Topology msgs)
|
boolean |
hasChanges() |
boolean |
isActive(String neighborId) |
void |
onTopologySetupMessageSent() |
void |
processAcknowledgement(GroupCommunicationMessage gcm)
Process the msg that was received and update
state accordingly
|
void |
updateFailureOf(String taskId)
This should remove state concerning neighboring tasks
that have failed
|
void |
updatingTopology()
Called to denote that a UpdateTopology msg will
be sent
|
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 taskId)
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 © 2015 The Apache Software Foundation. All rights reserved.