public TSConnectionInfo convertToTSConnectionInfo() {
    return new TSConnectionInfo(
        getUsername(), getLogInTime(), getConnectionId(), getConnectionType());
  }
ip:port for thrift-based service and client id for mqtt-based service.
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/session/IClientSession.java