Tabnine Logo
RequestHandler.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
scouter.agent.netio.request.anotation.RequestHandler
constructor

Best Java code snippets using scouter.agent.netio.request.anotation.RequestHandler.<init> (Showing top 20 results out of 315)

origin: scouter-project/scouter

@RequestHandler(RequestCmd.OBJECT_RESET_CACHE)
public Pack getAgentCacheReseto(Pack param) {
  DataProxy.reset();
  return param;
}

origin: scouter-project/scouter

@RequestHandler(PSTACK_ON)
public Pack turnOn(Pack param) {
  MapPack p = (MapPack) param;
  long time = p.getLong("time");
  if (time <= 0) {
    MakeStack.pstack_requested = 0;
  } else {
    MakeStack.pstack_requested = System.currentTimeMillis() + time;
  }
  return param;
}
public static void main(String[] args) throws IOException {
origin: scouter-project/scouter

@RequestHandler(PSTACK_ON)
public Pack turnOn(Pack param) {
  MapPack p = (MapPack) param;
  long time = p.getLong("time");
  if (time <= 0) {
    MakeStack.pstack_requested = 0;
  } else {
    MakeStack.pstack_requested = System.currentTimeMillis() + time;
  }
  return param;
}
public static void main(String[] args) throws IOException {
origin: scouter-project/scouter

@RequestHandler(RequestCmd.OBJECT_HEAPHISTO)
public Pack heaphisto(Pack param) {
  try {
    return ToolsMainFactory.heaphisto(param);
  } catch (Throwable e) {
    e.printStackTrace();
  }
  return null;
}
origin: scouter-project/scouter

@RequestHandler(RequestCmd.OBJECT_HEAPHISTO)
public Pack heaphisto(Pack param) {
  try {
    return ToolsMainFactory.heaphisto(param);
  } catch (Throwable e) {
    e.printStackTrace();
  }
  return null;
}
origin: scouter-project/scouter

@RequestHandler(RequestCmd.OBJECT_RESET_CACHE)
public Pack getAgentCacheReseto(Pack param) {
  DataProxy.reset();
  return param;
}

origin: scouter-project/scouter

@RequestHandler(RequestCmd.OBJECT_SYSTEM_GC)
public Pack systemGc(Pack param) {
  MapPack m = new MapPack();
  System.gc();
  Logger.println("A127", RequestCmd.OBJECT_SYSTEM_GC);
  return m;
}
origin: scouter-project/scouter

@RequestHandler(RequestCmd.OBJECT_SYSTEM_GC)
public Pack systemGc(Pack param) {
  MapPack m = new MapPack();
  System.gc();
  Logger.println("A127", RequestCmd.OBJECT_SYSTEM_GC);
  return m;
}
origin: scouter-project/scouter

@RequestHandler(TRIGGER_THREAD_DUMPS_FROM_CONDITIONS)
public Pack triggerThreadDumpsFromConditions(Pack param) {
  MapPack mpack = (MapPack) param;
  DumpOnCpuExceedanceWorker.getInstance().add(mpack.getText(TRIGGER_DUMP_REASON));
  return null;
}
origin: scouter-project/scouter

@RequestHandler(RequestCmd.OBJECT_INFO)
public Pack getAgentInfo(Pack param) {
  MapPack p = new MapPack();
  p.put("objHash", conf.getObjHash());
  p.put("objName", conf.getObjName());
  p.put("java.version", System.getProperty("java.version"));
  p.put("os.name", System.getProperty("os.name"));
  p.put("user.home", System.getProperty("user.home"));
  p.put("work.dir", new File(".").getAbsolutePath());
  return p;
}
origin: scouter-project/scouter

@RequestHandler(RequestCmd.CONFIGURE_DESC)
public Pack getConfigureDesc(Pack param) {
  StringKeyLinkedMap<String> descMap = Configure.getInstance().getConfigureDesc();
  MapPack pack = new MapPack();
  Enumeration<StringKeyLinkedEntry<String>> entries = descMap.entries();
  while (entries.hasMoreElements()) {
    StringKeyLinkedEntry<String> entry = entries.nextElement();
    pack.put(entry.getKey(), entry.getValue());
  }
  return pack;
}
origin: scouter-project/scouter

@RequestHandler(RequestCmd.CONFIGURE_DESC)
public Pack getConfigureDesc(Pack param) {
  StringKeyLinkedMap<String> descMap = Configure.getInstance().getConfigureDesc();
  MapPack pack = new MapPack();
  Enumeration<StringKeyLinkedEntry<String>> entries = descMap.entries();
  while (entries.hasMoreElements()) {
    StringKeyLinkedEntry<String> entry = entries.nextElement();
    pack.put(entry.getKey(), entry.getValue());
  }
  return pack;
}
origin: scouter-project/scouter

  @RequestHandler(RequestCmd.CONFIGURE_VALUE_TYPE)
  public Pack getConfigureValueType(Pack param) {
    StringKeyLinkedMap<ValueType> valueTypeMap = Configure.getInstance().getConfigureValueType();
    MapPack pack = new MapPack();
    Enumeration<StringKeyLinkedEntry<ValueType>> entries = valueTypeMap.entries();
    while (entries.hasMoreElements()) {
      StringKeyLinkedEntry<ValueType> entry = entries.nextElement();
      pack.put(entry.getKey(), entry.getValue().getType());
    }
    return pack;
  }
}
origin: scouter-project/scouter

  @RequestHandler(RequestCmd.CONFIGURE_VALUE_TYPE)
  public Pack getConfigureValueType(Pack param) {
    StringKeyLinkedMap<ValueType> valueTypeMap = Configure.getInstance().getConfigureValueType();
    MapPack pack = new MapPack();
    Enumeration<StringKeyLinkedEntry<ValueType>> entries = valueTypeMap.entries();
    while (entries.hasMoreElements()) {
      StringKeyLinkedEntry<ValueType> entry = entries.nextElement();
      pack.put(entry.getKey(), entry.getValue().getType());
    }
    return pack;
  }
}
origin: scouter-project/scouter

