int keepAliveOTISeconds = Integer.parseInt(context.getInitParameter(WebConstants.PROPERTY_KEEPALIVE_OTI));
this.checkRegistrationIntervalSeconds = Integer.parseInt(context
.getInitParameter(WebConstants.PROPERTY_CHECK_REGRISTRATION_INTERVAL));
if (scHost == null) {
throw new SCMPValidatorException("Host must be set.");
}
ValidatorUtility.validateInt(Constants.MIN_PORT_VALUE, scPort, Constants.MAX_PORT_VALUE, SCMPError.HV_WRONG_PORTNR);
ValidatorUtility
.validateInt(Constants.MIN_PORT_VALUE, this.tomcatPort, Constants.MAX_PORT_VALUE, SCMPError.HV_WRONG_PORTNR);
if (scPort == this.tomcatPort) {
throw new SCMPValidatorException("SC port and tomcat port must not be the same.");
}
// init the requester to communicate to SC
RemoteNodeConfiguration remoteNodeConf = new RemoteNodeConfiguration(remotNodeName, scHost, scPort,
ConnectionType.NETTY_HTTP.getValue(), keepAliveIntervalToSCSeconds, checkRegistrationIntervalSeconds, 1);
this.requester = new SCRequester(remoteNodeConf, keepAliveOTISeconds * Constants.SEC_TO_MILLISEC_FACTOR);