public Builder setConnectionParams(String host, int port, String username, String password) { result.invm = false; result.ycd = new YamcsConnectData(); result.ycd.host = host; result.ycd.port = port; result.ycd.username = username; result.ycd.password = password; return this; }
public static void main(String[] argv) throws Exception { @SuppressWarnings("unused") YamcsSession ysession = YamcsSession.newBuilder().setConnectionParams("aces-test", 5445).build(); }
public YamcsSession build() throws YamcsApiException { result.init(); return result; }
/** * If set to true, the consumers created with this session will automatically acknowledge the * messages. The acknowledge happens on the server before the consumers receive the messages. * * @param preack * @return */ public Builder setPreAcknowledge(boolean preack) { result.preAcknowledge = preack; return this; }
public Builder setConnectionParams(YamcsConnectData ycd) { result.invm = (ycd.host == null); result.ycd = ycd; return this; }
public Builder setConnectionParams(String url) throws URISyntaxException { result.ycd = YamcsConnectData.parse(url); result.invm = (result.ycd.host == null); return this; }