private void disposeService(){ myService.dispose(); }
private void disposeService(){ myService.dispose(); }
@Override protected void removeService(ChannelBindingConfig cbc) { //Called whenever a ChannelBindingConfig is unregistered if(cbc == null){ return; } ManagedService ms = myManagerMap.remove(cbc); if(ms == null){ return; } ms.dispose(); } }
@Override protected void removeService(SceneSpec t) { if(t == null){ return; } ManagedService ms = myManagerMap.remove(t); if(ms == null){ return; } ms.dispose(); } }
@Override protected void removeService(SceneSpec t) { if(t == null){ return; } ManagedService ms = myManagerMap.remove(t); if(ms == null){ return; } ms.dispose(); } }
@Override protected void removeService(ChannelBindingConfig cbc) { //Called whenever a ChannelBindingConfig is unregistered if(cbc == null){ return; } ManagedService ms = myManagerMap.remove(cbc); if(ms == null){ return; } ms.dispose(); } }
public static void clearRobots() { BlendingRobotServiceContext.clearRobots(); for (ManagedService connectionConfigSvc : registeredConnectionConfigServices) { connectionConfigSvc.dispose(); } registeredConnectionConfigServices.clear(); }
public static void clearRobots() { BlendingRobotServiceContext.clearRobots(); for (ManagedService connectionConfigSvc : registeredConnectionConfigServices) { connectionConfigSvc.dispose(); } registeredConnectionConfigServices.clear(); }
public static void disconnect() { for(ManagedService service: theServices) { // try { // service.stop(); // } catch(Exception ex) { // theLogger.warning("Error stopping service."); // } service.dispose(); } for(OSGiComponent component: theComponents) { // try { // component.stop(); // } catch(Exception ex) { // theLogger.warning("Error stopping service."); // } component.dispose(); } for(ServiceRegistration reg: theRegs) { reg.unregister(); } theServices = new HashSet<ManagedService>(); theComponents = new HashSet<OSGiComponent>(); theRegs = new HashSet<ServiceRegistration>(); }
@Override protected void cleanupService(Robot service) { try{ service.disconnect(); for(ManagedService s : myServoControllerServices){ try{ s.dispose(); }catch(Throwable t){ theLogger.log(Level.WARNING, "Error disposing controller service.", t); } } }catch(Exception ex){} super.cleanupService(service); }