public class RemoteExecutionStateRenderer extends Object implements MultiStateRenderer
Maintains an internal mapping of build targets and their associated RemoteExecutionActionEvent.Started
at a particular instant in time defined by currentTimeMillis
. The mapping is ordered and immutable, and each map entry's index in the
total ordering is treated as an ID. Targets that have not been executing long enough are ignored.
Constructor and Description |
---|
RemoteExecutionStateRenderer(Ansi ansi,
java.util.function.Function<Long,String> formatTimeFunction,
long currentTimeMillis,
int outputMaxColumns,
long minimumDurationMillis,
int maxConcurrentExecutions,
com.google.common.collect.ImmutableList<RemoteExecutionActionEvent.Started> remotelyBuildingTargets) |
Modifier and Type | Method and Description |
---|---|
String |
getExecutorCollectionLabel() |
int |
getExecutorCount() |
com.google.common.collect.ImmutableList<Long> |
getSortedIds(boolean unused) |
String |
renderShortStatus(long targetId) |
String |
renderStatusLine(long targetId) |
public RemoteExecutionStateRenderer(Ansi ansi, java.util.function.Function<Long,String> formatTimeFunction, long currentTimeMillis, int outputMaxColumns, long minimumDurationMillis, int maxConcurrentExecutions, com.google.common.collect.ImmutableList<RemoteExecutionActionEvent.Started> remotelyBuildingTargets)
public String getExecutorCollectionLabel()
getExecutorCollectionLabel
in interface MultiStateRenderer
public int getExecutorCount()
getExecutorCount
in interface MultiStateRenderer
public com.google.common.collect.ImmutableList<Long> getSortedIds(boolean unused)
getSortedIds
in interface MultiStateRenderer
public String renderStatusLine(long targetId)
renderStatusLine
in interface MultiStateRenderer
public String renderShortStatus(long targetId)
renderShortStatus
in interface MultiStateRenderer