Ejemplo n.º 1
0
 /**
  * This method shuts down this service. It unregisters the service, stops receiving service
  * events, and calls the superclass shutdown() method to finish the shutdown process.
  *
  * @return void
  */
 @Override
 public void shutdown(RequestMonitor requestMonitor) {
   getSession().removeServiceEventListener(this);
   fFetchCPUInfoCache.reset();
   fLoadInfoRequestCache.clear();
   unregister();
   super.shutdown(requestMonitor);
 }
Ejemplo n.º 2
0
 /* (non-Javadoc)
  * @see org.eclipse.cdt.dsf.service.AbstractDsfService#initialize(org.eclipse.cdt.dsf.concurrent.RequestMonitor)
  */
 @Override
 public void initialize(final RequestMonitor rm) {
   super.initialize(
       new ImmediateRequestMonitor(rm) {
         @Override
         protected void handleSuccess() {
           doInitialize(rm);
         }
       });
 }
Ejemplo n.º 3
0
 /**
  * This method initializes this service.
  *
  * @param requestMonitor The request monitor indicating the operation is finished
  */
 @Override
 public void initialize(final RequestMonitor requestMonitor) {
   super.initialize(
       new RequestMonitor(ImmediateExecutor.getInstance(), requestMonitor) {
         @Override
         protected void handleSuccess() {
           doInitialize(requestMonitor);
         }
       });
 }
 @Override
 public void initialize(RequestMonitor rm) {
   super.initialize(
       new RequestMonitor(getExecutor(), rm) {
         @Override
         protected void handleSuccess() {
           register(new String[0], new Hashtable<String, String>());
           super.handleSuccess();
         }
       });
 }
Ejemplo n.º 5
0
 /* (non-Javadoc)
  * @see org.eclipse.cdt.dsf.service.AbstractDsfService#shutdown(org.eclipse.cdt.dsf.concurrent.RequestMonitor)
  */
 @Override
 public void shutdown(RequestMonitor rm) {
   unregister();
   //        getSession().removeServiceEventListener(this);
   super.shutdown(rm);
 }
 @Override
 public void shutdown(RequestMonitor rm) {
   unregister();
   super.shutdown(rm);
 }