Package org.apache.harmony.rmi.transport

Examples of org.apache.harmony.rmi.transport.Endpoint


                            RMIClientSocketFactory csf,
                            RMIServerSocketFactory ssf,
                            ObjID objId) {
        super();
        isLocal = true;
        ep = new Endpoint(port, csf, ssf);
        this.objId = objId;
    }
View Full Code Here


     */
    public UnicastRef2(String host,
                       int port,
                       RMIClientSocketFactory csf,
                       ObjID objId) {
        this(new Endpoint(host, port, csf, null), objId);
    }
View Full Code Here

     * @param objId Object ID of remoteObject
     */
    public UnicastRef(String host,
                      int port,
                      ObjID objId) {
        this(new Endpoint(host, port, null, null), objId);
    }
View Full Code Here

     * Removes connection from the list of connections.
     *
     * @param conn connection to be removed
     */
    public static void removeConnection(ClientConnection conn) {
        Endpoint ep = conn.getEndpoint();

        synchronized (connsTable) {
            Set conns = (Set) connsTable.get(ep);

            if (conns == null) {
View Full Code Here

                wakeUpTime = Long.MAX_VALUE;

                synchronized (connsTable) {
                    for (Enumeration eps = connsTable.keys();
                            eps.hasMoreElements();) {
                        Endpoint ep = (Endpoint) eps.nextElement();
                        Set conns = (Set) connsTable.get(ep);

                        if (conns.isEmpty()) {
                            connsTable.remove(ep);
                            continue;
View Full Code Here

     * @throws IOException and and I/O error occured during manager creation
     */
    public static synchronized ServerConnectionManager getMgr(Endpoint ep)
            throws IOException {
        ServerConnectionManager mgr;
        Endpoint tmpl = null;

        if (ep.getPort() != 0) {
            tmpl = Endpoint.createTemplate(ep);
            mgr = (ServerConnectionManager) localEps.get(tmpl);

View Full Code Here

     */
    public ServerConnection(Socket s, ServerConnectionManager mgr)
            throws IOException {
        this.s = s;
        this.mgr = mgr;
        ep = new Endpoint(s.getInetAddress().getHostAddress(),
                          s.getPort(),
                          mgr.getEndpoint().getClientSocketFactory(),
                          mgr.getEndpoint().getServerSocketFactory());
        out = new BufferedOutputStream(s.getOutputStream());
        in = new BufferedInputStream(s.getInputStream());
View Full Code Here

                try {
                    synchronized (epTable) {
                        for (Enumeration eps = epTable.keys();
                                eps.hasMoreElements();) {
                            Endpoint ep = (Endpoint) eps.nextElement();
                            RenewInfo info = (RenewInfo) epTable.get(ep);

                            if (info.renewTime <= curTime) {
                                // we should renew lease for this ids
                                info.dgcDirty();
View Full Code Here

     */
    public ServerConnection(Socket s, ServerConnectionManager mgr)
            throws IOException {
        this.s = s;
        this.mgr = mgr;
        ep = new Endpoint(s.getInetAddress().getHostAddress(),
                          s.getPort(),
                          mgr.getEndpoint().getClientSocketFactory(),
                          mgr.getEndpoint().getServerSocketFactory());
        out = new BufferedOutputStream(s.getOutputStream());
        in = new BufferedInputStream(s.getInputStream());
View Full Code Here

                try {
                    synchronized (epTable) {
                        for (Enumeration eps = epTable.keys();
                                eps.hasMoreElements();) {
                            Endpoint ep = (Endpoint) eps.nextElement();
                            RenewInfo info = (RenewInfo) epTable.get(ep);

                            if (info.renewTime <= curTime) {
                                // we should renew lease for this ids
                                info.dgcDirty();
View Full Code Here

TOP

Related Classes of org.apache.harmony.rmi.transport.Endpoint

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.