public Deferred < String > getUidName ( final UniqueIdType type , final byte [ ] uid ) { if ( uid == null ) { throw new IllegalArgumentException ( "Missing UID" ) ; } switch ( type ) { case METRIC : return this . metrics . getNameAsync ( uid ) ; case TAGK : return this . tag_names . getNameAsync ( uid ) ; case TAGV : return this . tag_values . getNameAsync ( uid ) ; default : throw new IllegalArgumentException ( "Unrecognized UID type" ) ; } }
Attempts to find the name for a unique identifier given a type