Examples of enumerateListenEndpoints()


Examples of net.jini.jeri.ServerEndpoint.enumerateListenEndpoints()

        //obtain a ServerEndpoint and verify that the addListenEndpoint
        //is called on the ListenContext specified and the expected number
        //of ListenEndpoints are passed in to the context.
        SETContext lc = new SETContext();
        ServerEndpoint se = getServerEndpoint();
        Endpoint e = se.enumerateListenEndpoints(lc);
        boolean exceptionThrown = false;
        log.finest("Call to enumerateListeEndpoints returns " + e);
        Integer expected = (Integer) getConfigObject(Integer.class,
            "expectedListenEndpoints");
        ArrayList endpoints = lc.getEndpoints();
View Full Code Here

Examples of net.jini.jeri.ServerEndpoint.enumerateListenEndpoints()

    public void run() throws Exception {
        Endpoint endpoint = null;
        //Obtain endpoint
        ServerEndpoint serverEndpoint = getServerEndpoint();
        endpoint = serverEndpoint
            .enumerateListenEndpoints(new SETContext());
        //Obtain constraints
        InvocationConstraints conflictingConstraints =
            (InvocationConstraints) getConfigObject(
                InvocationConstraints.class, "conflictingConstraints");
View Full Code Here

Examples of net.jini.jeri.ServerEndpoint.enumerateListenEndpoints()

    public void run() throws Exception {
        //Obtain a server endpoint instance
        ServerEndpoint endpoint = getServerEndpoint();
        try {
            //Verify that an arbitrary exception is propagated
            endpoint.enumerateListenEndpoints(
                new ExceptionListenContext(new ArbitraryException()));
        } catch (ArbitraryException a) {
            try {
                //Verify that an IOException is propagated
                endpoint.enumerateListenEndpoints(
View Full Code Here

Examples of net.jini.jeri.ServerEndpoint.enumerateListenEndpoints()

            endpoint.enumerateListenEndpoints(
                new ExceptionListenContext(new ArbitraryException()));
        } catch (ArbitraryException a) {
            try {
                //Verify that an IOException is propagated
                endpoint.enumerateListenEndpoints(
                    new ExceptionListenContext(new IOException()));
            } catch (IOException e) {
                return;
            }
        }
View Full Code Here

Examples of net.jini.jeri.ServerEndpoint.enumerateListenEndpoints()

            ((EndpointHolder)it.next()).getListenHandle().close();
        }
        // wait to make sure resources released before attempting
        // to reuse socket
        Thread.currentThread().sleep(1000 * 30);
        se2.enumerateListenEndpoints(lc2);
        ArrayList endpoints2 = lc2.getEndpoints();
        for (int i=0; i<endpoints.size(); i++){
            EndpointHolder eph = (EndpointHolder) endpoints.get(i);
            EndpointHolder eph2 = (EndpointHolder) endpoints2.get(i);
            ServerEndpoint.ListenEndpoint le = eph.getListenEndpoint();
View Full Code Here

Examples of net.jini.jeri.ServerEndpoint.enumerateListenEndpoints()

                + " endpoints are considered equal");
        }
        //Verify that ListenEndpoint on functionally equivalent
        //ServerEndpoint instances are considered equal.
        lc2 = new EqualityContext();
        se2.enumerateListenEndpoints(lc2);
        endpoints2 = lc2.getEndpoints();
        for (int i=0; i<endpoints.size(); i++){
            EndpointHolder eph = (EndpointHolder) endpoints.get(i);
            EndpointHolder eph2 = (EndpointHolder) endpoints2.get(i);
            ServerEndpoint.ListenEndpoint le = eph.getListenEndpoint();
View Full Code Here

Examples of net.jini.jeri.kerberos.KerberosServerEndpoint.enumerateListenEndpoints()

  private Object createSep() throws Exception {
      try {
          KerberosServerEndpoint sep =
        KerberosServerEndpoint.getInstance(
      subject, serverPrincipal, serverHost, port, csf, ssf);
    sep.enumerateListenEndpoints(new ListenContext() {
      public ListenCookie addListenEndpoint(
          ListenEndpoint listenEndpoint) throws IOException
      {
          ListenHandle handle = listenEndpoint.listen(
        new RequestDispatcher() {
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.