| Package | Description |
|---|---|
| com.elastisys.scale.cloudpool.api.types |
| Modifier and Type | Method and Description |
|---|---|
Machine |
Machine.ToShortMachineFormat.apply(Machine machine) |
Machine |
Machine.Builder.build()
Creates a new
Machine instance from the parameters passed
thus far to the Machine.Builder. |
Machine |
Machine.withMetadata(com.google.gson.JsonObject metadata)
Creates a copy of this
Machine with a different value for the
metadata field. |
| Modifier and Type | Method and Description |
|---|---|
List<Machine> |
MachinePool.getActiveMachines()
Returns all active
Machines in the pool. |
List<Machine> |
MachinePool.getAllocatedMachines()
Returns all allocated
Machines in the pool. |
List<Machine> |
MachinePool.getMachines()
Returns all
Machines in the pool. |
List<Machine> |
MachinePool.getStartedMachines()
Returns all started
Machines in the pool. |
static java.util.function.Predicate<? super Machine> |
Machine.inState(MachineState state)
|
static java.util.function.Predicate<Machine> |
Machine.isActiveMember()
Returns a
Predicate that returns true when passed a
Machine that is an active pool member -- it has been allocated
from the underlying infrastructure (MachineState.REQUESTED,
MachineState.PENDING or MachineState.RUNNING) and is an
active pool member (MembershipStatus.isActive()). |
static java.util.function.Predicate<Machine> |
Machine.isAllocated()
Returns a
Predicate that returns true when passed a
Machine that has been allocated from the underlying
infrastructure (machine state MachineState.REQUESTED,
MachineState.PENDING or MachineState.RUNNING). |
static java.util.function.Predicate<Machine> |
Machine.isEvictable()
|
static java.util.function.Predicate<Machine> |
Machine.isStarted()
A
Predicate that returns true when passed a
Machine that has been started by the underlying infrastructure
(machine state is MachineState.PENDING or
MachineState.RUNNING). |
static List<Machine> |
Machine.sort(Collection<Machine> machines,
Comparator<Machine> comparator)
Sorts a collection of
Machines according to the order prescribed
by a certain Comparator. |
static java.util.function.Function<Machine,Machine> |
Machine.toShortFormat()
Factory method for the
Machine.ToShortMachineFormat Function. |
static java.util.function.Function<Machine,Machine> |
Machine.toShortFormat()
Factory method for the
Machine.ToShortMachineFormat Function. |
static java.util.function.Function<Machine,String> |
Machine.toShortString()
Factory method for the
Machine.ToShortMachineString Function. |
| Modifier and Type | Method and Description |
|---|---|
Machine |
Machine.ToShortMachineFormat.apply(Machine machine) |
String |
Machine.ToShortMachineString.apply(Machine machine) |
boolean |
Machine.MachineWithState.test(Machine machine) |
boolean |
Machine.EvictableMemberPredicate.test(Machine machine) |
boolean |
Machine.ActiveMemberPredicate.test(Machine machine) |
boolean |
Machine.AllocatedMachinePredicate.test(Machine machine) |
boolean |
Machine.StartedMachinePredicate.test(Machine machine) |
| Modifier and Type | Method and Description |
|---|---|
static List<Machine> |
Machine.sort(Collection<Machine> machines,
Comparator<Machine> comparator)
Sorts a collection of
Machines according to the order prescribed
by a certain Comparator. |
static List<Machine> |
Machine.sort(Collection<Machine> machines,
Comparator<Machine> comparator)
Sorts a collection of
Machines according to the order prescribed
by a certain Comparator. |
| Constructor and Description |
|---|
MachinePool(List<? extends Machine> machines,
org.joda.time.DateTime timestamp)
Constructs a new
MachinePool snapshot. |
Copyright © 2011–2017 Elastisys. All rights reserved.