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