List of usage examples for org.apache.hadoop.service Service stop
void stop();
From source file:org.apache.hoya.yarn.service.SequenceService.java
License:Apache License
@Override protected void serviceStop() throws Exception { //stop current service. //this triggers a callback that is caught and ignored Service current = currentService; previousService = current;/*from www. j a va2 s. c om*/ currentService = null; if (current != null) { current.stop(); } }
From source file:org.apache.slider.core.main.ServiceShutdownHook.java
License:Apache License
@Override public void run() { Service service; synchronized (this) { service = serviceRef.get();//from w ww . j a va 2 s .co m serviceRef.clear(); } if (service == null) { return; } try { // Stop the Service service.stop(); } catch (Throwable t) { LOG.info("Error stopping {}: {}", service.getName(), t); } }
From source file:org.apache.slider.server.services.workflow.TestWorkflowCompositeService.java
License:Apache License
@Test public void testSingleChild() throws Throwable { Service parent = startService(new MockService()); parent.stop(); }
From source file:org.apache.slider.server.services.workflow.WorkflowSequenceService.java
License:Apache License
@Override protected void serviceStop() throws Exception { //stop current service. //this triggers a callback that is caught and ignored Service current = activeService; previousService = current;/*from w w w. j a va2s . c om*/ activeService = null; if (current != null) { current.stop(); } }