code
stringlengths
73
34.1k
label
stringclasses
1 value
@Subscribe public final void receive(final LogEvent logEvent) { final String sClassName = logEvent.getSource().getClass().getName(); Logger logger = loggersMap.get(sClassName); if (logger == null) { logger = LoggerFactory.getLogger(logEvent.getSource().getClass()); ...
java
public static InputStream routeStreamThroughProcess(final Process p, final InputStream origin, final boolean closeInput) { InputStream processSTDOUT = p.getInputStream(); OutputStream processSTDIN = p.getOutputStream(); // Kick off a background copy to the process StreamUtil.doBackgroundCopy(origin, processST...
java
public static long eatInputStream(InputStream is) { try { long eaten = 0; try { Thread.sleep(STREAM_SLEEP_TIME); } catch (InterruptedException e) { // ignore } int avail = Math.min(is.available(), CHUNKSIZE); byte[] eatingArray = new byte[CHUNKSIZE]; while (avail > 0) { ...
java
public static void streamCopy(InputStream input, Writer output) throws IOException { if (input == null) throw new IllegalArgumentException("Must provide something to read from"); if (output == null) throw new IllegalArgumentException("Must provide something to write to"); streamCopy(new InputStreamReader(...
java
private void recache() { // If we've already cached the values then don't bother recalculating; we // assume a mask of 0 means a recompute is needed (unless prefix is also 0) // We skip the computation completely is prefix is 0 - this is fine, since // the mask and maskedNetwork for prefix 0 result in 0, the d...
java
public long get(final TimeUnit toUnit) { if (this.unit == toUnit) return period; else return toUnit.convert(period, this.unit); }
java
public static Timeout max(Timeout... timeouts) { Timeout max = null; for (Timeout timeout : timeouts) { if (timeout != null) if (max == null || max.getMilliseconds() < timeout.getMilliseconds()) max = timeout; } if (max != null) return max; else throw new IllegalArgumentException("Must ...
java
public static Timeout min(Timeout... timeouts) { Timeout min = null; for (Timeout timeout : timeouts) { if (timeout != null) if (min == null || min.getMilliseconds() > timeout.getMilliseconds()) min = timeout; } if (min != null) return min; else throw new IllegalArgumentException("Must ...
java
public static Timeout sum(Timeout... timeouts) { long sum = 0; for (Timeout timeout : timeouts) if (timeout != null) sum += timeout.getMilliseconds(); if (sum != 0) return new Timeout(sum); else return Timeout.ZERO; }
java
public synchronized static boolean hasSudo() { if (!sudoTested) { String[] cmdArr = new String[]{"which", "sudo"}; List<String> cmd = new ArrayList<String>(cmdArr.length); Collections.addAll(cmd, cmdArr); ProcessBuilder whichsudo = new ProcessBuilder(cmd); try { Process p = whichsudo.start(...
java
@Override public final void channelRead(final ChannelHandlerContext ctx, final Object msg) { try { JNRPERequest req = (JNRPERequest) msg; ReturnValue ret = commandInvoker.invoke(req.getCommand(), req.getArguments()); JNRPEResponse res = new JNRPEResponse(); ...
java
private static void applyConfigs(final ClassLoader classloader, final GuiceConfig config) { // Load all the local configs for (String configFile : getPropertyFiles(config)) { try { for (PropertyFile properties : loadConfig(classloader, configFile)) config.setAll(properties); } catch (IOExcep...
java
@Override public String parse(final String threshold, final RangeConfig tc) { configure(tc); return threshold.substring(1); }
java
public String getOptionValue(final String optionName) { if (optionName.length() == 1) { return getOptionValue(optionName.charAt(0)); } return (String) commandLine.getValue("--" + optionName); }
java
public String getOptionValue(final char shortOption, final String defaultValue) { return (String) commandLine.getValue("-" + shortOption, defaultValue); }
java
public TimecodeRange add(SampleCount samples) { final Timecode newStart = start.add(samples); final Timecode newEnd = end.add(samples); return new TimecodeRange(newStart, newEnd); }
java
public synchronized void opportunisticallyRefreshUserData(final String username, final String password) { if (shouldOpportunisticallyRefreshUserData()) { this.lastOpportunisticUserDataRefresh = System.currentTimeMillis(); Thread thread = new Thread(() -> refreshAllUserData(ldap.parseUser(username), password,...
java
public String relative(String url) { try { final URI uri = absolute(url).build(); return new URI(null, null, uri.getPath(), uri.getQuery(), uri.getFragment()).toString(); } catch (URISyntaxException e) { throw new IllegalArgumentException(e); } }
java
void reload(NetworkConfig config) { try { log.trace("Load config data from " + config.path + " into " + config); final ConfigPropertyData read = configService.read(config.path, configInstanceId, config.getLastRevision()); // Abort if the server returns no config - we have the latest revision if (read ...
java
@Provides @Named("logdata") public CloudTable getLogDataTable(@Named("azure.storage-connection-string") String storageConnectionString, @Named("azure.logging-table") String logTableName) throws URISyntaxException, StorageException, InvalidKeyExce...
java
public final ReturnValue execute(final ICommandLine cl) { if (cl.hasOption('U')) { setUrl(cl.getOptionValue('U')); } if (cl.hasOption('O')) { setObject(cl.getOptionValue('O')); } if (cl.hasOption('A')) { setAttribute(cl.getOptionValue('A')); ...
java
public static boolean overlapping(Version min1, Version max1, Version min2, Version max2) { // Versions overlap if: // - either Min or Max values are identical (fast test for real scenarios) // - Min1|Max1 are within the range Min2-Max2 // - Min2|Max2 are within the range Min1-Max1 return min1.equals(min2) ...
java
public String createPartitionAndRowQuery(final DateTime from, final DateTime to) { final String parMin = TableQuery.generateFilterCondition("PartitionKey", TableQuery.QueryComparisons.GREATER_THAN_OR_EQUAL, ...
java
public ServiceInstanceEntity get(final String serviceId) { try { return serviceCache.get(serviceId, () -> dao.getById(serviceId)); } catch (Exception e) { throw new RuntimeException("Error loading service: " + serviceId, e); } }
java
public ReturnValue execute(final String[] argsAry) throws BadThresholdException { // CommandLineParser clp = new PosixParser(); try { HelpFormatter hf = new HelpFormatter(); // configure a parser Parser cliParser = new Parser(); cliParser.setGroup(mainOpti...
java
public void printHelp(final PrintWriter out) { HelpFormatter hf = new HelpFormatter(); StringBuilder sbDivider = new StringBuilder("="); while (sbDivider.length() < hf.getPageWidth()) { sbDivider.append('='); } out.println(sbDivider.toString()); out.println("P...
java
public static Timecode max(final Timecode... timecodes) { Timecode max = null; for (Timecode timecode : timecodes) if (max == null || lt(max, timecode)) max = timecode; return max; }
java
public static Timecode min(final Timecode... timecodes) { Timecode min = null; for (Timecode timecode : timecodes) if (min == null || ge(min, timecode)) min = timecode; return min; }
java
public long getDurationMillis() { List<Element> durations = element.getChildren("Duration"); if (durations.size() != 0) { final String durationString = durations.get(0).getValue(); final long duration = Long.parseLong(durationString); return duration; } else { throw new RuntimeException("No ...
java
private static Group configureCommandLine() { DefaultOptionBuilder oBuilder = new DefaultOptionBuilder(); ArgumentBuilder aBuilder = new ArgumentBuilder(); GroupBuilder gBuilder = new GroupBuilder(); DefaultOption listOption = oBuilder.withLongName("list").withShortName("l").withDescrip...
java
private static void printHelp(final IPluginRepository pr, final String pluginName) { try { PluginProxy pp = (PluginProxy) pr.getPlugin(pluginName); // CPluginProxy pp = // CPluginFactory.getInstance().getPlugin(sPluginName); if (pp == null) { Syst...
java
private static void printVersion() { System.out.println("JNRPE version " + VERSION); System.out.println("Copyright (c) 2011 Massimiliano Ziccardi"); System.out.println("Licensed under the Apache License, Version 2.0"); System.out.println(); }
java
@SuppressWarnings("unchecked") private static void printUsage(final Exception e) { printVersion(); if (e != null) { System.out.println(e.getMessage() + "\n"); } HelpFormatter hf = new HelpFormatter(); StringBuilder sbDivider = new StringBuilder("="); whi...
java
private static JNRPEConfiguration loadConfiguration(final String configurationFilePath) throws ConfigurationException { File confFile = new File(configurationFilePath); if (!confFile.exists() || !confFile.canRead()) { throw new ConfigurationException("Cannot access config file : " + configu...
java
private static IPluginRepository loadPluginDefinitions(final String sPluginDirPath) throws PluginConfigurationException { File fDir = new File(sPluginDirPath); DynaPluginRepository repo = new DynaPluginRepository(); repo.load(fDir); return repo; }
java
private static void printPluginList(final IPluginRepository pr) { System.out.println("List of installed plugins : "); for (PluginDefinition pd : pr.getAllPlugins()) { System.out.println(" * " + pd.getName()); } System.exit(0); }
java
public void setAttribute(String name, String value) { if (value != null) getElement().setAttribute(name, value); else getElement().removeAttribute(name); }
java
protected Element getElement(String name, int index) { List<Element> children = getElement().getChildren(name); if (children.size() > index) return children.get(index); else return null; }
java
private static @NotNull TimeUnit pickUnit(final @NotNull Duration iso) { final long millis = iso.toMillis(); // Special-case values under 1 second if (millis < 1000) return TimeUnit.MILLISECONDS; final long SECOND = 1000; final long MINUTE = 60 * SECOND; final long HOUR = 60 * MINUTE; final long DA...
java
@SuppressWarnings( "unchecked" ) public Iterator<T> iterator() { final List<T> services = new ArrayList<T>(); if( m_serviceTracker != null ) { final Object[] trackedServices = m_serviceTracker.getServices(); if( trackedServices != null ) { ...
java
public <T> T get(Class<T> clazz, final String name) { JAXBNamedResourceFactory<T> cached = cachedReferences.get(name); if (cached == null) { cached = new JAXBNamedResourceFactory<T>(this.config, this.factory, name, clazz); cachedReferences.put(name, cached); } return cached.get(); }
java
public <T> T getOnce(final Class<T> clazz, final String name) { return new JAXBNamedResourceFactory<T>(this.config, this.factory, name, clazz).get(); }
java
public static String pretty(final Source source) { StreamResult result = new StreamResult(new StringWriter()); pretty(source, result); return result.getWriter().toString(); }
java
public static void pretty(final Source input, final StreamResult output) { try { // Configure transformer Transformer transformer = TransformerFactory.newInstance().newTransformer(); transformer.setOutputProperty(OutputKeys.ENCODING, "utf-8"); transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARAT...
java
@Override public void process(Writer writer) { try { template.process(data, writer); } catch (IOException e) { throw new RuntimeException("Error writing template to writer", e); } catch (TemplateException e) { throw new RuntimeException(e.getMessage(), e); } }
java
private void storeWithSubscribers(final List<LogLineTableEntity> lines) { synchronized (subscribers) { if (subscribers.isEmpty()) return; // No subscribers, ignore call for (LogSubscriber subscriber : subscribers) { subscriber.append(lines); } if (System.currentTimeMillis() > nextSubscribe...
java
@Provides @SessionScoped public UserLogin getLogin(@Named(JAXRS_SERVER_WEBAUTH_PROVIDER) CurrentUser user) { return (UserLogin) user; }
java
public final IPluginInterface getPlugin(final String name) throws UnknownPluginException { PluginDefinition pluginDef = pluginsDefinitionsMap.get(name); if (pluginDef == null) { throw new UnknownPluginException(name); } try { IPluginInterface pluginInterface = pl...
java
public static org.w3c.dom.Element convert(org.jdom2.Element node) throws JDOMException { if (node == null) return null; // Convert null->null try { DOMOutputter outputter = new DOMOutputter(); return outputter.output(node); } catch (JDOMException e) { throw new RuntimeException("Error convert...
java
public static org.jdom2.Element convert(org.w3c.dom.Element node) { if (node == null) return null; // Convert null->null DOMBuilder builder = new DOMBuilder(); return builder.build(node); }
java
public static synchronized void register(Class<?> clazz, boolean indexable) { if (!resources.containsKey(clazz)) { resources.put(clazz, new RestResource(clazz)); // Optionally register this service as Indexable if (indexable) { IndexableServiceRegistry.register(clazz); } revision++; } }
java
public void validate(final Node document) throws SchemaValidationException { try { final Validator validator = schema.newValidator(); validator.validate(new DOMSource(document)); } catch (SAXException | IOException e) { throw new SchemaValidationException(e.getMessage(), e); } }
java
@Override public String parse(final String threshold, final RangeConfig tc) { tc.setNegativeInfinity(true); if (threshold.startsWith(INFINITY)) { return threshold.substring(INFINITY.length()); } else { return threshold.substring(NEG_INFINITY.length()); } ...
java
@SuppressWarnings("rawtypes") private static void inject(final Class c, final IPluginInterface plugin, final IJNRPEExecutionContext context) throws IllegalAccessException { final Field[] fields = c.getDeclaredFields(); for (final Field f : fields) { final Annotation an = f.getAnnotatio...
java
@SuppressWarnings("rawtypes") public static void inject(final IPluginInterface plugin, final IJNRPEExecutionContext context) { try { Class clazz = plugin.getClass(); inject(clazz, plugin, context); while (IPluginInterface.class.isAssignableFrom(clazz.getSuperclass())) { ...
java
@Override public String parse(final String threshold, final RangeConfig tc) throws RangeException { StringBuilder numberString = new StringBuilder(); for (int i = 0; i < threshold.length(); i++) { if (Character.isDigit(threshold.charAt(i))) { numberString.append(threshold...
java
public boolean assessMatch(final OgnlContext ognlContext) throws OgnlException { if (! inputRun) { throw new IllegalArgumentException("Attempted to match on a rule whose rulesets input has not yet been produced"); } final Object result = condition.run(ognlContext, ognlContext); if (result == null || !B...
java
public static KeyStore loadCertificates(final File pemFile) { try (final PemReader pem = new PemReader(new FileReader(pemFile))) { final KeyStore ks = createEmptyKeyStore(); int certIndex = 0; Object obj; while ((obj = parse(pem.readPemObject())) != null) { if (obj instanceof Certificate) {...
java
public T get() { T value = get(null); if (value == null) throw new RuntimeException("Missing property for JAXB resource: " + name); else return value; }
java
private T loadResourceValue(final URL resource) { try (final InputStream is = resource.openStream()) { cached = null; // Prevent the old value from being used return setCached(clazz.cast(factory.getInstance(clazz).deserialise(is))); } catch (IOException e) { throw new RuntimeException("Error loadin...
java
private void analyze(final List<Metric> metrics, final long elapsed, final Date now, final Date date) { long diff = 0; boolean behind = false; if (now.before(date)) { behind = true; diff = date.getTime() - now.getTime(); } else if (now.after(date)) { ...
java
@Override public String parse(final String threshold, final RangeConfig tc) { tc.setPositiveInfinity(true); if (threshold.startsWith(INFINITY)) { return threshold.substring(INFINITY.length()); } else { return threshold.substring(POS_INFINITY.length()); } ...
java
public static String sha1hmac(String key, String plaintext) { return sha1hmac(key, plaintext, ENCODE_HEX); }
java
public static String sha1hmac(String key, String plaintext, int encoding) { byte[] signature = sha1hmac(key.getBytes(), plaintext.getBytes()); return encode(signature, encoding); }
java
private void register( final Bundle bundle ) { LOG.debug( "Scanning bundle [" + bundle.getSymbolicName() + "]" ); final List<T> resources = m_scanner.scan( bundle ); m_mappings.put( bundle, resources ); if( resources != null && resources.size() > 0 ) { LOG....
java
private void unregister( final Bundle bundle ) { if (bundle == null) return; // no need to go any further, system probably stopped. LOG.debug( "Releasing bundle [" + bundle.getSymbolicName() + "]" ); final List<T> resources = m_mappings.get( bundle ); if( resources != null ...
java
public static void verifyChain(List<X509Certificate> chain) { if (chain == null || chain.isEmpty()) throw new IllegalArgumentException("Must provide a chain that is non-null and non-empty"); for (int i = 0; i < chain.size(); i++) { final X509Certificate certificate = chain.get(i); final int issuerIndex...
java
public static void main(String args[]) { String home = "/home/user1/content/myfolder"; String file = "/home/user1/figures/fig.png"; System.out.println("home = " + home); System.out.println("file = " + file); System.out.println("path = " + getRelativePath(new File(home),new File(file))); }
java
private InjectingEntityResolver createEntityResolver(EntityResolver resolver) { if (getEntities() != null) { return new InjectingEntityResolver(getEntities(), resolver, getType(), getLog()); } else { return null; } }
java
protected URL getNonDefaultStylesheetURL() { if (getNonDefaultStylesheetLocation() != null) { URL url = this.getClass().getClassLoader().getResource(getNonDefaultStylesheetLocation()); return url; } else { return null; } }
java
private String[] scanIncludedFiles() { final DirectoryScanner scanner = new DirectoryScanner(); scanner.setBasedir(sourceDirectory); scanner.setIncludes(new String[]{inputFilename}); scanner.scan(); return scanner.getIncludedFiles(); }
java
void setHTTPResponse(HTTPResponse resp) { lock.lock(); try { if (response != null) { throw(new IllegalStateException( "HTTPResponse was already set")); } response = resp; ready.signalAll(); } finally { ...
java
HTTPResponse getHTTPResponse() { lock.lock(); try { while (response == null) { try { ready.await(); } catch (InterruptedException intx) { LOG.log(Level.FINEST, "Interrupted", intx); } } ...
java
private static List<String> loadServicesImplementations( final Class<?> ofClass) { List<String> result = new ArrayList<String>(); // Allow a sysprop to specify the first candidate String override = System.getProperty(ofClass.getName()); if (override != null) { re...
java
private static <T> T attemptLoad( final Class<T> ofClass, final String className) { if (LOG.isLoggable(Level.FINEST)) { LOG.finest("Attempting service load: " + className); } Level level; Throwable thrown; try { Class<?> clazz = Cla...
java
private static void finalClose(final Closeable closeMe) { if (closeMe != null) { try { closeMe.close(); } catch (IOException iox) { LOG.log(Level.FINEST, "Could not close: " + closeMe, iox); } } }
java
public synchronized ConfigurationAgent getConfigurationAgent() { if (this.configurationAgent == null) { if (isService) { this.configurationAgent = new ConfigurationAgent( this.serviceName, this.projectId, this.sslEnabled, this...
java
public synchronized NetworkServiceDescriptorAgent getNetworkServiceDescriptorAgent() { if (this.networkServiceDescriptorAgent == null) { if (isService) { this.networkServiceDescriptorAgent = new NetworkServiceDescriptorAgent( this.serviceName, this.projectId...
java
public synchronized NetworkServiceRecordAgent getNetworkServiceRecordAgent() { if (this.networkServiceRecordAgent == null) { if (isService) { this.networkServiceRecordAgent = new NetworkServiceRecordAgent( this.serviceName, this.projectId, th...
java
public synchronized VimInstanceAgent getVimInstanceAgent() { if (this.vimInstanceAgent == null) { if (isService) { this.vimInstanceAgent = new VimInstanceAgent( this.serviceName, this.projectId, this.sslEnabled, this.nfvoIp, ...
java
public synchronized VirtualLinkAgent getVirtualLinkAgent() { if (this.virtualLinkAgent == null) { if (isService) { this.virtualLinkAgent = new VirtualLinkAgent( this.serviceName, this.projectId, this.sslEnabled, this.nfvoIp, ...
java
public synchronized VirtualNetworkFunctionDescriptorAgent getVirtualNetworkFunctionDescriptorRestAgent() { if (this.virtualNetworkFunctionDescriptorAgent == null) { if (isService) { this.virtualNetworkFunctionDescriptorAgent = new VirtualNetworkFunctionDescriptorAgent( ...
java
public synchronized VNFFGAgent getVNFFGAgent() { if (this.vnffgAgent == null) { if (isService) { this.vnffgAgent = new VNFFGAgent( this.serviceName, this.projectId, this.sslEnabled, this.nfvoIp, this.nfvoPort, ...
java
public synchronized EventAgent getEventAgent() { if (this.eventAgent == null) { if (isService) { this.eventAgent = new EventAgent( this.serviceName, this.projectId, this.sslEnabled, this.nfvoIp, this.nfvoPort, ...
java
public synchronized VNFPackageAgent getVNFPackageAgent() { if (this.vnfPackageAgent == null) { if (isService) { this.vnfPackageAgent = new VNFPackageAgent( this.serviceName, this.projectId, this.sslEnabled, this.nfvoIp, ...
java
public synchronized ProjectAgent getProjectAgent() { if (this.projectAgent == null) { if (isService) { this.projectAgent = new ProjectAgent( this.serviceName, this.projectId, this.sslEnabled, this.nfvoIp, this....
java
public synchronized UserAgent getUserAgent() { if (this.userAgent == null) { if (isService) { this.userAgent = new UserAgent( this.serviceName, this.projectId, this.sslEnabled, this.nfvoIp, this.nfvoPort, ...
java
private String getProjectIdForProjectName(String projectName) throws SDKException { String projectId = this.getProjectAgent() .findAll() .stream() .filter(p -> p.getName().equals(projectName)) .findFirst() .orElseThrow( () -> ...
java
private void resetAgents() { this.configurationAgent = null; this.keyAgent = null; this.userAgent = null; this.vnfPackageAgent = null; this.projectAgent = null; this.eventAgent = null; this.vnffgAgent = null; this.virtualNetworkFunctionDescriptorAgent = null; this.virtualLinkAgent = ...
java
@Help( help = "Get all the VirtualNetworkFunctionDescriptors of a NetworkServiceDescriptor with specific id" ) @Deprecated public List<VirtualNetworkFunctionDescriptor> getVirtualNetworkFunctionDescriptors( final String idNSD) throws SDKException { String url = idNSD + "/vnfdescriptors"; ...
java
@Help( help = "Get a specific VirtualNetworkFunctionDescriptor of a particular NetworkServiceDescriptor specified by their IDs" ) @Deprecated public VirtualNetworkFunctionDescriptor getVirtualNetworkFunctionDescriptor( final String idNSD, final String idVfn) throws SDKException { String url ...
java
@Help( help = "Delete the VirtualNetworkFunctionDescriptor of a NetworkServiceDescriptor with specific id" ) @Deprecated public void deleteVirtualNetworkFunctionDescriptors(final String idNSD, final String idVnf) throws SDKException { String url = idNSD + "/vnfdescriptors" + "/" + idVnf; ...
java
@Help( help = "create the VirtualNetworkFunctionDescriptor of a NetworkServiceDescriptor with specific id" ) @Deprecated public VirtualNetworkFunctionDescriptor createVNFD( final String idNSD, final VirtualNetworkFunctionDescriptor virtualNetworkFunctionDescriptor) throws SDKException { ...
java
@Help( help = "Update the VirtualNetworkFunctionDescriptor of a NetworkServiceDescriptor with specific id" ) @Deprecated public VirtualNetworkFunctionDescriptor updateVNFD( final String idNSD, final String idVfn, final VirtualNetworkFunctionDescriptor virtualNetworkFunctionDescriptor...
java
@Help( help = "Get all the VirtualNetworkFunctionDescriptor Dependency of a NetworkServiceDescriptor with specific id" ) public List<VNFDependency> getVNFDependencies(final String idNSD) throws SDKException { String url = idNSD + "/vnfdependencies"; return Arrays.asList((VNFDependency[]) request...
java
@Help( help = "get the VirtualNetworkFunctionDescriptor dependency with specific id of a NetworkServiceDescriptor with specific id" ) public VNFDependency getVNFDependency(final String idNSD, final String idVnfd) throws SDKException { String url = idNSD + "/vnfdependencies" + "/" + idVnfd; ...
java
@Help( help = "Delete the VirtualNetworkFunctionDescriptor dependency of a NetworkServiceDescriptor with specific id" ) public void deleteVNFDependency(final String idNSD, final String idVnfd) throws SDKException { String url = idNSD + "/vnfdependencies" + "/" + idVnfd; requestDelete(url); }
java
@Help( help = "Create the VirtualNetworkFunctionDescriptor dependency of a NetworkServiceDescriptor with specific id" ) public VNFDependency createVNFDependency(final String idNSD, final VNFDependency vnfDependency) throws SDKException { String url = idNSD + "/vnfdependencies" + "/"; retur...
java
@Help( help = "Update the VirtualNetworkFunctionDescriptor dependency of a NetworkServiceDescriptor with specific id" ) public VNFDependency updateVNFD( final String idNSD, final String idVnfDep, final VNFDependency vnfDependency) throws SDKException { String url = idNSD + "/vnfdependenc...
java
@Help( help = "Get all the PhysicalNetworkFunctionDescriptors of a NetworkServiceDescriptor with specific id" ) public List<PhysicalNetworkFunctionDescriptor> getPhysicalNetworkFunctionDescriptors( final String idNSD) throws SDKException { String url = idNSD + "/pnfdescriptors"; return Arr...
java