Codota Logo
WsAgentServerUtil.getWsAgentHttpServerReference
Code IndexAdd Codota to your IDE (free)

How to use
getWsAgentHttpServerReference
method
in
org.eclipse.che.ide.api.workspace.WsAgentServerUtil

Best Java code snippets using org.eclipse.che.ide.api.workspace.WsAgentServerUtil.getWsAgentHttpServerReference (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Gson g =
  • Codota Iconnew Gson()
  • Codota IconGsonBuilder gsonBuilder;gsonBuilder.create()
  • Codota Iconnew GsonBuilder().create()
  • Smart code suggestions by Codota
}
origin: org.eclipse.che.core/che-core-ide-api

/**
 * Returns {@code Optional} with the {@link Constants#SERVER_WS_AGENT_HTTP_REFERENCE wsagent/http}
 * server.
 *
 * @return {@code Optional} with the {@link Constants#SERVER_WS_AGENT_HTTP_REFERENCE wsagent/http}
 *     server if the current workspace has a runtime and there is a machine with such server,
 *     otherwise an empty {@code Optional}
 */
public Optional<ServerImpl> getWsAgentHttpServer() {
 return getServerByRef(getWsAgentHttpServerReference());
}
origin: org.eclipse.che.core/che-core-ide-api

/**
 * Checks whether the provided {@link MachineImpl} contains the {@link
 * Constants#SERVER_WS_AGENT_HTTP_REFERENCE wsagent/http} server.
 *
 * @param machine {@link MachineImpl} to check
 * @return {@code true} if the given machine contains the {@link
 *     Constants#SERVER_WS_AGENT_HTTP_REFERENCE wsagent/http} server server, otherwise {@code
 *     false}
 */
public boolean containsWsAgentHttpServer(MachineImpl machine) {
 return machine.getServers().keySet().contains(getWsAgentHttpServerReference());
}
origin: org.eclipse.che.core/che-core-ide-app

 private void checkServerStatus(ServerImpl server, MachineImpl machine) {
  if (server.getStatus() == RUNNING) {
   eventBus.fireEvent(new ServerRunningEvent(server.getName(), machine.getName()));

   String wsAgentHttpServerRef = wsAgentServerUtil.getWsAgentHttpServerReference();
   // fire events for the often used servers
   if (wsAgentHttpServerRef.equals(server.getName())) {
    eventBus.fireEvent(new WsAgentServerRunningEvent(machine.getName()));
   } else if (SERVER_TERMINAL_REFERENCE.equals(server.getName())) {
    eventBus.fireEvent(new TerminalAgentServerRunningEvent(machine.getName()));
   } else if (SERVER_EXEC_AGENT_HTTP_REFERENCE.equals(server.getName())) {
    eventBus.fireEvent(new ExecAgentServerRunningEvent(machine.getName()));
   }
  }
 }
}
origin: org.eclipse.che.core/che-core-ide-app

String wsAgentHttpServerRef = wsAgentServerUtil.getWsAgentHttpServerReference();
org.eclipse.che.ide.api.workspaceWsAgentServerUtilgetWsAgentHttpServerReference

Javadoc

Returns a reference of the Constants#SERVER_WS_AGENT_HTTP_REFERENCEserver.

Note, the returned server reference may be prepended with the prefix passed through the URL's query parameter.

Popular methods of WsAgentServerUtil

  • getServerByRef
  • getWorkspaceRuntime
  • getWsAgentHttpServer
    Returns Optional with the Constants#SERVER_WS_AGENT_HTTP_REFERENCEserver.
  • getWsAgentServerMachine
    Returns Optional with a machine which contains the "wsagent" server.
  • getWsAgentWebSocketServer
    Returns Optional with the Constants#SERVER_WS_AGENT_WEBSOCKET_REFERENCE server.
  • getWsAgentWebSocketServerReference
    Returns a reference of the Constants#SERVER_WS_AGENT_WEBSOCKET_REFERENCEserver. Note, the returned s

Popular in Java

  • Making http requests using okhttp
  • findViewById (Activity)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • notifyDataSetChanged (ArrayAdapter)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Properties (java.util)
    The Properties class represents a persistent set of properties. The Properties can be saved to a st
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
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