Package org.apache.aurora.gen

Examples of org.apache.aurora.gen.MaintenanceMode


      }
    };
  }

  private Optional<Veto> getMaintenanceVeto(String slaveHost) {
    MaintenanceMode mode = maintenance.getMode(slaveHost);
    return VETO_MODES.contains(mode)
        ? Optional.of(ConstraintFilter.maintenanceVeto(mode.toString().toLowerCase()))
        : NO_VETO;
  }
View Full Code Here


     * @param offer Offer to merge.
     * @return attributes from {@code offer} and the existing (or default) maintenance mode.
     */
    public static IHostAttributes mergeOffer(AttributeStore store, Protos.Offer offer) {
      IHostAttributes fromOffer = Conversions.getAttributes(offer);
      MaintenanceMode mode =
          store.getHostAttributes(fromOffer.getHost()).transform(GET_MODE).or(MaintenanceMode.NONE);
      return IHostAttributes.build(fromOffer.newBuilder().setMode(mode));
    }
View Full Code Here

TOP

Related Classes of org.apache.aurora.gen.MaintenanceMode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.