RAFo C/S

RandomAccessFile for Objects
C G I M O R U

C

close() - Method in class com.linxpda.raf.RAFo
Closes the data file accessed by this instance of RAFo.
close(String) - Method in interface com.linxpda.raf.server.RemoteFile
Remote implementation of the RAFo.close method.
close(String) - Method in class com.linxpda.raf.server.RAFoRMIServer
Closes the RAFo file running the given file.
com.linxpda.raf - package com.linxpda.raf
 
com.linxpda.raf.server - package com.linxpda.raf.server
 
containsKey(String) - Method in class com.linxpda.raf.RAFo
Tests whether the data file accessed by this instance of RAFo contains the given key.
containsKey(String, String) - Method in interface com.linxpda.raf.server.RemoteFile
Remote implementation of the RAFo.containsKey method.
containsKey(String, String) - Method in class com.linxpda.raf.server.RAFoRMIServer
Test for the given key in the given file.

G

getKeys() - Method in class com.linxpda.raf.RAFo
Returns a java.util.Enumeration of all the keys contained in the data file.
getKeys(String) - Method in interface com.linxpda.raf.server.RemoteFile
Remote implementation of the RAFo.getKeys method.
getKeys(String) - Method in class com.linxpda.raf.server.RAFoRMIServer
Returns an Enumeration of all keys in the given file.
getObject(String) - Method in class com.linxpda.raf.RAFo
Searches the data file for the given key and returns the object associated with it.
getObject(String, String) - Method in interface com.linxpda.raf.server.RemoteFile
Remote implementation of the RAFo.getObject method.
getObject(String, String) - Method in class com.linxpda.raf.server.RAFoRMIServer
Returns the object associated with the given key in the given data file.
getObjectCount() - Method in class com.linxpda.raf.RAFo
Returns the number of objects currently stored in the data file.
getObjectCount(String) - Method in interface com.linxpda.raf.server.RemoteFile
Remote implementation of the RAFo.getObjectCount method.
getObjectCount(String) - Method in class com.linxpda.raf.server.RAFoRMIServer
Returns an int of the total number of objects stored in the given file.
getRemoteInstance(String, String) - Static method in class com.linxpda.raf.RAFo
Returns an instance of RAFo that is connected to a remote RAFoRMIServer for thread-safe client/user access.

I

insertObject(String, Object) - Method in class com.linxpda.raf.RAFo
Stores the supplied object value in the data file and associates it with the supplied key.
insertObject(String, String, Object) - Method in interface com.linxpda.raf.server.RemoteFile
Remote implementation of the RAFo.insertObject method.
insertObject(String, String, Object) - Method in class com.linxpda.raf.server.RAFoRMIServer
Inserts the given object into the given data file and associates it with the given key.

M

main(String[]) - Static method in class com.linxpda.raf.server.RAFoRMIServer
Runs the RAFoRMIServer utility, creating a new instance and binding it to the rmiregistry.

O

open(String) - Method in interface com.linxpda.raf.server.RemoteFile
Opens a new RAFo object on the RAFoRMIServer.
open(String) - Method in class com.linxpda.raf.server.RAFoRMIServer
Opens a new RAFo file and adds it to the list of available RAFo files.

R

RAFException - exception com.linxpda.raf.RAFException.
Generic exception class to catch all random access file specific exceptions.
RAFException(String) - Constructor for class com.linxpda.raf.RAFException
 
RAFo - class com.linxpda.raf.RAFo.
This class reads and writes Java™ Objects to a file, using String keys to reference objects stored.
RAFo(String) - Constructor for class com.linxpda.raf.RAFo
Default operation that attempts to open an existing RAFo file with the given filename.
RAFo(String, int) - Constructor for class com.linxpda.raf.RAFo
Creates a new RAFo file with the given filename and initial header capacity.
RAFo(String, String) - Constructor for class com.linxpda.raf.RAFo
Opens an existing RAFo file with the given filename and using the provided access restrictions.
RAFoRMIServer - class com.linxpda.raf.server.RAFoRMIServer.
The RMI server used to allow multiple clients to access RAFo files on a remote server.
RAFoRMIServer() - Constructor for class com.linxpda.raf.server.RAFoRMIServer
Initializes the RAFoRMIServer.
RemoteFile - interface com.linxpda.raf.server.RemoteFile.
The remote interface that provides RMI access to RAFo objects running from a RAFoRMIServer.
removeObject(String) - Method in class com.linxpda.raf.RAFo
Removes the object with the associated key from the data file and removes the key from the header.
removeObject(String, String) - Method in interface com.linxpda.raf.server.RemoteFile
Remote implementation of the RAFo.removeOBject method.
removeObject(String, String) - Method in class com.linxpda.raf.server.RAFoRMIServer
Removes the object associated with the given key in the given data file.

U

updateObject(String, Object) - Method in class com.linxpda.raf.RAFo
Replaces the object currently associated with the given key with the new object value.
updateObject(String, String, Object) - Method in interface com.linxpda.raf.server.RemoteFile
Remote implementation of the RAFo.updateObject method.
updateObject(String, String, Object) - Method in class com.linxpda.raf.server.RAFoRMIServer
Replaces the object associated with the given key in the given file with the new Object value.

C G I M O R U
(c)2001 Linxpda, Inc. www.linxpda.com