Codota Logo
LocalPlatform
Code IndexAdd Codota to your IDE (free)

How to use
LocalPlatform
in
com.oracle.tools.runtime

Best Java code snippets using com.oracle.tools.runtime.LocalPlatform (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: com.oracle.tools/oracle-tools-runtime-vagrant

/**
 * Execute the application defined by the specified {@link SimpleApplicationSchema}.
 *
 * @param schema  the {@link SimpleApplicationSchema} defining the application to execute
 */
protected void execute(SimpleApplicationSchema schema)
{
  LocalPlatform platform = LocalPlatform.getInstance();
  try (Application application = platform.realize("Vagrant", schema, new SystemApplicationConsole()))
  {
    application.waitFor();
  }
  catch (Exception e)
  {
    throw new RuntimeException("Error executing Vagrant command", e);
  }
}
origin: com.oracle.tools/oracle-tools-runtime-remote

/**
 * Start the HTTP server that will be used to serve the artifacts
 * to be deployed.
 *
 * @param executor  the {@link Executor} to pass to the {@link HttpServer}
 * @param artifacts a {@link Map} of {@link DeploymentArtifact}s to deploy
 *                  keyed by the URL path for each artifact
 *
 */
protected HttpServer createServer(ExecutorService                 executor,
                 Map<String, DeploymentArtifact> artifacts)
{
  try
  {
    LocalPlatform platform = LocalPlatform.getInstance();
    InetAddress   address  = NetworkHelper.getFeasibleLocalHost();
    int           port     = platform.getAvailablePorts().next();
    HttpServer    server   = HttpServer.create(new InetSocketAddress(address, port), 0);
    server.createContext("/", new ArtifactsHandler(artifacts, options.asArray()));
    server.setExecutor(executor);
    server.start();
    return server;
  }
  catch (IOException e)
  {
    throw new RuntimeException("Unable to create HTTP server", e);
  }
}
origin: com.oracle.tools/oracle-tools-runtime-remote

remoteDebugPort = LocalPlatform.getInstance().getAvailablePorts().next();
origin: com.oracle.tools/oracle-tools-runtime-vagrant

LocalPlatform           platform = LocalPlatform.getInstance();
  Application application = platform.realize("Vagrant", schema, console))
com.oracle.tools.runtimeLocalPlatform

Most used methods

  • getInstance
  • getAvailablePorts
  • realize

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now