Examples of DNSEntry


Examples of com.openmashupos.socket.client.DNSEntry

    {
      // TODO: Needs to be generalized for other communication methods
      // update DNS table to contain an entry for container
      if(true) // if container communication method is proxy
      {
        DNSEntry dnsEntry = new ProxyDNSEntry(containerDomain,"parent" , containerProxyURL );
        addDNSEntry(dnsEntry);
      }
      else
      {
        // other types
      }
    }
   
    // TODO: assume that communication method of container and app are the same ..
    //if(communicationMethod == commMethodProxy)
//    {
      // for now assume that proxy is in this relative location
      String myProxy = GWT.getHostPageBaseURL() + "mashlet_proxy.cache.html" ;
      //createProxyPool(myProxy)  ;
      // TODO: how to find myDOMLocation ????!!!!!
      DNSEntry myDNSEntry = new ProxyDNSEntry(getMyDomain(),myDOMLocation , myProxy );
      //DNSTable.put(getMyDomain(), dnsEntry);
      addDNSEntry(myDNSEntry);
//    }
   
    StartContainerService();
View Full Code Here

Examples of com.openmashupos.socket.client.DNSEntry

      // else cannot find the porxy url ...
      dnsCallback.onResolved(new ProxyDNSEntry(domainName,DOMLocation,proxy));
    }
    else
    {
    DNSEntry dnsEntry =  (DNSEntry) DNSTable.get(domainName);
    if(dnsEntry!=null)
    {
      dnsCallback.onResolved(dnsEntry);
    }
    else // query the parent DNS server(port 1)
View Full Code Here

Examples of com.openmashupos.socket.client.DNSEntry

        }
      });
    }
    else
    {
      DNSEntry dnsEntry = (DNSEntry) reverseDNSTable.get((String) relativeDOMAddress);
      if(dnsEntry!=null)
      {
        dnsCallback.onResolved(dnsEntry);
      }
      else
View Full Code Here

Examples of com.openmashupos.socket.client.DNSEntry

  // also it updates the DNS
   void registerMe(Mashlet mashlet)
  {
    childMashlets.put(mashlet.getDomain(), mashlet);
   
    DNSEntry entry = new ProxyDNSEntry(mashlet.getDomain(),mashlet.getDOMLocation(),mashlet.getPorxyURL());
    addDNSEntry(entry);
  }
View Full Code Here

Examples of javax.jmdns.impl.DNSEntry


                    // Answer questions
                    for (Iterator iterator = in.getQuestions().iterator(); iterator.hasNext();)
                    {
                        DNSEntry entry = (DNSEntry) iterator.next();
                        if (entry instanceof DNSQuestion)
                        {
                            DNSQuestion q = (DNSQuestion) entry;

                            // for unicast responses the question must be included
View Full Code Here

Examples of javax.jmdns.impl.DNSEntry

    @Test
    public void testCacheAddEntry() {
        DNSCache cache = new DNSCache();

        DNSEntry entry = new DNSRecord.Service("pierre._home-sharing._tcp.local.", DNSRecordClass.CLASS_IN, false, 0, 0, 0, 0, "panoramix.local.");
        cache.addDNSEntry(entry);
        assertEquals("Could not retrieve the value we inserted", entry, cache.getDNSEntry(entry));

    }
View Full Code Here

Examples of javax.jmdns.impl.DNSEntry

    @Test
    public void testCacheRemoveEntry() {
        DNSCache cache = new DNSCache();

        DNSEntry entry = new DNSRecord.Service("pierre._home-sharing._tcp.local.", DNSRecordClass.CLASS_IN, false, 0, 0, 0, 0, "panoramix.local.");
        cache.addDNSEntry(entry);
        assertEquals("Could not retrieve the value we inserted", entry, cache.getDNSEntry(entry));
        cache.removeDNSEntry(entry);
        assertNull("Could not remove the value we inserted", cache.getDNSEntry(entry));
View Full Code Here

Examples of javax.jmdns.impl.DNSEntry

        // We respond after 20-120 ms if the query is truncated.

        boolean iAmTheOnlyOne = true;
        for (Iterator i = in.getQuestions().iterator(); i.hasNext();)
        {
            DNSEntry entry = (DNSEntry) i.next();
            if (entry instanceof DNSQuestion)
            {
                DNSQuestion q = (DNSQuestion) entry;
//                logger.finest("start() question=" + q);
                iAmTheOnlyOne &= (q.getType() == DNSConstants.TYPE_SRV
View Full Code Here

Examples of javax.jmdns.impl.DNSEntry


                    // Answer questions
                    for (Iterator iterator = in.getQuestions().iterator(); iterator.hasNext();)
                    {
                        DNSEntry entry = (DNSEntry) iterator.next();
                        if (entry instanceof DNSQuestion)
                        {
                            DNSQuestion q = (DNSQuestion) entry;

                            // for unicast responses the question must be included
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.