Package java.rmi.server

Examples of java.rmi.server.ObjID


    /** Return the cursored stream page size. */
    protected int pageSize;

    public RemoteCursoredStream(CursoredStream serverCursoredStream) {
        this.id = new ObjID();
        this.position = serverCursoredStream.getPosition();
        this.pageSize = serverCursoredStream.getPageSize();
        this.isClosed = (serverCursoredStream.getResultSet() == null);
    }
View Full Code Here


    // for the moment, used only by TransparentIndirection
    protected transient Object serverIndirectionObject;

    public RemoteValueHolder() {
        // This assigns unique id to the remote value holder when it is created.
        this.id = new ObjID();
    }
View Full Code Here

    /** Return the cursored stream page size. */
    protected int pageSize;

    public RemoteCursoredStream(CursoredStream serverCursoredStream) {
        this.id = new ObjID();
        this.position = serverCursoredStream.getPosition();
        this.pageSize = serverCursoredStream.getPageSize();
        this.isClosed = (serverCursoredStream.getResultSet() == null);
    }
View Full Code Here

    /** Return if the stream is closed */
    protected boolean isClosed;

    public RemoteScrollableCursor(ScrollableCursor serverScrollableCursor) {
        this.id = new ObjID();
        this.isClosed = serverScrollableCursor.isClosed();
    }
View Full Code Here

            Class regClass = Class.forName(
                    "org.apache.harmony.rmi.registry.RegistryImpl_Stub"); //$NON-NLS-1$
            RemoteRef ref;

            if (csf == null) {
                ref = new UnicastRef(host, port, new ObjID(ObjID.REGISTRY_ID));
            } else {
                ref = new UnicastRef2(host, port, csf,
                        new ObjID(ObjID.REGISTRY_ID));
            }
            return (Registry) regClass.getConstructor(
                    new Class[] { RemoteRef.class }).newInstance(
                            new Object[] { ref });
        } catch (Exception ex) {
View Full Code Here

            // wait until RMI call msg is received from client or until client
            // closes the connection
            while (waitCallMsg() != -1) {
                RMIObjectInputStream oin = new RMIObjectInputStream(in);
                final ServerRemoteCall sCall = new ServerRemoteCall(this, oin);
                ObjID id = null;

                try {
                    id = ObjID.read(oin);
                } catch (IOException ioe) {
                    // rmi.74=Unable to read Object ID
View Full Code Here

         * @return true if this RenewInfo already contained the given ref and
         *         false otherwise
         */
        boolean addToDirtySet(RemoteRefBase ref) {
            synchronized (tablesLock) {
                ObjID id = ref.getObjId();

                if (renewTable.containsKey(id)) {
                    return true;
                }
                renewTable.put(id, new PhantomRef(
View Full Code Here

     */
    public ActivatableServerRef(ActivationID aid,
                                int port,
                                RMIClientSocketFactory csf,
                                RMIServerSocketFactory ssf) {
        super(port, csf, ssf, new ObjID());
        this.aid = aid;
    }
View Full Code Here

     * @param ssf server-side socket factory for creating server sockets
     */
    public UnicastServerRef2(int port,
                            RMIClientSocketFactory csf,
                            RMIServerSocketFactory ssf) {
        this(port, csf, ssf, new ObjID());
    }
View Full Code Here

     * Constructs UnicastServerRef listening on the port specified.
     *
     * @param port port where this UnicastServerRef will listen for connections
     */
    public UnicastServerRef(int port) {
        this(port, null, null, new ObjID());
    }
View Full Code Here

TOP

Related Classes of java.rmi.server.ObjID

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.