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, waitclosepublic 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()
RemoteExecutionStatsProvidergetActionsPerState in interface RemoteExecutionStatsProviderpublic int getCasDownloads()
RemoteExecutionStatsProvidergetCasDownloads in interface RemoteExecutionStatsProviderpublic long getCasDownloadSizeBytes()
RemoteExecutionStatsProvidergetCasDownloadSizeBytes in interface RemoteExecutionStatsProviderpublic int getCasUploads()
RemoteExecutionStatsProvidergetCasUploads in interface RemoteExecutionStatsProviderpublic long getCasUploadSizeBytes()
RemoteExecutionStatsProvidergetCasUploadSizeBytes in interface RemoteExecutionStatsProviderpublic int getTotalRulesBuilt()
RemoteExecutionStatsProvidergetTotalRulesBuilt in interface RemoteExecutionStatsProviderpublic LocalFallbackStats getLocalFallbackStats()
RemoteExecutionStatsProvidergetLocalFallbackStats in interface RemoteExecutionStatsProviderpublic long getRemoteCpuTimeMs()
RemoteExecutionStatsProvidergetRemoteCpuTimeMs in interface RemoteExecutionStatsProviderpublic long getRemoteQueueTimeMs()
RemoteExecutionStatsProvidergetRemoteQueueTimeMs in interface RemoteExecutionStatsProviderpublic long getTotalRemoteTimeMs()
RemoteExecutionStatsProvidergetTotalRemoteTimeMs in interface RemoteExecutionStatsProviderpublic com.google.common.collect.ImmutableMap<String,String> exportFieldsToMap()
RemoteExecutionStatsProviderexportFieldsToMap in interface RemoteExecutionStatsProvider