public class RemoteExecutionEventListener extends Object implements BuckEventListener, RemoteExecutionStatsProvider
Constructor and Description |
---|
RemoteExecutionEventListener() |
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ImmutableMap<String,String> |
exportFieldsToMap()
Export all the above metadata in a Map format
|
com.google.common.collect.ImmutableMap<RemoteExecutionActionEvent.State,Integer> |
getActionsPerState()
Current state of all remote execution Actions.
|
int |
getCasDownloads()
Total number of downloads.
|
long |
getCasDownloadSizeBytes()
Total number of downloaded bytes from CAS.
|
int |
getCasUploads()
Total number of downloads.
|
long |
getCasUploadSizeBytes()
Total of uploaded bytes to CAS.
|
LocalFallbackStats |
getLocalFallbackStats()
Fetches stats regarding the local fallback.
|
long |
getRemoteCpuTimeMs()
Metadata for total time spent executing actions remotely in millis.
|
long |
getRemoteQueueTimeMs()
Metadata for total time spent queued for executing actions in millis.
|
LongAdder |
getStateCount(RemoteExecutionActionEvent.State waiting) |
long |
getTotalRemoteTimeMs()
Metadata for total time spent running actions remotely.
|
int |
getTotalRulesBuilt()
Get the total number of BuildRules that are finished.
|
void |
onActionEventFinished(RemoteExecutionActionEvent.Finished event)
Event specific subscriber method.
|
void |
onActionEventStarted(RemoteExecutionActionEvent.Started event)
Event specific subscriber method.
|
void |
onActionEventTerminal(RemoteExecutionActionEvent.Terminal event)
Event specific subscriber method.
|
void |
onActionScheduled(RemoteExecutionActionEvent.Scheduled event)
Event specific subscriber method.
|
void |
onBuildRuleEvent(BuildRuleEvent.Finished event)
Event specific subscriber method.
|
void |
onCasDownloadEvent(CasBlobDownloadEvent.Finished event)
Event specific subscriber method.
|
void |
onCasUploadEvent(CasBlobUploadEvent.Finished event)
Event specific subscriber method.
|
void |
onLocalFallbackEventFinished(LocalFallbackEvent.Finished event)
Events from the LocalFallback stats.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public void onBuildRuleEvent(BuildRuleEvent.Finished event)
public void onCasUploadEvent(CasBlobUploadEvent.Finished event)
public void onCasDownloadEvent(CasBlobDownloadEvent.Finished event)
public void onActionScheduled(RemoteExecutionActionEvent.Scheduled event)
public void onActionEventTerminal(RemoteExecutionActionEvent.Terminal event)
public void onActionEventStarted(RemoteExecutionActionEvent.Started event)
public LongAdder getStateCount(RemoteExecutionActionEvent.State waiting)
public void onActionEventFinished(RemoteExecutionActionEvent.Finished event)
public void onLocalFallbackEventFinished(LocalFallbackEvent.Finished event)
public com.google.common.collect.ImmutableMap<RemoteExecutionActionEvent.State,Integer> getActionsPerState()
RemoteExecutionStatsProvider
getActionsPerState
in interface RemoteExecutionStatsProvider
public int getCasDownloads()
RemoteExecutionStatsProvider
getCasDownloads
in interface RemoteExecutionStatsProvider
public long getCasDownloadSizeBytes()
RemoteExecutionStatsProvider
getCasDownloadSizeBytes
in interface RemoteExecutionStatsProvider
public int getCasUploads()
RemoteExecutionStatsProvider
getCasUploads
in interface RemoteExecutionStatsProvider
public long getCasUploadSizeBytes()
RemoteExecutionStatsProvider
getCasUploadSizeBytes
in interface RemoteExecutionStatsProvider
public int getTotalRulesBuilt()
RemoteExecutionStatsProvider
getTotalRulesBuilt
in interface RemoteExecutionStatsProvider
public LocalFallbackStats getLocalFallbackStats()
RemoteExecutionStatsProvider
getLocalFallbackStats
in interface RemoteExecutionStatsProvider
public long getRemoteCpuTimeMs()
RemoteExecutionStatsProvider
getRemoteCpuTimeMs
in interface RemoteExecutionStatsProvider
public long getRemoteQueueTimeMs()
RemoteExecutionStatsProvider
getRemoteQueueTimeMs
in interface RemoteExecutionStatsProvider
public long getTotalRemoteTimeMs()
RemoteExecutionStatsProvider
getTotalRemoteTimeMs
in interface RemoteExecutionStatsProvider
public com.google.common.collect.ImmutableMap<String,String> exportFieldsToMap()
RemoteExecutionStatsProvider
exportFieldsToMap
in interface RemoteExecutionStatsProvider