/**
   * Start up the auditor service.
   *
   * @param args Named Event Sets to Capture to the Log.
   */
  public static void main(String[] args) {

    AmqpConfiguration config =
        AmqpConfiguration.getDefault(
            "AuditorService", new AmqpConnectionParameters("amqp://*****:*****@localhost:5672/"));

    EventManager em = new AmqpEventManager(config);

    em.start();

    new AuditorService(em, args);
  }
예제 #2
0
    public void onStatus(Status status) {

      em.publish(createEventBusRepresentation(status));
    }