Package org.apache.mesos.Protos

Examples of org.apache.mesos.Protos.FrameworkID


    return createOffer(cpus, memory, "slave1", "host1");
  }

  private Offer createOffer(double cpus, double memory, String slave, String host) {
    SlaveID slaveId = SlaveID.newBuilder().setValue(slave).build();
    FrameworkID frameworkId = FrameworkID.newBuilder().setValue("framework1").build();

    Random r = new Random();

    return Offer.newBuilder()
        .setId(OfferID.newBuilder().setValue("offer" + r.nextInt(1000)).build())
View Full Code Here

TOP

Related Classes of org.apache.mesos.Protos.FrameworkID

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.