Package org.iosgi.outpost.util.ipr

Examples of org.iosgi.outpost.util.ipr.Announcer


  private static final ExecutorService EXEC_SVC = Executors
      .newSingleThreadExecutor();

  public static void main(String[] args) throws Exception {
    final Announcer a = new Announcer();
    EXEC_SVC.submit(new Callable<Void>() {
      @Override
      public Void call() throws Exception {
        try {
          a.announce(30, 1, TimeUnit.SECONDS);
        } catch (Exception e) {
          LOGGER.error("IP announcement failed", e);
        }
        return null;
      }
View Full Code Here

TOP

Related Classes of org.iosgi.outpost.util.ipr.Announcer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.