public void fetchMetadata ( final String uuid , final DataSetMetadataCallback listener ) throws Exception { final DataSetMetadata metadata = clientDataSetManager . getDataSetMetadata ( uuid ) ; if ( metadata != null ) { listener . callback ( metadata ) ; } else if ( dataSetLookupServices != null ) { if ( remoteMetadataMap . containsKey ( uuid ) ) { listener . callback ( remoteMetadataMap . get ( uuid ) ) ; } else { dataSetLookupServices . call ( ( DataSetMetadata result ) -> { if ( result == null ) { listener . notFound ( ) ; } else { remoteMetadataMap . put ( uuid , result ) ; listener . callback ( result ) ; } } , ( message , throwable ) -> { return listener . onError ( new ClientRuntimeError ( throwable ) ) ; } ) . lookupDataSetMetadata ( uuid ) ; } } else { listener . notFound ( ) ; } }
Fetch the metadata instance for the specified data set .