congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
GalaxyConfig
Code IndexAdd Tabnine to your IDE (free)

How to use
GalaxyConfig
in
com.nesscomputing.galaxy

Best Java code snippets using com.nesscomputing.galaxy.GalaxyConfig (Showing top 3 results out of 315)

origin: com.nesscomputing.components/ness-jmx

@Inject(optional=true)
void injectGalaxyConfig(final GalaxyConfig galaxyConfig)
  throws IOException
{
  this.galaxyPort = galaxyConfig.getPrivate().getPortJmx() == 0 ? null : galaxyConfig.getPrivate().getPortJmx();
  final String host =galaxyConfig.getInternalIp().getIp();
  if (host != null) {
    this.galaxyHost = InetAddress.getByName(host);
  }
}
origin: com.nesscomputing.service.discovery/discovery-httpserver

public static final Set<ServiceInformation> buildInternalServices(final String serviceName,
                                 final String serviceType,
                                 final GalaxyHttpServerConfig httpServerConfig,
                                 final GalaxyConfig galaxyConfig)
{
  final Set<ServiceInformation> services = Sets.newHashSet();
  final GalaxyIp internalIp = galaxyConfig.getInternalIp();
  if (httpServerConfig.isInternalHttpEnabled()) {
    services.add(ServiceInformation.forService(serviceName, serviceType, "http", internalIp.getIp(), internalIp.getHttpPort()));
  }
  if (httpServerConfig.isInternalHttpsEnabled()) {
    services.add(ServiceInformation.forService(serviceName, serviceType, "https", internalIp.getIp(), internalIp.getHttpsPort()));
  }
  return services;
}
origin: com.nesscomputing.service.discovery/discovery-httpserver

  public static final Set<ServiceInformation> buildExternalServices(final String serviceName,
                                   final String serviceType,
                                   final GalaxyHttpServerConfig httpServerConfig,
                                   final GalaxyConfig galaxyConfig)
  {
    final Set<ServiceInformation> services = Sets.newHashSet();

    final GalaxyIp externalIp = galaxyConfig.getExternalIp();
    if (httpServerConfig.isExternalHttpEnabled()) {
      services.add(ServiceInformation.forService(serviceName, serviceType, "http", externalIp.getIp(), externalIp.getHttpPort()));
    }
    if (httpServerConfig.isExternalHttpsEnabled()) {
      services.add(ServiceInformation.forService(serviceName, serviceType, "https", externalIp.getIp(), externalIp.getHttpsPort()));
    }

    return services;
  }
}
com.nesscomputing.galaxyGalaxyConfig

Most used methods

  • getInternalIp
  • getExternalIp
  • getPrivate

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • scheduleAtFixedRate (Timer)
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • JCheckBox (javax.swing)
  • JComboBox (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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