Beispiel #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);
 }
Beispiel #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);
         }
       });
 }
Beispiel #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();
         }
       });
 }
Beispiel #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);
 }