RAFo C/S

RandomAccessFile for Objects

com.linxpda.raf.server
Interface RemoteFile

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
RAFoRMIServer

public interface RemoteFile
extends java.rmi.Remote

The remote interface that provides RMI access to RAFo objects running from a RAFoRMIServer.

The user will generally not need to implement this interface, rather a handle to a RemoteFile is provided through a call to RAFo.getRemoteInstance.


Method Summary
 void close(java.lang.String dbName)
          Remote implementation of the RAFo.close method.
 boolean containsKey(java.lang.String dbName, java.lang.String key)
          Remote implementation of the RAFo.containsKey method.
 java.util.Enumeration getKeys(java.lang.String dbName)
          Remote implementation of the RAFo.getKeys method.
 java.lang.Object getObject(java.lang.String dbName, java.lang.String key)
          Remote implementation of the RAFo.getObject method.
 int getObjectCount(java.lang.String dbName)
          Remote implementation of the RAFo.getObjectCount method.
 void insertObject(java.lang.String dbName, java.lang.String key, java.lang.Object value)
          Remote implementation of the RAFo.insertObject method.
 void open(java.lang.String dbName)
          Opens a new RAFo object on the RAFoRMIServer.
 void removeObject(java.lang.String dbName, java.lang.String key)
          Remote implementation of the RAFo.removeOBject method.
 void updateObject(java.lang.String dbName, java.lang.String key, java.lang.Object value)
          Remote implementation of the RAFo.updateObject method.
 

Method Detail

close

public void close(java.lang.String dbName)
           throws java.rmi.RemoteException,
                  java.io.IOException,
                  RAFException
Remote implementation of the RAFo.close method.

containsKey

public boolean containsKey(java.lang.String dbName,
                           java.lang.String key)
                    throws java.rmi.RemoteException,
                           RAFException
Remote implementation of the RAFo.containsKey method.

getKeys

public java.util.Enumeration getKeys(java.lang.String dbName)
                              throws java.rmi.RemoteException,
                                     RAFException
Remote implementation of the RAFo.getKeys method.

getObject

public java.lang.Object getObject(java.lang.String dbName,
                                  java.lang.String key)
                           throws java.rmi.RemoteException,
                                  java.io.IOException,
                                  java.lang.ClassNotFoundException,
                                  RAFException
Remote implementation of the RAFo.getObject method.

getObjectCount

public int getObjectCount(java.lang.String dbName)
                   throws java.rmi.RemoteException,
                          RAFException
Remote implementation of the RAFo.getObjectCount method.

insertObject

public void insertObject(java.lang.String dbName,
                         java.lang.String key,
                         java.lang.Object value)
                  throws java.rmi.RemoteException,
                         java.io.IOException,
                         RAFException
Remote implementation of the RAFo.insertObject method.

open

public void open(java.lang.String dbName)
          throws java.rmi.RemoteException,
                 java.io.IOException,
                 RAFException
Opens a new RAFo object on the RAFoRMIServer.

removeObject

public void removeObject(java.lang.String dbName,
                         java.lang.String key)
                  throws java.rmi.RemoteException,
                         java.io.IOException,
                         RAFException
Remote implementation of the RAFo.removeOBject method.

updateObject

public void updateObject(java.lang.String dbName,
                         java.lang.String key,
                         java.lang.Object value)
                  throws java.rmi.RemoteException,
                         java.io.IOException,
                         RAFException
Remote implementation of the RAFo.updateObject method.

(c)2001 Linxpda, Inc. www.linxpda.com