VacuumdConfigFactory.getTriggers
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.opennms.netmgt.config.VacuumdConfigFactory.getTriggers (Showing top 2 results out of 315)

origin: OpenNMS/opennms

/**
 * Returns a Trigger with a name matching the string parameter
 *
 * @param triggerName a {@link java.lang.String} object.
 * @return a {@link org.opennms.netmgt.config.vacuumd.Trigger} object.
 */
public synchronized Trigger getTrigger(String triggerName) {
  for (Trigger trig : getTriggers()) {
    if (trig.getName().equals(triggerName)) {
      return trig;
    }
  }
  return null;
}

origin: OpenNMS/opennms

private void initializeDataSources() throws IOException, ClassNotFoundException, PropertyVetoException, SQLException {
  for (Trigger trigger : getVacuumdConfig().getTriggers()) {
    DataSourceFactory.init(trigger.getDataSource());
  }
  for (Action action : getVacuumdConfig().getActions()) {
    DataSourceFactory.init(action.getDataSource());
  }
}
org.opennms.netmgt.configVacuumdConfigFactorygetTriggers

Javadoc

Returns a Collection of triggers defined in the config

Popular methods of VacuumdConfigFactory

  • getActions
    Returns a Collection of actions defined in the config
  • getAutomations
    Returns a Collection of automations defined in the config
  • init
    Load the config from the default config file and create the singleton instance of this factory.
  • <init>
    Constructor for VacuumdConfigFactory. Calling reload() on a instance created with method will have
  • getAction
    Returns an Action with a name matching the string parmater
  • getActionEvent
    getActionEvent
  • getActionEvents
    getActionEvents
  • getAutoEvent
    Returns the AutoEvent associated with the auto-event-name
  • getAutoEvents
    Returns a Collection of named events to that may have been configured to be sent after an automation
  • getInstance
    Return the singleton instance of this factory.
  • getPeriod
    getPeriod
  • getStatements
    getStatements
  • getPeriod,
  • getStatements,
  • getTrigger,
  • reload,
  • setInstance

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)