@Test public void testWorkerComponentWithNullResource() throws IOException { TensorFlowRunJobParameters parameters = new TensorFlowRunJobParameters(); parameters.setWorkerResource(null); TensorFlowWorkerComponent workerComponent = createWorkerComponent(parameters); expectedException.expect(NullPointerException.class); expectedException.expectMessage("Worker resource must not be null"); workerComponent.createComponent(); }
@Override public Component createComponent() throws IOException { return createComponentInternal(); }
TensorFlowWorkerComponent extends AbstractComponent { @Override public Component createComponent() throws IOException { return createComponentInternal(); } }
TensorFlowWorkerComponent extends AbstractComponent { @Override public Component createComponent() throws IOException { return createComponentInternal(); } TensorFlowWorkerComponent(FileSystemOperations fsOperations,
                                   RemoteDirectoryManager remoteDirectoryManager,
                                   TensorFlowRunJobParameters parameters, Role role,
                                   TensorFlowLaunchCommandFactory launchCommandFactory,
                                   Configuration yarnConfig); }
TensorFlowWorkerComponent extends AbstractComponent { @Override public Component createComponent() throws IOException { return createComponentInternal(); } TensorFlowWorkerComponent(FileSystemOperations fsOperations,
                                   RemoteDirectoryManager remoteDirectoryManager,
                                   TensorFlowRunJobParameters parameters, Role role,
                                   TensorFlowLaunchCommandFactory launchCommandFactory,
                                   Configuration yarnConfig); @Override Component createComponent(); }
TensorFlowWorkerComponent extends AbstractComponent { @Override public Component createComponent() throws IOException { return createComponentInternal(); } TensorFlowWorkerComponent(FileSystemOperations fsOperations,
                                   RemoteDirectoryManager remoteDirectoryManager,
                                   TensorFlowRunJobParameters parameters, Role role,
                                   TensorFlowLaunchCommandFactory launchCommandFactory,
                                   Configuration yarnConfig); @Override Component createComponent();  }