Tabnine Logo
ConnectionDescriptor.setLocation
Code IndexAdd Tabnine to your IDE (free)

How to use
setLocation
method
in
pl.edu.icm.synat.api.services.registry.model.ConnectionDescriptor

Best Java code snippets using pl.edu.icm.synat.api.services.registry.model.ConnectionDescriptor.setLocation (Showing top 2 results out of 315)

origin: pl.edu.icm.synat/synat-platform-integration-tests

  private void processManagerDescriptor(ServiceManagerDescriptor managerDescriptor) throws MalformedURLException, URISyntaxException {
    for (ConnectionDescriptor descriptor : managerDescriptor.getServiceLocations()) {
      if ("jmx".equals(descriptor.getProtocol())) {
        URI oldLocationUri = descriptor.getLocation();
        URI newLocationUri = processJmxURI(oldLocationUri);
        descriptor.setLocation(newLocationUri);
      } else {
        descriptor.setLocation(
            new URIBuilder(descriptor.getLocation()).setPort(descriptor.getLocation().getPort() + portShift).build());
      }
    }
  }
}
origin: pl.edu.icm.synat/synat-platform-container

private ServiceManagerDescriptor prepareDescriptor(final String serverUrl, final ObjectName objectName, final String managerType) {
  ServiceManagerDescriptor managerDescriptor = new ServiceManagerDescriptor();
  managerDescriptor.setManagerType(managerType);
  List<ConnectionDescriptor> serviceLocations = new ArrayList<ConnectionDescriptor>();
  managerDescriptor.setServiceLocations(serviceLocations);
  ConnectionDescriptor connectionDesc = new ConnectionDescriptor();
  connectionDesc.setLocation(URI.create(serverUrl));
  connectionDesc.setProtocol("jmx");
  connectionDesc.setProtocolFeatures(Collections.singletonMap("objectName", objectName.getCanonicalName()));
  serviceLocations.add(connectionDesc);
  return managerDescriptor;
}
pl.edu.icm.synat.api.services.registry.modelConnectionDescriptorsetLocation

Popular methods of ConnectionDescriptor

  • getProtocol
  • getLocation
  • <init>
  • getProtocolFeatures
  • setProtocol
  • setProtocolFeatures

Popular in Java

  • Finding current android device location
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now