congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
ResolvingDiscoverable.of
Code IndexAdd Tabnine to your IDE (free)

How to use
of
method
in
co.cask.cdap.common.discovery.ResolvingDiscoverable

Best Java code snippets using co.cask.cdap.common.discovery.ResolvingDiscoverable.of (Showing top 20 results out of 315)

origin: cdapio/cdap

 @Override
 public Cancellable announce(String serviceName, int port, byte[] payload) {
  return discoveryService.register(
   ResolvingDiscoverable.of(new Discoverable(serviceName, new InetSocketAddress(hostname, port), payload)));
 }
}
origin: cdapio/cdap

@Override
public Cancellable announce(final String serviceName, final int port) {
 return discoveryService.register(
  ResolvingDiscoverable.of(new Discoverable(serviceName, new InetSocketAddress(hostname, port))));
}
origin: co.cask.cdap/cdap-app-fabric

 @Override
 public Cancellable announce(String serviceName, int port, byte[] payload) {
  return discoveryService.register(
   ResolvingDiscoverable.of(new Discoverable(serviceName, new InetSocketAddress(hostname, port), payload)));
 }
}
origin: co.cask.cdap/cdap-app-fabric

@Override
public Cancellable announce(final String serviceName, final int port) {
 return discoveryService.register(
  ResolvingDiscoverable.of(new Discoverable(serviceName, new InetSocketAddress(hostname, port))));
}
origin: cdapio/cdap

@Override
protected void startUp() throws Exception {
 LOG.info("Starting Transaction HTTP Service...");
 httpService.start();
 // Register the service
 cancelDiscovery = discoveryService.register(
  ResolvingDiscoverable.of(new Discoverable(Constants.Service.TRANSACTION_HTTP, httpService.getBindAddress())));
 LOG.info("Transaction HTTP started successfully on {}", httpService.getBindAddress());
}
origin: caskdata/cdap

@Override
protected void startUp() throws Exception {
 LoggingContextAccessor.setLoggingContext(new ServiceLoggingContext(Id.Namespace.SYSTEM.getId(),
                                   Constants.Logging.COMPONENT_NAME,
                                   Constants.Service.METRICS_PROCESSOR));
 LOG.info("Starting MetricsProcessor Status Service...");
 httpService.start();
 cancellable = discoveryService.register(
  ResolvingDiscoverable.of(new Discoverable(Constants.Service.METRICS_PROCESSOR, httpService.getBindAddress())));
 LOG.info("Started MetricsProcessor Status Service.");
}
origin: co.cask.cdap/cdap-watchdog

@Override
protected void startUp() throws Exception {
 LoggingContextAccessor.setLoggingContext(new ServiceLoggingContext(Id.Namespace.SYSTEM.getId(),
                                   Constants.Logging.COMPONENT_NAME,
                                   Constants.Service.METRICS));
 LOG.info("Starting Metrics Service...");
 httpService.start();
 LOG.info("Started Metrics HTTP Service...");
 // Register the service
 cancelDiscovery = discoveryService.register(
  ResolvingDiscoverable.of(new Discoverable(Constants.Service.METRICS, httpService.getBindAddress())));
 LOG.info("Metrics Service started successfully on {}", httpService.getBindAddress());
}
origin: caskdata/cdap

@Override
protected void startUp() throws Exception {
 LoggingContextAccessor.setLoggingContext(new ServiceLoggingContext(Id.Namespace.SYSTEM.getId(),
                                   Constants.Logging.COMPONENT_NAME,
                                   Constants.Service.METRICS));
 LOG.info("Starting Metrics Service...");
 httpService.start();
 LOG.info("Started Metrics HTTP Service...");
 // Register the service
 cancelDiscovery = discoveryService.register(
  ResolvingDiscoverable.of(new Discoverable(Constants.Service.METRICS, httpService.getBindAddress())));
 LOG.info("Metrics Service started successfully on {}", httpService.getBindAddress());
}
origin: co.cask.cdap/cdap-watchdog

@Override
protected void startUp() throws Exception {
 LoggingContextAccessor.setLoggingContext(new ServiceLoggingContext(Id.Namespace.SYSTEM.getId(),
                                   Constants.Logging.COMPONENT_NAME,
                                   Constants.Service.METRICS_PROCESSOR));
 LOG.info("Starting MetricsProcessor Status Service...");
 httpService.start();
 cancellable = discoveryService.register(
  ResolvingDiscoverable.of(new Discoverable(Constants.Service.METRICS_PROCESSOR, httpService.getBindAddress())));
 LOG.info("Started MetricsProcessor Status Service.");
}
origin: cdapio/cdap

