Search in sources :

Example 11 with ServiceResourceProfile

use of org.apache.myriad.scheduler.ServiceResourceProfile in project incubator-myriad by apache.

the class ByteBufferSupportTest method setUp.

@Before
public void setUp() throws Exception {
    task = new NodeTask(new ServiceResourceProfile("profile", 0.1, 1024.0, new TreeMap<String, Long>()), new LikeConstraint("hostname", "host-[0-9]*.example.com"));
    task.setHostname("localhost");
    task.setTaskPrefix("prefix");
    task.setExecutorInfo(getExecutorInfo());
}
Also used : ServiceResourceProfile(org.apache.myriad.scheduler.ServiceResourceProfile) NodeTask(org.apache.myriad.state.NodeTask) LikeConstraint(org.apache.myriad.scheduler.constraints.LikeConstraint) Before(org.junit.Before)

Aggregations

ServiceResourceProfile (org.apache.myriad.scheduler.ServiceResourceProfile)11 Protos (org.apache.mesos.Protos)5 HashMap (java.util.HashMap)4 OfferBuilder (org.apache.myriad.scheduler.offer.OfferBuilder)4 Test (org.junit.Test)4 Map (java.util.Map)3 MyriadConfiguration (org.apache.myriad.configuration.MyriadConfiguration)3 ExtendedResourceProfile (org.apache.myriad.scheduler.ExtendedResourceProfile)3 NMProfile (org.apache.myriad.scheduler.NMProfile)3 ServiceProfileManager (org.apache.myriad.scheduler.ServiceProfileManager)3 LikeConstraint (org.apache.myriad.scheduler.constraints.LikeConstraint)3 NodeTask (org.apache.myriad.state.NodeTask)3 TreeMap (java.util.TreeMap)2 Before (org.junit.Before)2 MyriadFileSystemRMStateStore (org.apache.hadoop.yarn.server.resourcemanager.recovery.MyriadFileSystemRMStateStore)1 Offer (org.apache.mesos.Protos.Offer)1 TaskInfo (org.apache.mesos.Protos.TaskInfo)1 SchedulerDriver (org.apache.mesos.SchedulerDriver)1 ServiceConfiguration (org.apache.myriad.configuration.ServiceConfiguration)1 TaskUtils (org.apache.myriad.scheduler.TaskUtils)1