public class RmiJournalReceiver extends UnicastRemoteObject implements RmiJournalReceiverInterface
Note: command-line arguments are specified in
RmiJournalReceiverArguments.
refRMI_BINDING_NAME| Constructor and Description |
|---|
RmiJournalReceiver(RmiJournalReceiverArguments arguments)
On creation, parse the arguments.
|
| Modifier and Type | Method and Description |
|---|---|
void |
closeFile()
Request to close a file.
|
void |
exportAndBind()
Create an RMI registry, and bind this object to the expected name.
|
static void |
main(String[] args)
Main routine: create the receiver from the arguments, and bind the
receiver in the registry.
|
void |
openFile(String repositoryHash,
String filename)
Request to open a file.
|
void |
writeText(String indexedHash,
String text)
Request to write text to the current journal file.
|
clone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic RmiJournalReceiver(RmiJournalReceiverArguments arguments) throws RemoteException
RemoteExceptionpublic void exportAndBind()
throws RemoteException,
AlreadyBoundException,
InterruptedException
public void openFile(String repositoryHash, String filename) throws JournalException
TransportOutputFile, and open a
Writer on it.openFile in interface RmiJournalReceiverInterfaceJournalExceptionpublic void writeText(String indexedHash, String text) throws JournalException
writeText in interface RmiJournalReceiverInterfaceJournalExceptionpublic void closeFile()
throws JournalException
closeFile in interface RmiJournalReceiverInterfaceJournalExceptionpublic static void main(String[] args)
Copyright © 2013 DuraSpace. All Rights Reserved.