Tabnine Logo
ServerConnectedMessage
Code IndexAdd Tabnine to your IDE (free)

How to use
ServerConnectedMessage
in
net.groboclown.p4.server.api.messagebus

Best Java code snippets using net.groboclown.p4.server.api.messagebus.ServerConnectedMessage (Showing top 9 results out of 315)

origin: groboclown/p4ic4idea

  public static void addListener(@NotNull MessageBusClient.ApplicationClient client,
      @NotNull Object listenerOwner, @NotNull Listener listener) {
    addTopicListener(client, TOPIC, listener, Listener.class, listenerOwner);
  }
}
origin: groboclown/p4ic4idea

public static Listener send() {
  return getListener(TOPIC, DEFAULT_LISTENER);
}
origin: groboclown/p4ic4idea

ServerConnectedMessage.addListener(appClient, this, (e) -> {
origin: groboclown/p4ic4idea

@NotNull
@Override
protected ActionAnswer<LoginResult> login(ServerConfig config, LoginAction action) {
  ServerConnectionState state = getProjectStateFor(config);
  // Login has special state checking, because all it cares about is online vs. offline, not login
  // status.
  if (state.badLogin && !state.userOffline && !state.badConnection) {
    return server.perform(config, action)
        .whenCompleted((resp) -> {
          // Login was good.
          ServerConnectedMessage.send().serverConnected(
              new ServerConnectedMessage.ServerConnectedEvent(config, true));
          state.needsLogin = false;
          state.badConnection = false;
        });
  }
  return new OfflineActionAnswerImpl<>();
}
origin: groboclown/p4ic4idea

ServerConnectedMessage.addListener(applicationBusClient, this, this::onServerConnected);
ClientConfigRemovedMessage.addListener(projectBusClient, this, event -> {
  if (! ProjectConfigRegistry.this.equals(event.getEventSource())) {
origin: groboclown/p4ic4idea

public void goOnline(ClientConfigRoot root) {
  ClientConfigAddedMessage.sendClientConfigurationAdded(idea.getMockProject(),
      root.getClientRootDir(), root.getClientConfig());
  ServerConnectedMessage.send().serverConnected(new ServerConnectedMessage.ServerConnectedEvent(root.getServerConfig(), true));
}
origin: groboclown/p4ic4idea

ServerConnectedMessage.addListener(mbClient, this, (e) -> {
origin: groboclown/p4ic4idea

ServerConnectedMessage.addListener(appBus, cacheId, (e) -> refresh());
UserSelectedOfflineMessage.addListener(clientBus, cacheId, name -> refresh());
ClientActionMessage.addListener(appBus, cacheId, event -> refresh());
origin: groboclown/p4ic4idea

ServerConnectedMessage.addListener(appClient, this, new ServerConnectedMessage.Listener() {
  @Override
  public void serverConnected(@NotNull ServerConnectedMessage.ServerConnectedEvent e) {
net.groboclown.p4.server.api.messagebusServerConnectedMessage

Javadoc

Indicates that a server was successfully contacted without issue. The server should be considered online. It's acceptable for a server to have multiple online messages sent without any disconnect / error messages. Even with this message, a user may still have explicitly told the server to work offline, which means the server should still be considered offline.

Most used methods

  • addListener
  • send
  • addTopicListener
  • getListener

Popular in Java

  • Making http requests using okhttp
  • getSystemService (Context)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Collectors (java.util.stream)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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