Package org.jclouds.gogrid.predicates
Class ServerLatestJobCompleted
- java.lang.Object
-
- org.jclouds.gogrid.predicates.ServerLatestJobCompleted
-
@Singleton public class ServerLatestJobCompleted extends Object implements com.google.common.base.Predicate<Server>
Checks if the latest job for the server is in "Succeeded" state. To achieve meaningful results, this must be run in a sequential environment when a server has only one job related to it at a time. The passed server instance must not be null and must have a name.
-
-
Field Summary
Fields Modifier and Type Field Description protected GridJobApi
jobClient
protected Logger
logger
-
Constructor Summary
Constructors Constructor Description ServerLatestJobCompleted(GridJobApi jobClient)
-
-
-
Field Detail
-
jobClient
protected GridJobApi jobClient
-
logger
protected Logger logger
-
-
Constructor Detail
-
ServerLatestJobCompleted
@Inject public ServerLatestJobCompleted(GridJobApi jobClient)
-
-