Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 public static void main(String[] argv) throws Exception {
   @SuppressWarnings("unused")
   YamcsSession ysession =
       YamcsSession.newBuilder().setConnectionParams("aces-test", 5445).build();
 }
Exemplo n.º 3
0
 public YamcsSession build() throws YamcsApiException {
   result.init();
   return result;
 }
Exemplo n.º 4
0
 /**
  * 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;
 }
Exemplo n.º 5
0
 public Builder setConnectionParams(YamcsConnectData ycd) {
   result.invm = (ycd.host == null);
   result.ycd = ycd;
   return this;
 }
Exemplo n.º 6
0
 public Builder setConnectionParams(String url) throws URISyntaxException {
   result.ycd = YamcsConnectData.parse(url);
   result.invm = (result.ycd.host == null);
   return this;
 }