private void printServiceInstance ( ServiceInstance instance ) { print ( "\nServiceInstance\n-------------------------" ) ; if ( instance == null ) { print ( "null" ) ; return ; } print ( "serviceName: " + instance . getServiceName ( ) ) ; print ( "status: " + instance . getStatus ( ) ) ; print ( "uri: " + instance . getUri ( ) ) ; print ( "address: " + instance . getAddress ( ) ) ; print ( "monitorEnabled: " + instance . isMonitorEnabled ( ) ) ; print ( "metadata:" ) ; Map < String , String > meta = instance . getMetadata ( ) ; for ( Entry < String , String > entry : meta . entrySet ( ) ) { print ( " " + entry . getKey ( ) + " => " + entry . getValue ( ) ) ; } }
Print the ServiceInstance to console .