Examples of Discovery


Examples of com.dbxml.labrador.Discovery

         // Retrieve the best Resolver
         Resolver resolver = broker.getBestResolver(id);

         // Retrieve the Discovery interface from the Resolver
         Discovery discovery = resolver.getDiscovery(id);

         // Stream the description to the StringWriter
         StringWriter sw = new StringWriter(BUFFER_SIZE);
         describer.describe(id, discovery, sw);
         result = sw.toString();
View Full Code Here

Examples of com.fathomdb.discovery.Discovery

  public static void main(String[] args) {
    try {
      // Force GMT
      TimeZone.setDefault(TimeZone.getTimeZone("UTC"));

      Discovery discovery = Discovery.build();
      ConfigurationImpl configuration = ConfigurationImpl.load();

      Extensions extensions = new Extensions(configuration, discovery);

      List<Module> modules = Lists.newArrayList();
View Full Code Here

Examples of com.fathomdb.discovery.Discovery

    List<Module> modules = Lists.newArrayList();

    ConfigurationModule configurationModule = new ConfigurationModule();
    modules.add(configurationModule);

    Discovery discovery = Discovery.build();

    ConfigurationImpl configuration = configurationModule.getConfiguration();
    Extensions extensions = new Extensions(configuration, discovery);

    modules.add(new CacheModule());
View Full Code Here

Examples of com.sun.jini.discovery.Discovery

   * interrupted, otherwise return true.
   */
  private boolean announce(String[] groups) {
      // REMIND: cache latest announcement to skip re-encoding
      List packets = new ArrayList();
      Discovery disco;
      try {
    disco = getDiscovery(
        multicastAnnouncementConstraints.chooseProtocolVersion());
      } catch (DiscoveryProtocolException e) {
    throw new AssertionError(e);
      }
      EncodeIterator ei = disco.encodeMulticastAnnouncement(
    new MulticastAnnouncement(System.currentTimeMillis(),
            lookupLocator.getHost(),
            lookupLocator.getPort(),
            groups,
            lookupServiceID),
View Full Code Here

Examples of flagthis.pubsubhubbub.Discovery

  }

  public static void main(String[] args) {
    try {
      testPublisher();
      Discovery discovery=new Discovery();
      System.out.println(discovery.getHub("http://www.royans.net/rant/feed/"));
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
View Full Code Here

Examples of oculus.commport.Discovery

  public void initialize() {
    settings.writeFile();
    salt = settings.readSetting("salt");

    // must be blocking search of all ports, but only once!
    Discovery discovery = new Discovery();
    comport = discovery.getMotors(this);
    light = discovery.getLights(this);
   
    state.set(State.values.httpPort, settings.readRed5Setting("http.port"));
    state.set(State.values.muteOnROVmove, settings.getBoolean(GUISettings.muteonrovmove));
    initialstatuscalled = false;
    pendingplayerisnull = true;
View Full Code Here

Examples of org.apache.ace.discovery.Discovery

        TestUtils.configureObject(m_service, Identification.class, new Identification() {
            public String getID() {
                return "test";
            }
        });
        TestUtils.configureObject(m_service, Discovery.class, new Discovery() {
            public URL discover() {
                try {
                    return new URL("http://localhost/");
                }
                catch (MalformedURLException e) {
View Full Code Here

Examples of org.elasticsearch.discovery.Discovery

                    continue;
                }

                IMetric metric = (IMetric)obj;
                Locator locator = metric.getLocator();
                Discovery md = new Discovery(locator.getTenantId(), locator.getMetricName());

                Map<String, Object> info = new HashMap<String, Object>();


                if (obj instanceof  Metric && getUnit((Metric)metric) != null) { // metric units may be null
                    info.put(unit.toString(), getUnit((Metric)metric));
                }

                md.withAnnotation(info);
                bulk.add(createSingleRequest(md));
            }
            bulk.execute().actionGet();
        } finally {
            ctx.stop();
View Full Code Here

Examples of org.jgroups.protocols.Discovery

        GMS gms=(GMS)stack.findProtocol("GMS");
        if(gms != null) {
            gms.setJoinTimeout(join_timeout);
        }

        Discovery discovery=(Discovery)stack.findProtocol(Discovery.class);       
        if(discovery != null) {
            discovery.setNumInitialMembers(10);
            discovery.setTimeout(discovery_timeout);
        }

        stack=c1.getProtocolStack();
        DELAY_JOIN_REQ delay=new DELAY_JOIN_REQ();
        delay.setDelay(delay_join_req);
View Full Code Here

Examples of org.openid4java.discovery.Discovery

     */
    public ConsumerManager()
    {
        this(
            new RealmVerifierFactory(new YadisResolver(new HttpFetcherFactory())),
            new Discovery()// uses HttpCache internally
            new HttpFetcherFactory());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.