String duccBrokerProtocol;
String duccBrokerHostname;
String duccBrokerPort;
String duccBrokerUrlDecoration;
if ((duccBrokerProtocol = System.getProperty("ducc.broker.protocol")) == null) {
throw new DuccConfigurationException(
"Ducc Configuration Exception. Please add ducc.broker.protocol property to ducc.propeties");
} else {
int pos;
// we dont expect "://" in the protocol. Strip it.
if ((pos = duccBrokerProtocol.indexOf(":")) > -1) {
duccBrokerProtocol = duccBrokerProtocol.substring(0, pos);
}
}
if ((duccBrokerHostname = System.getProperty("ducc.broker.hostname")) == null) {
throw new DuccConfigurationException(
"Ducc Configuration Exception. Please add ducc.broker.hostname property to ducc.propeties");
}
if ((duccBrokerPort = System.getProperty("ducc.broker.port")) == null) {
throw new DuccConfigurationException(
"Ducc Configuration Exception. Please add ducc.broker.port property to ducc.propeties");
}
// broker url decoration (params) is optional
duccBrokerUrlDecoration = System.getProperty("ducc.broker.url.decoration");
if (duccBrokerUrlDecoration != null && duccBrokerUrlDecoration.startsWith("?")) {