Ejemplo n.º 1
0
 @Override
 public void flushCache(IDMContext context) {
   // Although the CPUInfo does not change,
   // this allows us to have a way to forcibly clear the cache.
   // We would need to call this method from the UI somehow.
   fFetchCPUInfoCache.reset(context);
 }
Ejemplo n.º 2
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);
 }