|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
fedora.server.journal.readerwriter.multicast.rmi.RmiJournalReceiver
public class RmiJournalReceiver
Title: RmiJournalReceiver.java
Description: A free-standing RMI server that receives journal messages from an RmiTransport and writes them to files in a specified directory.
Note: command-line arguments are specified in
RmiJournalReceiverArguments.
| Field Summary |
|---|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Fields inherited from interface fedora.server.journal.readerwriter.multicast.rmi.RmiJournalReceiverInterface |
|---|
RMI_BINDING_NAME |
| Constructor Summary | |
|---|---|
RmiJournalReceiver(RmiJournalReceiverArguments arguments)
On creation, parse the arguments and initialize Log4J for the application. |
|
| Method Summary | |
|---|---|
void |
closeFile()
Request to close a file. |
void |
exportAndBind()
Create an RMI registry, and bind this object to the expected name. |
static void |
main(java.lang.String[] args)
Main routine: create the receiver from the arguments, and bind the receiver in the registry. |
void |
openFile(java.lang.String repositoryHash,
java.lang.String filename)
Request to open a file. |
void |
writeText(java.lang.String indexedHash,
java.lang.String text)
Request to write text to the current journal file. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RmiJournalReceiver(RmiJournalReceiverArguments arguments)
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
public void exportAndBind()
throws java.rmi.RemoteException,
java.rmi.AlreadyBoundException,
java.lang.InterruptedException
java.rmi.RemoteException
java.rmi.AlreadyBoundException
java.lang.InterruptedException
public void openFile(java.lang.String repositoryHash,
java.lang.String filename)
throws JournalException
TransportOutputFile, and open a
Writer on it.
openFile in interface RmiJournalReceiverInterfaceJournalException
public void writeText(java.lang.String indexedHash,
java.lang.String text)
throws JournalException
writeText in interface RmiJournalReceiverInterfaceJournalException
public void closeFile()
throws JournalException
closeFile in interface RmiJournalReceiverInterfaceJournalExceptionpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||