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

Details

    • Sub-task
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Out of Date
    • None
    • None
    • Test Suite
    • None

    Description

      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;
      }
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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