コード例 #1
0
 /**
  * This method returns the configured critical service name.
  *
  * @return the name of the configured critical service, or null if none is present
  */
 public synchronized String[] getCriticalServiceIds() {
   CriticalService[] cs = m_config.getNodeOutage().getCriticalService();
   String[] criticalServiceNames = new String[cs.length];
   for (int i = 0; i < cs.length; i++) {
     criticalServiceNames[i] = cs[i].getName();
   }
   return criticalServiceNames;
 }
コード例 #2
0
 /**
  * addPackage
  *
  * @param pkg a {@link org.opennms.netmgt.config.snmpinterfacepoller.Package} object.
  */
 public synchronized void addPackage(Package pkg) {
   m_config.addPackage(pkg);
 }