use of org.opendaylight.yang.gen.v1.urn.opendaylight.genius.alivenessmonitor.rev160411.MonitorProfileGetInputBuilder in project genius by opendaylight.
the class AlivenessMonitorUtils method buildMonitorGetProfile.
private static MonitorProfileGetInput buildMonitorGetProfile(long monitorInterval, long monitorWindow, long failureThreshold, EtherTypes protocolType) {
org.opendaylight.yang.gen.v1.urn.opendaylight.genius.alivenessmonitor.rev160411.monitor.profile.get.input.ProfileBuilder profileBuilder = new org.opendaylight.yang.gen.v1.urn.opendaylight.genius.alivenessmonitor.rev160411.monitor.profile.get.input.ProfileBuilder();
profileBuilder.setFailureThreshold(failureThreshold);
profileBuilder.setMonitorInterval(monitorInterval);
profileBuilder.setMonitorWindow(monitorWindow);
profileBuilder.setProtocolType(protocolType);
MonitorProfileGetInputBuilder buildGetProfile = new MonitorProfileGetInputBuilder();
buildGetProfile.setProfile(profileBuilder.build());
return buildGetProfile.build();
}
use of org.opendaylight.yang.gen.v1.urn.opendaylight.genius.alivenessmonitor.rev160411.MonitorProfileGetInputBuilder in project netvirt by opendaylight.
the class AlivenessMonitorUtils method buildMonitorGetProfile.
private static MonitorProfileGetInput buildMonitorGetProfile(long monitorInterval, long monitorWindow, long failureThreshold, EtherTypes protocolType) {
MonitorProfileGetInputBuilder buildGetProfile = new MonitorProfileGetInputBuilder();
org.opendaylight.yang.gen.v1.urn.opendaylight.genius.alivenessmonitor.rev160411.monitor.profile.get.input.ProfileBuilder profileBuilder = new org.opendaylight.yang.gen.v1.urn.opendaylight.genius.alivenessmonitor.rev160411.monitor.profile.get.input.ProfileBuilder();
profileBuilder.setFailureThreshold(failureThreshold).setMonitorInterval(monitorInterval).setMonitorWindow(monitorWindow).setProtocolType(protocolType);
buildGetProfile.setProfile(profileBuilder.build());
return buildGetProfile.build();
}
Aggregations