public ConnectionRole getConnectionRole() {
    return connectionRole;
  }
this is the connection instance of one single node.
integration-test/src/main/java/org/apache/iotdb/itbase/runtime/NodeConnection.java