MCPcopy Index your code
hub / github.com/OpenTSDB/opentsdb / getUID

Method getUID

src/core/TSDB.java:675–686  ·  view source on GitHub ↗

Attempts to find the UID matching a given name @param type The type of UID @param name The name to search for @throws IllegalArgumentException if the type is not valid @throws NoSuchUniqueName if the name was not found @since 2.0

(final UniqueIdType type, final String name)

Source from the content-addressed store, hash-verified

673 * @since 2.0
674 */
675 public byte[] getUID(final UniqueIdType type, final String name) {
676 try {
677 return getUIDAsync(type, name).join();
678 } catch (NoSuchUniqueName e) {
679 throw e;
680 } catch (IllegalArgumentException e) {
681 throw e;
682 } catch (Exception e) {
683 LOG.error("Unexpected exception", e);
684 throw new RuntimeException(e);
685 }
686 }
687
688 /**
689 * Attempts to find the UID matching a given name

Callers 15

mainMethod · 0.95
getUIDMetricMethod · 0.45
getUIDTagkMethod · 0.45
getUIDTagvMethod · 0.45
getUIDMetricNSUMethod · 0.45
getUIDTagkNSUMethod · 0.45
getUIDTagvNSUMethod · 0.45
getUIDNullTypeMethod · 0.45
getUIDNullNameMethod · 0.45
getUIDEmptyNameMethod · 0.45
constructor2Method · 0.45
constructor3Method · 0.45

Calls 2

getUIDAsyncMethod · 0.95
errorMethod · 0.80

Tested by 15

getUIDMetricMethod · 0.36
getUIDTagkMethod · 0.36
getUIDTagvMethod · 0.36
getUIDMetricNSUMethod · 0.36
getUIDTagkNSUMethod · 0.36
getUIDTagvNSUMethod · 0.36
getUIDNullTypeMethod · 0.36
getUIDNullNameMethod · 0.36
getUIDEmptyNameMethod · 0.36
constructor2Method · 0.36
constructor3Method · 0.36
createConstructorMethod · 0.36