@Override public Container recoverContainer(int port, LocalAssignment assignment, LocalState state) throws IOException { return new BasicContainer(ContainerType.RECOVER_FULL, _conf, _supervisorId, _supervisorPort, port, assignment, _resourceIsolationManager, state, null, metricsRegistry, containerMemoryTracker); }
@Override public Killable recoverContainer(String workerId, LocalState localState) throws IOException { return new BasicContainer(ContainerType.RECOVER_PARTIAL, _conf, _supervisorId, _supervisorPort, -1, null, _resourceIsolationManager, localState, workerId, metricsRegistry, containerMemoryTracker); } }
@Override public Container launchContainer(int port, LocalAssignment assignment, LocalState state) throws IOException { Container container = new BasicContainer(ContainerType.LAUNCH, _conf, _supervisorId, _supervisorPort, port, assignment, _resourceIsolationManager, state, null, metricsRegistry, containerMemoryTracker); container.setup(); container.launch(); return container; }
@Override public Container recoverContainer(int port, LocalAssignment assignment, LocalState state) throws IOException { return new BasicContainer(ContainerType.RECOVER_FULL, _conf, _supervisorId, port, assignment, state, null); }
@Override public Killable recoverContainer(String workerId, LocalState localState) throws IOException { return new BasicContainer(ContainerType.RECOVER_PARTIAL, _conf, _supervisorId, -1, null, localState, workerId); } }
@Override public Container launchContainer(int port, LocalAssignment assignment, LocalState state) throws IOException { Container container = new BasicContainer(ContainerType.LAUNCH, _conf, _supervisorId, port, assignment, state, null); container.setup(); container.launch(); return container; }