public class BackendStatusList extends java.lang.Object
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <backendStatusList> <backendStatus> <message>XXtorwd76QDpetiwxAkggtBIpEC9a51BFm2dHdczky3pHE2X65kJeUefdd9WRPDs</message> <status>EXECUTING</status> <backendId>542665525</backendId> </backendStatus> </backendStatusList>
BackendStatus
Constructor and Description |
---|
BackendStatusList() |
Modifier and Type | Method and Description |
---|---|
BackendStatus |
getBackendStatus(java.lang.Integer backendId) |
java.util.List<BackendStatus> |
getBackendStatuses() |
java.util.List<BackendStatus> |
getBackendStatuses(java.util.Set<AnalysisBackend.Capability> allOf) |
static BackendStatusList |
getBackendStatusList(java.util.List<BackendStatus> statuses) |
AsyncTask.TaskStatus |
getCombinedStatus() |
boolean |
isCompleted() |
static boolean |
isEmpty(BackendStatusList container) |
void |
setBackendStatus(BackendStatus backendStatus)
If a status for the given backend already exists, it is replaced
|
void |
setBackendStatus(java.util.Collection<AnalysisBackend> ends,
AsyncTask.TaskStatus status)
Add all back-ends with the given status
|
public BackendStatusList()
public java.util.List<BackendStatus> getBackendStatuses()
setBackendStatus(BackendStatus)
public boolean isCompleted()
public java.util.List<BackendStatus> getBackendStatuses(java.util.Set<AnalysisBackend.Capability> allOf)
allOf
- public AsyncTask.TaskStatus getCombinedStatus()
public void setBackendStatus(BackendStatus backendStatus)
backendStatus
- getBackendStatuses()
public BackendStatus getBackendStatus(java.lang.Integer backendId)
backendId
- public static boolean isEmpty(BackendStatusList container)
container
- public static BackendStatusList getBackendStatusList(java.util.List<BackendStatus> statuses)
statuses
- public void setBackendStatus(java.util.Collection<AnalysisBackend> ends, AsyncTask.TaskStatus status)
ends
- status
- setBackendStatus(BackendStatus)
Copyright © 2015 Tampere University of Technology, Pori Department.