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

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
BufferedReader b =
  • Codota IconInputStream in;new BufferedReader(new InputStreamReader(in))
  • Codota IconReader in;new BufferedReader(in)
  • Codota IconFile file;new BufferedReader(new FileReader(file))
  • Smart code suggestions by Codota
}
origin: com.oracle.tools/oracle-tools-runtime

/**
 * Obtains an {@link Application} in this group with the given name.  If
 * no such {@link Application} exists in the group, <code>null</code> will
 * be returned.  If multiple {@link Application}s in the group have the
 * given name, an arbitary {@link Application} of the name will be returned
 *
 * @param name  the name of the application to get
 * @return the application in this group with the given name or null
 *         if no application has been realized with the given name
 */
public A getApplication(String name)
{
  for (A application : applications)
  {
    if (application.getName().equals(name))
    {
      return application;
    }
  }
  return null;
}
origin: com.oracle.tools/oracle-tools-runtime-vagrant

Application application = platform.realize("Vagrant", schema, console))
application.waitFor();
application.close();
origin: com.oracle.tools/oracle-tools-runtime

@Override
public void close()
{
  if (isClosed.compareAndSet(false, true))
  {
    for (A application : applications)
    {
      if (application != null)
      {
        try
        {
          application.close();
        }
        catch (Exception e)
        {
          // skip: we always ignore
        }
      }
    }
    // now remove the applications
    applications.clear();
  }
}
origin: com.oracle.tools/oracle-tools-runtime

for (LifecycleEventInterceptor<A> interceptor : application.getLifecycleInterceptors())
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

/**
 * Obtains the {@link Application}s in this group where by their
 * {@link Application#getName()} starts with the specified prefix.
 *
 * @param prefix  the prefix of application names to return
 * @return the application in this group with the given name or null
 *         if no application has been realized with the given name
 */
public Iterable<A> getApplications(String prefix)
{
  LinkedList<A> list = new LinkedList<A>();
  for (A application : applications)
  {
    if (application.getName().startsWith(prefix))
    {
      list.add(application);
    }
  }
  return list;
}
com.oracle.tools.runtimeApplication

Javadoc

An Application provides a mechanism to represent, access and control an ApplicationProcess.

Most used methods

  • close
    Attempts to gracefully closes and terminate the running Application. Upon returning it is safe to as
  • getLifecycleInterceptors
    Obtains the LifecycleEventInterceptors for the Application.
  • getName
    Obtains the name of the Application.
  • waitFor

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • BufferedInputStream (java.io)
    Wraps an existing InputStream and buffers the input. Expensive interaction with the underlying input
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JCheckBox (javax.swing)
  • JTable (javax.swing)
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