/** * Shutdown the service. * @return A future that is done when the service has completed its shutdown. */ @ServiceShutdown public IFuture<Void> shutdownService() { return IFuture.DONE; }
/** * Shutdown the service. * @return A future that is done when the service has completed its shutdown. */ @ServiceShutdown public IFuture<Void> shutdownService() { return IFuture.DONE; }
/** * */ @ServiceShutdown public IFuture shutdown() { // System.out.println("shutdown"); return IFuture.DONE; }
/** * Shutdown the service. * @return A future that is done when the service has completed its shutdown. */ @ServiceShutdown public IFuture<Void> shutdownService() { return IFuture.DONE; }
/** * Init the service. */ @ServiceShutdown public void shutdownService() { SwingUtilities.invokeLater(new Runnable() { public void run() { gui.dispose(); } }); // return IFuture.DONE; }
/** * Init the service. */ @ServiceShutdown public void shutdownService() { SwingUtilities.invokeLater(new Runnable() { public void run() { gui.dispose(); } }); // return IFuture.DONE; }
@ServiceShutdown public IFuture<Void> shutdownService()
@ServiceShutdown public IFuture<Void> shutdownService()
@ServiceShutdown public IFuture<Void> shutdownService()
/** * Called when service is shudowned. */ @ServiceShutdown public IFuture<Void> shutdown() { if(subscriptions!=null) { SubscriptionIntermediateFuture<Email>[] subs = subscriptions.keySet().toArray(new SubscriptionIntermediateFuture[subscriptions.size()]); for(int i=0; i<subs.length; i++) { subs[i].terminate(); // removes itself on terminate } } return IFuture.DONE; }
/** * Called when service is shudowned. */ @ServiceShutdown public IFuture<Void> shutdown() { if(subscriptions!=null) { SubscriptionIntermediateFuture<Email>[] subs = subscriptions.keySet().toArray(new SubscriptionIntermediateFuture[subscriptions.size()]); for(int i=0; i<subs.length; i++) { subs[i].terminate(); // removes itself on terminate } } return IFuture.DONE; }
/** * Stop the service. */ @ServiceShutdown public IFuture<Void> shutdown() { // System.out.println("shutdown: "+agent.getAgentName()); final Future<Void> ret = new Future<Void>(); if(panel!=null) { // System.out.println("shutdown1: "+agent.getAgentName()); SwingUtilities.invokeLater(new Runnable() { public void run() { // System.out.println("shutdown2: "+agent.getAgentName()); SGUI.getWindowParent(panel).dispose(); ret.setResult(null); // System.out.println("shutdown3: "+agent.getAgentName()); } }); } else { // System.out.println("shutdown4: "+agent.getAgentName()); ret.setResult(null); } return ret; }
/** * Notify subscribers that monitoring service is terminated. */ @ServiceShutdown public IFuture<Void> shutdown() { Future<Void> ret = new Future<Void>(); if(subscriptions!=null) { for(SubscriptionIntermediateFuture<IMonitoringEvent> sub: subscriptions.keySet()) { sub.setFinishedIfUndone(); } ret.setResult(null); } else { ret.setResult(null); } return ret; }
/** * Notify subscribers that monitoring service is terminated. */ @ServiceShutdown public IFuture<Void> shutdown() { Future<Void> ret = new Future<Void>(); if(subscriptions!=null) { for(SubscriptionIntermediateFuture<IMonitoringEvent> sub: subscriptions.keySet()) { sub.setFinishedIfUndone(); } ret.setResult(null); } else { ret.setResult(null); } return ret; }
/** * Stops the service. */ @ServiceShutdown public IFuture<Void> shutdownService() { final Future<Void> ret = new Future<Void>(); ia.getServiceContainer().searchService(ILibraryService.class, RequiredServiceInfo.SCOPE_PLATFORM) .addResultListener(new ExceptionDelegationResultListener<ILibraryService, Void>(ret) { public void customResultAvailable(ILibraryService ls) { ls.removeLibraryServiceListener(liblistener) .addResultListener(new DelegationResultListener<Void>(ret)); } }); return ret; }
/** * Shutdown the service. * @return A future that is done when the service has completed its shutdown. */ @ServiceShutdown public IFuture<Void> shutdownService() { final Future<Void> ret = new Future<Void>(); if(saveonexit) { saveProperties(true).addResultListener(new DelegationResultListener<Void>(ret)); } else { ret.setResult(null); } return ret; }
/** * Shutdown the service. * @return A future that is done when the service has completed its shutdown. */ @ServiceShutdown public IFuture<Void> shutdownService() { final Future<Void> ret = new Future<Void>(); if(saveonexit) { saveProperties(true).addResultListener(new DelegationResultListener<Void>(ret)); } else { ret.setResult(null); } return ret; }
@ServiceShutdown public IFuture<Void> shutdown()
/** * Shutdown the spaces. */ @ServiceShutdown public IFuture<Void> terminateSpaces() { Future<Void> ret = new Future<Void>(); final IResultListener<Void> lis = new CounterResultListener<Void>(spaces.size(), new DelegationResultListener<Void>(ret)); for(final IExtensionInstance instance: spaces.values()) { instance.terminate().addResultListener( component.getComponentFeature(IExecutionFeature.class).createResultListener(new IResultListener<Void>() { public void resultAvailable(Void result) { lis.resultAvailable(null); } public void exceptionOccurred(Exception exception) { lis.exceptionOccurred(exception); } })); } return ret; }
@ServiceShutdown public void destroy()