Class GetPools
- All Implemented Interfaces:
Future<List<VmPool>>
,Associator
,Eligible
Gets the known pools’ definitions.
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.concurrent.Future
Future.State
-
Field Summary
Fields inherited from class org.jgrapes.core.internal.EventBase
completed, completionEvents, invokedFor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessibleFor
(String user, List<String> roles) Return onlyVmPool
s that are accessible by the given user or roles.forRoles()
Returns the roles criterion.forUser()
Returns the user filter criterion, if set.name()
Returns the name filter criterion, if set.Return only the pool with the given name.Methods inherited from class org.jgrapes.core.Event
addCompletionEvent, associated, cancel, channels, channels, completionEvents, currentResults, defaultCriterion, forChannels, get, get, handled, handlingError, isCancelled, isDone, isEligibleFor, isStopped, processedBy, results, results, resumeHandling, setAssociated, setChannels, setRequiresResult, setResult, stop, suspendHandling, suspendHandling, tieTo, toString
Methods inherited from class org.jgrapes.core.internal.EventBase
disableTracking, enqueued, firstResultAssigned, isTracked, onCompletion
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.jgrapes.core.Associator
associated, associated, associated, associatedGet
Methods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Constructor Details
-
GetPools
public GetPools()
-
-
Method Details
-
withName
Return only the pool with the given name.- Parameters:
name
- the name- Returns:
- the returns the vms
-
accessibleFor
Return onlyVmPool
s that are accessible by the given user or roles.- Parameters:
user
- the userroles
- the roles- Returns:
- the event
-
name
Returns the name filter criterion, if set.- Returns:
- the optional
-
forUser
Returns the user filter criterion, if set.- Returns:
- the optional
-
forRoles
Returns the roles criterion.- Returns:
- the list
-