private void checkIfRegistered(TriggerInformation triggerInformation)
      throws TriggerManagementException {
    String triggerName = triggerInformation.getTriggerName();
    String jarName = triggerInformation.getJarName();
    if (triggerTable.containsTrigger(triggerName)
        && TriggerExecutableManager.getInstance().hasFileUnderLibRoot(jarName)
        && isLocalJarConflicted(triggerInformation)) {
      // same jar name with different md5
      String errorMessage =
          String.format(
              "Failed to registered trigger %s, because existed"
                  + " md5 of jar file for trigger %s is different from the new jar file. ",
              triggerName, triggerName);
      LOGGER.warn(errorMessage);
      throw new TriggerManagementException(errorMessage);
    }
  }
Get all the triggers that matched this Pattern.

@param devicePath PathPattern
@return all the triggers that matched this Pattern
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/trigger/service/TriggerManagementService.java