void setNodeRegistrationResult(NodeParameters parameters, Exception exception) { CcConnection ccc = getPendingNodeRegistration(parameters); ccc.setNodeRegistrationResult(parameters, exception); }
@Override public String toString() { return getName() + ": [" + ncs.getId() + "[" + task.getJoblet().getJobId() + ":" + task.getTaskAttemptId() + "]"; } }
@Override public void perform(CcId ccId, IControllerService cs) { NodeControllerService ncs = (NodeControllerService) cs; ncs.setNodeStatus(status); }
@Override public Object getApplicationContext() { return ncs.getApplicationContext(); } }
NCShutdownHook(NodeControllerService nodeControllerService) { super("ShutdownHook-" + nodeControllerService.getId()); this.nodeControllerService = nodeControllerService; }
public IClusterController getClusterController(CcId ccId) { return getCcConnection(ccId).getClusterControllerService(); }
public NodeParameters getNodeParameters(CcId ccId) { return getCcConnection(ccId).getNodeParameters(); }
@Override public Configuration getConfiguration(final LoggerContext loggerContext, final String name, final URI configLocation) { ConfigurationBuilder<BuiltConfiguration> builder = newConfigurationBuilder(); return createConfiguration(builder); }
public void removeTask(Task task) { taskMap.remove(task.getTaskAttemptId()); if (cleanupPending && taskMap.isEmpty()) { performCleanup(); } }
@Override public byte[] getJobParameter(byte[] name, int start, int length) throws HyracksException { return ncs.createOrGetJobParameterByteStore(joblet.getJobId()).getParameterValue(name, start, length); }
@Override public ByteBuffer allocateFrame() throws HyracksDataException { return joblet.allocateFrame(); }
@Override public ByteBuffer reallocateFrame(ByteBuffer usedBuffer, int newSizeInBytes, boolean copyOldData) throws HyracksDataException { return joblet.reallocateFrame(usedBuffer, newSizeInBytes, copyOldData); }
@Override public int getInitialFrameSize() { return joblet.getFrameSize(); }
@Override public void deallocateFrames(int bytes) { joblet.deallocateFrames(bytes); }
@Override public IIOManager getIoManager() { return joblet.getIOManager(); }
public NodeControllerService(NCConfig config) throws Exception { this(config, getApplication(config)); }
@Override public IResultPartitionManager getResultPartitionManager() { return ncs.getResultPartitionManager(); }
public IClusterController getPrimaryClusterController() { return getClusterController(primaryCcId); }
public NCAppRuntimeContext getAppRuntimeContext() { return (NCAppRuntimeContext) ExecutionTestUtil.integrationUtil.ncs[0].getApplicationContext(); }
@Override public ByteBuffer allocateFrame(int bytes) throws HyracksDataException { return joblet.allocateFrame(bytes); }