Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-576 Testsuite tasks (tracking)
  3. WFLY-646

TS: Dynamic way to get ports of various services.

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • Test Suite
    • None

      private int getRecoveryManagerPort() throws IOException {
          /*    /socket-binding-group=standard-sockets/socket-binding=txn-recovery-environment:read-attribute(name=port)  */
          final ModelNode address = new ModelNode();
          address.add("socket-binding-group", "standard-sockets");
          address.add("socket-binding", "txn-recovery-environment");
          final ModelNode operation = new ModelNode();
          operation.get(OP).set(READ_ATTRIBUTE_OPERATION);
          operation.get(OP_ADDR).set(address);
          operation.get("name").set("port");
          try {
              return executeOperation(operation).asInt();
          } catch (MgmtOperationException ignored) { }
          return -1;
      }
      

            Unassigned Unassigned
            ozizka_jira Ondrej Zizka (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Remaining Estimate - 1 day
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified