Class InstanceSchedulerHint


  • public final class InstanceSchedulerHint
    extends java.lang.Object
    • Method Detail

      • additionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> additionalProperties()
        Returns:
        Arbitrary key/value pairs of additional properties to pass to the scheduler.
      • buildNearHostIp

        public java.util.Optional<java.lang.String> buildNearHostIp()
        Returns:
        An IP Address in CIDR form. The instance will be placed on a compute node that is in the same subnet.
      • differentCells

        public java.util.List<java.lang.String> differentCells()
        Returns:
        The names of cells where not to build the instance.
      • differentHosts

        public java.util.List<java.lang.String> differentHosts()
        Returns:
        A list of instance UUIDs. The instance will be scheduled on a different host than all other instances.
      • group

        public java.util.Optional<java.lang.String> group()
        Returns:
        A UUID of a Server Group. The instance will be placed into that group.
      • queries

        public java.util.List<java.lang.String> queries()
        Returns:
        A conditional query that a compute node must pass in order to host an instance. The query must use the `JsonFilter` syntax which is described [here](https://docs.openstack.org/nova/latest/admin/configuration/schedulers.html#jsonfilter). At this time, only simple queries are supported. Compound queries using `and`, `or`, or `not` are not supported. An example of a simple query is:
      • sameHosts

        public java.util.List<java.lang.String> sameHosts()
        Returns:
        A list of instance UUIDs. The instance will be scheduled on the same host of those specified.
      • targetCell

        public java.util.Optional<java.lang.String> targetCell()
        Returns:
        The name of a cell to host the instance.