Class GetVms
- All Implemented Interfaces:
Future<List<GetVms.VmData>>,Associator,Eligible
Gets the known VMs’ definitions and channels.
-
Nested Class Summary
Nested ClassesNested 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 onlyVmDefinitions that are accessible by the given user or roles.assignedFrom(String pool) Return onlyVmDefinitions that are assigned from the given pool.assignedTo(String user) Return onlyVmDefinitions that are assigned to the given user.fromPool()Returns the pool filter criterion, if set.name()Returns the name filter criterion, if set.roles()Returns the roles criterion.toUser()Returns the user filter criterion, if set.user()Returns the user filter criterion, if set.Return only the VMs 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, toStringMethods inherited from class org.jgrapes.core.internal.EventBase
disableTracking, enqueued, firstResultAssigned, isTracked, onCompletionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jgrapes.core.Associator
associated, associated, associated, associatedGetMethods inherited from interface java.util.concurrent.Future
exceptionNow, resultNow, state
-
Constructor Details
-
GetVms
public GetVms()
-
-
Method Details
-
withName
Return only the VMs with the given name.- Parameters:
name- the name- Returns:
- the returns the vms
-
accessibleFor
Return onlyVmDefinitions that are accessible by the given user or roles.- Parameters:
user- the userroles- the roles- Returns:
- the event
-
assignedFrom
Return onlyVmDefinitions that are assigned from the given pool.- Parameters:
pool- the pool- Returns:
- the returns the vms
-
assignedTo
Return onlyVmDefinitions that are assigned to the given user.- Parameters:
user- the user- Returns:
- the returns the vms
-
name
Returns the name filter criterion, if set.- Returns:
- the optional
-
user
Returns the user filter criterion, if set.- Returns:
- the optional
-
roles
Returns the roles criterion.- Returns:
- the list
-
fromPool
Returns the pool filter criterion, if set.- Returns:
- the optional
-
toUser
Returns the user filter criterion, if set.- Returns:
- the optional
-