@Test public void testDefaultPassiveServiceName() throws Exception { Service svc = apmc.getPackages().get(0).getEffectiveService(); assertEquals("Passive service name should default to the service name if not set", svc.getName(), svc.getPassiveServiceName()); String passiveServiceName = "Not" + svc.getName(); svc.setPassiveServiceName(passiveServiceName); assertEquals("Passive service name should not return the service name if set", passiveServiceName, svc.getPassiveServiceName()); }
@XmlTransient public List<Package> getPackages() { updateServiceTemplates(); return m_packages; }
AccessPointMonitorConfig implements Serializable, Comparable<AccessPointMonitorConfig> { @XmlTransient public List<Package> getPackages() { updateServiceTemplates(); return m_packages; } }
AccessPointMonitorConfig implements Serializable, Comparable<AccessPointMonitorConfig> { @XmlTransient public List<Package> getPackages() { updateServiceTemplates(); return m_packages; } AccessPointMonitorConfig(); }
AccessPointMonitorConfig implements Serializable, Comparable<AccessPointMonitorConfig> { @XmlTransient public List<Package> getPackages() { updateServiceTemplates(); return m_packages; } AccessPointMonitorConfig(); @XmlTransient int getThreads(); void setThreads(int threads); @XmlTransient long getPackageScanInterval(); void setPackageScanInterval(long packageScanInterval); @XmlTransient List<ServiceTemplate> getServiceTemplates(); void setServiceTemplates(List<ServiceTemplate> serviceTemplates); void addServiceTemplate(ServiceTemplate svcTemplate); @XmlTransient List<Package> getPackages(); void setPackages(List<Package> packages); void addPackage(Package pkg); @XmlTransient List<Monitor> getMonitors(); void setMonitors(List<Monitor> monitors); void addMonitor(Monitor monitor); int compareTo(AccessPointMonitorConfig obj); @Override int hashCode(); @Override boolean equals(Object obj); void afterUnmarshal(Unmarshaller u, Object parent); void updateServiceTemplates(); }
AccessPointMonitorConfig implements Serializable, Comparable<AccessPointMonitorConfig> { @XmlTransient public List<Package> getPackages() { updateServiceTemplates(); return m_packages; } AccessPointMonitorConfig(); @XmlTransient int getThreads(); void setThreads(int threads); @XmlTransient long getPackageScanInterval(); void setPackageScanInterval(long packageScanInterval); @XmlTransient List<ServiceTemplate> getServiceTemplates(); void setServiceTemplates(List<ServiceTemplate> serviceTemplates); void addServiceTemplate(ServiceTemplate svcTemplate); @XmlTransient List<Package> getPackages(); void setPackages(List<Package> packages); void addPackage(Package pkg); @XmlTransient List<Monitor> getMonitors(); void setMonitors(List<Monitor> monitors); void addMonitor(Monitor monitor); int compareTo(AccessPointMonitorConfig obj); @Override int hashCode(); @Override boolean equals(Object obj); void afterUnmarshal(Unmarshaller u, Object parent); void updateServiceTemplates();  }