@Override public InetAddress getDefaultCriticalPathIp() { return pathOutageConfig.getDefaultCriticalPathIp(); } }
@Override public int getQueueSize() { return m_config.getQueueSize(); }
@Override public int getNumThreads() { return m_config.getNumThreads(); }
/** {@inheritDoc} */ @Override public Category getCategoryByLabel(String label) { return CategoryFactory.getInstance().getCategory(label); }
/** * Get a email by name * * @param userID * the user ID of the user to return * @return String the email specified by name * @throws java.io.IOException if any. */ public String getEmail(final String userID) throws IOException { return getContactInfo(userID, ContactType.email.toString()); }
@Override public int getCompletionSize() { return m_config.getBatchSize(); }
@Override public int getCompletionIntervalMs() { return m_config.getBatchIntervalMs(); }
/** * Reload the config from the default config file * * @exception java.io.IOException * Thrown if the specified config file cannot be read * @throws java.io.IOException if any. */ public static synchronized void reload() throws IOException { if (m_singleton == null) throw new IllegalStateException("The factory has not been initialized"); m_singleton.reload(); }
private boolean isResourceTypesConfigChanged() { Date current = m_resourceTypesDao.getLastUpdate(); if (current.after(m_lastUpdatedResourceTypesConfig)) { m_lastUpdatedResourceTypesConfig = current; return true; } return false; }
/** * Get a text pin * * @param userID * the user ID of the user to return * @return String the text pin * @throws java.io.IOException if any. */ public String getTextPin(final String userID) throws IOException { return getContactInfo(userID, ContactType.textPage.toString()); }
@Override public int getNumConsumerThreads() { return m_config.getNumThreads(); }
@Override public int getQueueSize() { return m_config.getQueueSize(); }
@Override public int getCompletionSize() { return m_config.getBatchSize(); }
@Override public int getCompletionIntervalMs() { return m_config.getBatchIntervalMs(); }
/** * Get a text pin * * @return String the text pin * @param user a {@link org.opennms.netmgt.config.users.User} object. * @throws java.io.IOException if any. */ public String getTextPin(final User user) throws IOException { return getContactInfo(user, ContactType.textPage.toString()); }
@Override public int getNumConsumerThreads() { return m_config.getNumThreads(); }
/** * Get a Text Page Service Provider * * @param userID * the user ID of the user to return * @return String the text page service provider. * @throws java.io.IOException if any. */ public String getTextPage(final String userID) throws IOException { return getContactServiceProvider(userID, ContactType.textPage.toString()); }
@Override public int getNumThreads() { return m_config.getNumThreads(); }
/** * Get a home phone number * * @return String the home phone number * @throws java.io.IOException if any. * @param user a {@link org.opennms.netmgt.config.users.User} object. */ public String getHomePhone(final User user) throws IOException { return getContactInfo(user, ContactType.homePhone.toString()); }
/** * Get a work phone number * * @return String the work phone number * @throws java.io.IOException if any. * @param user a {@link org.opennms.netmgt.config.users.User} object. */ public String getWorkPhone(final User user) throws IOException { return getContactInfo(user, ContactType.workPhone.toString()); }