@Override
protected void startUp() throws Exception {
 LoggingContextAccessor.setLoggingContext(new ServiceLoggingContext(NamespaceId.SYSTEM.getNamespace(),
                                   Constants.Logging.COMPONENT_NAME,
                                   Constants.Service.EXPLORE_HTTP_USER_SERVICE));
 LOG.info("Starting {}...", ExploreExecutorService.class.getSimpleName());
 if (!startOnDemand) {
  exploreService.startAndWait();
 }
 httpService.start();
 cancellable = discoveryService.register(ResolvingDiscoverable.of(
  new Discoverable(Constants.Service.EXPLORE_HTTP_USER_SERVICE, httpService.getBindAddress())));
 LOG.info("{} started successfully on {}", ExploreExecutorService.class.getSimpleName(),
      httpService.getBindAddress());
}
origin: co.cask.cdap/cdap-explore

@Override
protected void startUp() throws Exception {
 LoggingContextAccessor.setLoggingContext(new ServiceLoggingContext(NamespaceId.SYSTEM.getNamespace(),
                                   Constants.Logging.COMPONENT_NAME,
                                   Constants.Service.EXPLORE_HTTP_USER_SERVICE));
 LOG.info("Starting {}...", ExploreExecutorService.class.getSimpleName());
 if (!startOnDemand) {
  exploreService.startAndWait();
 }
 httpService.start();
 cancellable = discoveryService.register(ResolvingDiscoverable.of(
  new Discoverable(Constants.Service.EXPLORE_HTTP_USER_SERVICE, httpService.getBindAddress())));
 LOG.info("{} started successfully on {}", ExploreExecutorService.class.getSimpleName(),
      httpService.getBindAddress());
}
origin: cdapio/cdap

@Override
protected void startUp() throws Exception {
 LoggingContextAccessor.setLoggingContext(new ServiceLoggingContext(NamespaceId.SYSTEM.getEntityName(),
                                   Constants.Logging.COMPONENT_NAME,
                                   Constants.Service.DATASET_EXECUTOR));
 LOG.info("Starting DatasetOpExecutorService...");
 httpService.start();
 cancellable = discoveryService.register(
  ResolvingDiscoverable.of(new Discoverable(Constants.Service.DATASET_EXECUTOR, httpService.getBindAddress())));
 LOG.info("DatasetOpExecutorService started successfully on {}", httpService.getBindAddress());
}
origin: co.cask.cdap/cdap-data-fabric

@Override
protected void startUp() throws Exception {
 LoggingContextAccessor.setLoggingContext(new ServiceLoggingContext(NamespaceId.SYSTEM.getEntityName(),
                                   Constants.Logging.COMPONENT_NAME,
                                   Constants.Service.DATASET_EXECUTOR));
 LOG.info("Starting DatasetOpExecutorService...");
 httpService.start();
 cancellable = discoveryService.register(
  ResolvingDiscoverable.of(new Discoverable(Constants.Service.DATASET_EXECUTOR, httpService.getBindAddress())));
 LOG.info("DatasetOpExecutorService started successfully on {}", httpService.getBindAddress());
}
origin: caskdata/cdap

@Override
protected void startUp() throws Exception {
 LOG.info("Starting ResourceBalancer {} service...", serviceName);
 // We first submit requirement before starting coordinator to make sure all needed paths in ZK are created
 ResourceRequirement requirement =
  ResourceRequirement.builder(serviceName).addPartitions("", partitionCount, 1).build();
 resourceClient.submitRequirement(requirement).get();
 Discoverable discoverable = createDiscoverable(serviceName);
 cancelDiscoverable = discoveryService.register(ResolvingDiscoverable.of(discoverable));
 election.start();
 resourceClient.startAndWait();
 cancelResourceHandler = resourceClient.subscribe(serviceName,
                          createResourceHandler(discoverable));
 LOG.info("Started ResourceBalancer {} service...", serviceName);
}
origin: co.cask.cdap/cdap-common

