Uses of Class
com.elastisys.scale.cloudpool.api.types.Machine
-
Packages that use Machine Package Description com.elastisys.scale.cloudpool.api.types -
-
Uses of Machine in com.elastisys.scale.cloudpool.api.types
Methods in com.elastisys.scale.cloudpool.api.types that return Machine Modifier and Type Method Description MachineMachine.ToShortMachineFormat. apply(Machine machine)MachineMachine.Builder. build()Creates a newMachineinstance from the parameters passed thus far to theMachine.Builder.MachineMachine. withMetadata(com.google.gson.JsonObject metadata)Creates a copy of thisMachinewith a different value for the metadata field.Methods in com.elastisys.scale.cloudpool.api.types that return types with arguments of type Machine Modifier and Type Method Description java.util.List<Machine>MachinePool. getActiveMachines()Returns all activeMachines in the pool.java.util.List<Machine>MachinePool. getAllocatedMachines()Returns all allocatedMachines in the pool.java.util.List<Machine>MachinePool. getMachines()Returns allMachines in the pool.java.util.List<Machine>MachinePool. getStartedMachines()Returns all startedMachines in the pool.static java.util.function.Predicate<? super Machine>Machine. inState(MachineState state)static java.util.function.Predicate<Machine>Machine. isActiveMember()Returns aPredicatethat returnstruewhen passed aMachinethat is an active pool member -- it has been allocated from the underlying infrastructure (MachineState.REQUESTED,MachineState.PENDINGorMachineState.RUNNING) and is an active pool member (MembershipStatus.isActive()).static java.util.function.Predicate<Machine>Machine. isAllocated()Returns aPredicatethat returnstruewhen passed aMachinethat has been allocated from the underlying infrastructure (machine stateMachineState.REQUESTED,MachineState.PENDINGorMachineState.RUNNING).static java.util.function.Predicate<Machine>Machine. isEvictable()static java.util.function.Predicate<Machine>Machine. isStarted()APredicatethat returnstruewhen passed aMachinethat has been started by the underlying infrastructure (machine state isMachineState.PENDINGorMachineState.RUNNING).static java.util.List<Machine>Machine. sort(java.util.Collection<Machine> machines, java.util.Comparator<Machine> comparator)Sorts a collection ofMachines according to the order prescribed by a certainComparator.static java.util.function.Function<Machine,Machine>Machine. toShortFormat()Factory method for theMachine.ToShortMachineFormatFunction.static java.util.function.Function<Machine,Machine>Machine. toShortFormat()Factory method for theMachine.ToShortMachineFormatFunction.static java.util.function.Function<Machine,java.lang.String>Machine. toShortString()Factory method for theMachine.ToShortMachineStringFunction.Methods in com.elastisys.scale.cloudpool.api.types with parameters of type Machine Modifier and Type Method Description MachineMachine.ToShortMachineFormat. apply(Machine machine)java.lang.StringMachine.ToShortMachineString. apply(Machine machine)booleanMachine.ActiveMemberPredicate. test(Machine machine)booleanMachine.AllocatedMachinePredicate. test(Machine machine)booleanMachine.EvictableMemberPredicate. test(Machine machine)booleanMachine.MachineWithState. test(Machine machine)booleanMachine.StartedMachinePredicate. test(Machine machine)Method parameters in com.elastisys.scale.cloudpool.api.types with type arguments of type Machine Modifier and Type Method Description static java.util.List<Machine>Machine. sort(java.util.Collection<Machine> machines, java.util.Comparator<Machine> comparator)Sorts a collection ofMachines according to the order prescribed by a certainComparator.static java.util.List<Machine>Machine. sort(java.util.Collection<Machine> machines, java.util.Comparator<Machine> comparator)Sorts a collection ofMachines according to the order prescribed by a certainComparator.Constructor parameters in com.elastisys.scale.cloudpool.api.types with type arguments of type Machine Constructor Description MachinePool(java.util.List<? extends Machine> machines, org.joda.time.DateTime timestamp)Constructs a newMachinePoolsnapshot.
-