Class 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>
    A Function that takes a Server status and converts it to the corresponding MachineState.

    For additional details refer to the OpenStack documentation

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      MachineState apply​(org.openstack4j.model.compute.Server.Status state)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • StatusToMachineState

        public StatusToMachineState()
    • Method Detail

      • apply

        public MachineState apply​(org.openstack4j.model.compute.Server.Status state)
        Specified by:
        apply in interface java.util.function.Function<org.openstack4j.model.compute.Server.Status,​MachineState>