コード例 #1
0
  public void IncomingNewChatStatusUpdateEventHandler(IncomingNewChatStatusUpdate event)
      throws CantSaveEventException {
    // Logger LOG = Logger.getGlobal();
    // LOG.info("EVENT TEST, I GOT AN EVENT:\n"+event);
    try {
      //            this.chatMiddlewareDatabaseDao.saveNewEvent(
      //                    event.getEventType().getCode(),
      //                    event.getSource().getCode(),
      //                    event.getChatId());
      chatMiddlewareMonitorAgent.checkIncomingStatus(event.getChatMetadata());
    } catch (Exception exception) {
      errorManager.reportUnexpectedPluginException(
          Plugins.CHAT_MIDDLEWARE,
          UnexpectedPluginExceptionSeverity.DISABLES_SOME_FUNCTIONALITY_WITHIN_THIS_PLUGIN,
          FermatException.wrapException(exception));
      throw new CantSaveEventException(
          exception, "Saving OutgoingChat event", "Unexpected Exception");
    }

    // LOG.info("CHECK THE DATABASE");
  }