@Override
  public void startup() {
    if (!enabled) return;

    OLogManager.instance()
        .info(
            this,
            "Installing Script interpreter. WARN: clients can execute any kind of code into the server.");

    // REGISTER THE SECURE COMMAND SCRIPT
    OCommandManager.instance().registerExecutor(OCommandScript.class, OCommandExecutorScript.class);
  }
  @Override
  public void shutdown() {
    if (!enabled) return;

    OCommandManager.instance().unregisterExecutor(OCommandScript.class);
  }
Ejemplo n.º 3
0
 public OGremlinHelper() {
   OCommandManager.instance().registerRequester("gremlin", OCommandGremlin.class);
   OCommandManager.instance()
       .registerExecutor(OCommandGremlin.class, OCommandGremlinExecutor.class);
   timeout = OGlobalConfiguration.STORAGE_LOCK_TIMEOUT.getValueAsLong();
 }