public static <H extends ServiceHost & XenonHostInfoProvider>void dumpHost(H host,String referrer) throws Throwable {
  logger.info(String.format("host: %s - %s",host.getId(),host.getPort()));
  for (  Class factory : host.getFactoryServices()) {
    try {
      Operation op=Operation.createGet(UriUtils.buildExpandLinksQueryUri(UriUtils.buildUri(host,factory)));
      Operation result=sendRequestAndWait(host,op,referrer);
      logger.info(String.format("%s: %s: %s",host.getPort(),factory.getSimpleName(),Utils.toJson(false,false,result.getBodyRaw())));
    }
 catch (    Throwable ex) {
      logger.info(String.format("Could not get service: %s",factory.getCanonicalName()));
    }
  }
}

public static < H extends ServiceHost & XenonHostInfoProvider > void dumpHost ( H host , String referrer ) throws Throwable { logger . info ( String . format ( "host: %s - %s" , host . getId ( ) , host . getPort ( ) ) ) ; for ( Class factory : host . getFactoryServices ( ) ) { try { Operation op = Operation . createGet ( UriUtils . buildExpandLinksQueryUri ( UriUtils . buildUri ( host , factory ) ) ) ; Operation result = sendRequestAndWait ( host , op , referrer ) ; logger . info ( String . format ( "%s: %s: %s" , host . getPort ( ) , factory . getSimpleName ( ) , Utils . toJson ( false , false , result . getBodyRaw ( ) ) ) ) ; } catch ( Throwable ex ) { logger . info ( String . format ( "Could not get service: %s" , factory . getCanonicalName ( ) ) ) ; } } }
logs the contents of all factories on a host .
