Class Clipboard
- java.lang.Object
-
- org.nd4j.parameterserver.distributed.logic.completion.Clipboard
-
@Deprecated public class Clipboard extends Object
Deprecated.
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<RequestDescriptor,VoidAggregation>
clipboard
Deprecated.protected AtomicInteger
completedCounter
Deprecated.protected Queue<VoidAggregation>
completedQueue
Deprecated.protected AtomicInteger
trackingCounter
Deprecated.
-
Constructor Summary
Constructors Constructor Description Clipboard()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
getNumberOfCompleteStacks()
Deprecated.int
getNumberOfPinnedStacks()
Deprecated.VoidAggregation
getStackFromClipboard(long originatorId, long taskId)
Deprecated.boolean
hasCandidates()
Deprecated.This method checks, if clipboard has ready aggregations availableboolean
isReady(long originatorId, long taskId)
Deprecated.boolean
isReady(VoidAggregation aggregation)
Deprecated.boolean
isTracking(long originatorId, long taskId)
Deprecated.VoidAggregation
nextCandidate()
Deprecated.This method returns one of available aggregations, if there's at least 1 ready.boolean
pin(@NonNull VoidAggregation aggregation)
Deprecated.This method places incoming VoidAggregation into clipboard, for further trackingVoidAggregation
unpin(long originatorId, long taskId)
Deprecated.This method removes given VoidAggregation from clipboard, and returns itVoidAggregation
unpin(@NonNull VoidAggregation aggregation)
Deprecated.This method removes given VoidAggregation from clipboard, and returns it
-
-
-
Field Detail
-
clipboard
protected Map<RequestDescriptor,VoidAggregation> clipboard
Deprecated.
-
completedQueue
protected Queue<VoidAggregation> completedQueue
Deprecated.
-
trackingCounter
protected AtomicInteger trackingCounter
Deprecated.
-
completedCounter
protected AtomicInteger completedCounter
Deprecated.
-
-
Method Detail
-
pin
public boolean pin(@NonNull @NonNull VoidAggregation aggregation)
Deprecated.This method places incoming VoidAggregation into clipboard, for further tracking- Parameters:
aggregation
-- Returns:
- TRUE, if given VoidAggregation was the last chunk, FALSE otherwise
-
unpin
public VoidAggregation unpin(@NonNull @NonNull VoidAggregation aggregation)
Deprecated.This method removes given VoidAggregation from clipboard, and returns it- Parameters:
aggregation
-
-
unpin
public VoidAggregation unpin(long originatorId, long taskId)
Deprecated.This method removes given VoidAggregation from clipboard, and returns it- Parameters:
taskId
-
-
hasCandidates
public boolean hasCandidates()
Deprecated.This method checks, if clipboard has ready aggregations available- Returns:
- TRUE, if there's at least 1 candidate ready, FALSE otherwise
-
nextCandidate
public VoidAggregation nextCandidate()
Deprecated.This method returns one of available aggregations, if there's at least 1 ready.- Returns:
-
isReady
public boolean isReady(VoidAggregation aggregation)
Deprecated.
-
isReady
public boolean isReady(long originatorId, long taskId)
Deprecated.
-
isTracking
public boolean isTracking(long originatorId, long taskId)
Deprecated.
-
getNumberOfPinnedStacks
public int getNumberOfPinnedStacks()
Deprecated.
-
getNumberOfCompleteStacks
public int getNumberOfCompleteStacks()
Deprecated.
-
getStackFromClipboard
public VoidAggregation getStackFromClipboard(long originatorId, long taskId)
Deprecated.
-
-