MCPcopy
hub / github.com/OpenTSDB/opentsdb / validate

Method validate

src/tools/ConfigMetaType.java:545–560  ·  view source on GitHub ↗

{@inheritDoc} @see net.opentsdb.tools.ConfigMetaType.FileListValidator#validate(net.opentsdb.tools.ConfigArgP.ConfigurationItem)

(final ConfigurationItem citem)

Source from the content-addressed store, hash-verified

543 * @see net.opentsdb.tools.ConfigMetaType.FileListValidator#validate(net.opentsdb.tools.ConfigArgP.ConfigurationItem)
544 */
545 @Override
546 public void validate(final ConfigurationItem citem) {
547 super.validate(citem);
548 Set<URL> urls = buildURLSet(citem);
549 final MLet classLoader = new MLet(urls.toArray(new URL[urls.size()]));
550 try {
551 final ObjectName on = new ObjectName(String.format(CLASSLOADER_OBJECTNAME, citem.getKey()));
552 if(server.isRegistered(on)) {
553 server.unregisterMBean(on);
554 }
555 server.registerMBean(classLoader, on);
556 } catch (Exception ex) {
557 throw new IllegalArgumentException("Failed to create class loader for [" + citem.getName() + "]", ex);
558 }
559
560 }
561 }
562
563

Callers

nothing calls this directly

Calls 5

buildURLSetMethod · 0.80
validateMethod · 0.65
sizeMethod · 0.65
getNameMethod · 0.65
getKeyMethod · 0.45

Tested by

no test coverage detected