Class StatusToMachineState
- java.lang.Object
-
- com.elastisys.scale.cloudpool.openstack.functions.StatusToMachineState
-
- All Implemented Interfaces:
java.util.function.Function<org.openstack4j.model.compute.Server.Status,MachineState>
public class StatusToMachineState extends java.lang.Object implements java.util.function.Function<org.openstack4j.model.compute.Server.Status,MachineState>
AFunctionthat takes aServerstatus and converts it to the correspondingMachineState. For additional details refer to the OpenStack documentation
-
-
Constructor Summary
Constructors Constructor Description StatusToMachineState()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MachineStateapply(org.openstack4j.model.compute.Server.Status state)
-
-
-
Method Detail
-
apply
public MachineState apply(org.openstack4j.model.compute.Server.Status state)
- Specified by:
applyin interfacejava.util.function.Function<org.openstack4j.model.compute.Server.Status,MachineState>
-
-