@Override
protected void startUp() throws Exception {
 LOG.info("Starting ResourceBalancer {} service...", serviceName);
 // We first submit requirement before starting coordinator to make sure all needed paths in ZK are created
 ResourceRequirement requirement =
  ResourceRequirement.builder(serviceName).addPartitions("", partitionCount, 1).build();
 resourceClient.submitRequirement(requirement).get();
 Discoverable discoverable = createDiscoverable(serviceName);
 cancelDiscoverable = discoveryService.register(ResolvingDiscoverable.of(discoverable));
 election.start();
 resourceClient.startAndWait();
 cancelResourceHandler = resourceClient.subscribe(serviceName,
                          createResourceHandler(discoverable));
 LOG.info("Started ResourceBalancer {} service...", serviceName);
}
origin: caskdata/cdap

@Override
protected void startUp() throws Exception {
 LoggingContextAccessor.setLoggingContext(new ServiceLoggingContext(Id.Namespace.SYSTEM.getId(),
                                   Constants.Logging.COMPONENT_NAME,
                                   Constants.Service.LOGSAVER));
 httpService.start();
 cancellable = discoveryService.register(
  ResolvingDiscoverable.of(new Discoverable(Constants.Service.LOGSAVER, httpService.getBindAddress())));
}
origin: caskdata/cdap

@Override
protected void startUp() throws Exception {
 LoggingContextAccessor.setLoggingContext(new ServiceLoggingContext(Id.Namespace.SYSTEM.getId(),
                                   Constants.Logging.COMPONENT_NAME,
                                   Constants.Service.LOG_QUERY));
 httpServer.start();
 cancellable = discoveryService.register(
  ResolvingDiscoverable.of(new Discoverable(Constants.Service.LOG_QUERY, httpServer.getBindAddress())));
}
origin: co.cask.cdap/cdap-watchdog

@Override
protected void startUp() throws Exception {
 LoggingContextAccessor.setLoggingContext(new ServiceLoggingContext(Id.Namespace.SYSTEM.getId(),
                                   Constants.Logging.COMPONENT_NAME,
                                   Constants.Service.LOGSAVER));
 httpService.start();
 cancellable = discoveryService.register(
  ResolvingDiscoverable.of(new Discoverable(Constants.Service.LOGSAVER, httpService.getBindAddress())));
}
origin: co.cask.cdap/cdap-data-fabric

 @Override
 protected void startUp() throws Exception {
  LoggingContextAccessor.setLoggingContext(new ServiceLoggingContext(NamespaceId.SYSTEM.getEntityName(),
                                    Constants.Logging.COMPONENT_NAME,
                                    Constants.Service.STREAMS));
  httpService.start();

  discoverable = ResolvingDiscoverable.of(new Discoverable(Constants.Service.STREAMS, httpService.getBindAddress()));
  cancellable = discoveryService.register(discoverable);
}

origin: cdapio/cdap

@Override
protected void startUp() throws Exception {
 LOG.info("Starting Metadata Service");
 httpService = new CommonNettyHttpServiceBuilder(cConf, Constants.Service.METADATA_SERVICE)
  .setHttpHandlers(handlers)
  .setExceptionHandler(new HttpExceptionHandler())
  .setHandlerHooks(ImmutableList.of(new MetricsReporterHook(metricsCollectionService,
                               Constants.Service.METADATA_SERVICE)))
  .setHost(cConf.get(Constants.Metadata.SERVICE_BIND_ADDRESS))
  .setPort(cConf.getInt(Constants.Metadata.SERVICE_BIND_PORT))
  .setWorkerThreadPoolSize(cConf.getInt(Constants.Metadata.SERVICE_WORKER_THREADS))
  .setExecThreadPoolSize(cConf.getInt(Constants.Metadata.SERVICE_EXEC_THREADS))
  .setConnectionBacklog(20000)
  .build();
 httpService.start();
 InetSocketAddress socketAddress = httpService.getBindAddress();
 LOG.info("Metadata service running at {}", socketAddress);
 cancelDiscovery = discoveryService.register(
  ResolvingDiscoverable.of(new Discoverable(Constants.Service.METADATA_SERVICE, socketAddress)));
}
co.cask.cdap.common.discoveryResolvingDiscoverableof

Popular methods of ResolvingDiscoverable

  • <init>
  • resolve

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • requestLocationUpdates (LocationManager)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • JPanel (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Option (scala)
  • 21 Best Atom Packages for 2021
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