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

How to use
RendezvousFactory
in
ch.cyberduck.core.bonjour

Best Java code snippets using ch.cyberduck.core.bonjour.RendezvousFactory (Showing top 4 results out of 315)

origin: iterate-ch/cyberduck

private RendezvousCollection() {
  this(RendezvousFactory.instance());
}
origin: iterate-ch/cyberduck

public static synchronized Rendezvous instance() {
  if(null == rendezvous) {
    if(PreferencesFactory.get().getBoolean("rendezvous.enable")) {
      rendezvous = new RendezvousFactory().create();
    }
    else {
      rendezvous = new DisabledRendezvous();
    }
  }
  return rendezvous;
}
origin: iterate-ch/cyberduck

/**
 * Quits the Rendezvous daemon and saves all preferences
 *
 * @param notification Notification name
 */
@Override
public void applicationWillTerminate(NSNotification notification) {
  if(log.isDebugEnabled()) {
    log.debug(String.format("Application will quit with notification %s", notification));
  }
  this.invalidate();
  // Clear temporary files
  TemporaryFileServiceFactory.get().shutdown();
  //Terminating rendezvous discovery
  RendezvousFactory.instance().quit();
  // Remove notifications from center
  NotificationServiceFactory.get().unregister();
  // Disable update
  updater.unregister();
  //Writing usage info
  preferences.setProperty("uses", preferences.getInteger("uses") + 1);
  preferences.save();
  DefaultBackgroundExecutor.get().shutdown();
}
origin: iterate-ch/cyberduck

final Rendezvous bonjour = RendezvousFactory.instance();
bonjour.addListener(new NotificationRendezvousListener(bonjour));
if(preferences.getBoolean("defaulthandler.reminder")
ch.cyberduck.core.bonjourRendezvousFactory

Most used methods

  • instance
  • <init>
  • create

Popular in Java

  • Reading from database using SQL prepared statement
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • getSystemService (Context)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Collectors (java.util.stream)
  • Join (org.hibernate.mapping)
  • Top plugins for WebStorm
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