@RequestHandler(RequestCmd.SET_CONFIGURE_WAS)
public Pack setAgentConfigure(Pack param) {
  final String setConfig = ((MapPack) param).getText("setConfig");
  boolean success = Configure.getInstance().saveText(setConfig);
  if (success) {
    Configure.getInstance().reload(true);
  }
  MapPack p = new MapPack();
  p.put("result", String.valueOf(success));
  return p;
}

origin: scouter-project/scouter

@RequestHandler(RequestCmd.GET_CONFIGURE_WAS)
public Pack getAgentConfigure(Pack param) {
  MapPack p = new MapPack();
  
  p.put("configKey", Configure.getInstance().getKeyValueInfo().getList("key"));
  
  String config = Configure.getInstance().loadText();
  if (config == null) {
    //config = getEmptyConfiguration();
    config = "";
  }
  p.put("agentConfig", config);
  return p;
}
origin: scouter-project/scouter

@RequestHandler(RequestCmd.GET_CONFIGURE_WAS)
public Pack getAgentConfigure(Pack param) {
  MapPack p = new MapPack();
  
  p.put("configKey", Configure.getInstance().getKeyValueInfo().getList("key"));
  
  String config = Configure.getInstance().loadText();
  if (config == null) {
    //config = getEmptyConfiguration();
    config = "";
  }
  p.put("agentConfig", config);
  return p;
}
origin: scouter-project/scouter

@RequestHandler(RequestCmd.LIST_CONFIGURE_WAS)
public Pack listConfigure(Pack param) {
  MapValue m = Configure.getInstance().getKeyValueInfo();
  MapPack pack = new MapPack();
  pack.put("key", m.getList("key"));
  pack.put("value", m.getList("value"));
  pack.put("default", m.getList("default"));
  return pack;
}
origin: scouter-project/scouter

@RequestHandler(RequestCmd.LIST_CONFIGURE_WAS)
public Pack listConfigure(Pack param) {
  MapValue m = Configure.getInstance().getKeyValueInfo();
  MapPack pack = new MapPack();
  pack.put("key", m.getList("key"));
  pack.put("value", m.getList("value"));
  pack.put("default", m.getList("default"));
  return pack;
}

origin: scouter-project/scouter

@RequestHandler(RequestCmd.LIST_CONFIGURE_WAS)
public Pack listConfigure(Pack param) {
  MapValue m = Configure.getInstance().getKeyValueInfo();
  MapPack pack = new MapPack();
  pack.put("key", m.getList("key"));
  pack.put("value", m.getList("value"));
  pack.put("default", m.getList("default"));
  return pack;
}
scouter.agent.netio.request.anotationRequestHandler<init>

Popular methods of RequestHandler

  • value

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
  • getSharedPreferences (Context)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now