示例#1
0
  @Override
  public void begin(HashMap<String, CIArguments> args) {
    this.startTimeInMillis = System.currentTimeMillis();

    addShutdownHooks();

    initIO(args.get("--io"));
    initMessageProviders();
    initConnections();

    configureArguments(args.get("--general"));

    messageHandler = new ControllerMessageHandler(this);
    messageHandler.start();

    setStatus("Running!\n");

    log(LogCodex.encodeLog(LogType.MESSAGE, initMessages));
  }
示例#2
0
 @Override
 public void processInformationRequest(Message request, ConnectionHandler conn) {
   messageHandler.addMessage(request, conn);
 }