use of org.apache.myriad.state.MockRMContext in project incubator-myriad by apache.
the class NodeTest method setUp.
@Override
@Before
public void setUp() throws Exception {
super.setUp();
context = new MockRMContext();
context.setDispatcher(TestObjectFactory.getMockDispatcher());
context.setSystemMetricsPublisher(new SystemMetricsPublisher());
nodeOne = TestObjectFactory.getRMNode("localhost-one", 8800, Resource.newInstance(1024, 2));
nodeTwo = TestObjectFactory.getRMNode("localhost-two", 8800, Resource.newInstance(2048, 4));
sNodeOne = new FSSchedulerNode(nodeOne, false);
sNodeTwo = new FSSchedulerNode(nodeTwo, false);
store = new NodeStore();
store.add(sNodeOne);
store.add(sNodeTwo);
containerOne = TestObjectFactory.getRMContainer(nodeOne, context, 1, 2, 1024);
}
Aggregations