Package com.sun.jini.discovery

Examples of com.sun.jini.discovery.DiscoveryProtocolException


      }

      return new MulticastRequest(host, port, groups, ids);

  } catch (RuntimeException e) {
      throw new DiscoveryProtocolException(null, e);
  }
    }
View Full Code Here


    buf.putLong(id.getLeastSignificantBits());

      } while (!groups.isEmpty());

  } catch (RuntimeException e) {
      throw new DiscoveryProtocolException(null, e);
  }
    }
View Full Code Here

      return new MulticastAnnouncement(
    seq, host, port, groups, new ServiceID(idhi, idlo));

  } catch (RuntimeException e) {
      throw new DiscoveryProtocolException(null, e);
  }
    }
View Full Code Here

      // write LUS proxy
      new ObjectOutputStream(out).writeObject(
    new MarshalledInstance(response.getRegistrar(), context));
  } catch (RuntimeException e) {
      throw new DiscoveryProtocolException(null, e);
  }
    }
View Full Code Here

    context);

      return new UnicastResponse(host, port, groups, reg);

  } catch (RuntimeException e) {
      throw new DiscoveryProtocolException(null, e);
  }
    }
View Full Code Here

      case Discovery.PROTOCOL_VERSION_1:
    return Discovery.getProtocol1();
      case Discovery.PROTOCOL_VERSION_2:
    return protocol2;
      default:
    throw new DiscoveryProtocolException(
        "unsupported protocol version: " + version);
  }
    }
View Full Code Here

        try {
      pv = ByteBuffer.wrap(dgram.getData(),
               dgram.getOffset(),
               dgram.getLength()).getInt();
        } catch (BufferUnderflowException e) {
      throw new DiscoveryProtocolException(null, e);
        }
        multicastRequestConstraints.checkProtocolVersion(pv);

        MulticastRequest req =
      getDiscovery(pv).decodeMulticastRequest(
View Full Code Here

      byte[] hash = calcHandshakeHash(received, sent);
      byte[] clientHash = new byte[hash.length];
      new DataInputStream(in).readFully(clientHash);
      if (!Arrays.equals(clientHash, hash)) {
    throw new DiscoveryProtocolException(
        "handshake hash mismatch");
      }

      Plaintext.writeUnicastResponse(out, response, context);
      out.flush();
View Full Code Here

  } catch (IOException e) {
      throw e;
  } catch (SecurityException e) {
      throw e;
  } catch (Exception e) {
      throw new DiscoveryProtocolException(null, e);
  }
    }
View Full Code Here

  } catch (IOException e) {
      throw e;
  } catch (SecurityException e) {
      throw e;
  } catch (Exception e) {
      throw new DiscoveryProtocolException(null, e);
  }
    }
View Full Code Here

TOP

Related Classes of com.sun.jini.discovery.DiscoveryProtocolException

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.