/** * This method is used to transform a correlation event configuration * instance into a correlation event instance. This is used when the * incoming event does not have any correlation information and the * information from the configuration object is copied. * * @param src * The configuration source to transform. * * @return The transformed correlation information. * */ private org.opennms.netmgt.xml.event.Correlation transform(org.opennms.netmgt.xml.eventconf.Correlation src) { org.opennms.netmgt.xml.event.Correlation dest = new org.opennms.netmgt.xml.event.Correlation(); dest.setCuei(src.getCueis()); dest.setCmin(src.getCmin()); dest.setCmax(src.getCmax()); dest.setCtime(src.getCtime()); dest.setState(src.getState().toString()); dest.setPath(src.getPath().toString()); return dest; }
/** * This method is used to transform a correlation event configuration * instance into a correlation event instance. This is used when the * incoming event does not have any correlation information and the * information from the configuration object is copied. * * @param src * The configuration source to transform. * * @return The transformed correlation information. * */ private org.opennms.netmgt.xml.event.Correlation transform(org.opennms.netmgt.xml.eventconf.Correlation src) { org.opennms.netmgt.xml.event.Correlation dest = new org.opennms.netmgt.xml.event.Correlation(); dest.setCuei(src.getCueis()); dest.setCmin(src.getCmin()); dest.setCmax(src.getCmax()); dest.setCtime(src.getCtime()); dest.setState(src.getState().toString()); dest.setPath(src.getPath().toString()); return dest; }