예제 #1
0
 /**
  * Used to create a parameter to the HServerLoad constructor so that HServerLoad can provide
  * information about the coprocessors loaded by this regionserver. (HBASE-4070: Improve region
  * server metrics to report loaded coprocessors to master).
  */
 public Set<String> getCoprocessors() {
   Set<String> returnValue = new TreeSet<String>();
   for (CoprocessorEnvironment e : coprocessors) {
     returnValue.add(e.getInstance().getClass().getSimpleName());
   }
   return returnValue;
 }
예제 #2
0
 public void shutdown(CoprocessorEnvironment e) {
   if (e instanceof Environment) {
     if (LOG.isDebugEnabled()) {
       LOG.debug("Stop coprocessor " + e.getInstance().getClass().getName());
     }
     ((Environment) e).shutdown();
   } else {
     LOG.warn("Shutdown called on unknown environment: " + e.getClass().getName());
   }
 }
예제 #3
0
 protected void abortServer(final CoprocessorEnvironment environment, final Throwable e) {
   abortServer(environment.getInstance().getClass().getName(), e);
 }