|
||||||||||
| 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
org.fcrepo.server.journal.readerwriter.multicast.rmi.RmiJournalReceiver
public class RmiJournalReceiver
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 org.fcrepo.server.journal.readerwriter.multicast.rmi.RmiJournalReceiverInterface |
|---|
RMI_BINDING_NAME |
| Constructor Summary | |
|---|---|
RmiJournalReceiver(RmiJournalReceiverArguments arguments)
On creation, parse the arguments. |
|
| 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(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. |
| 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 RemoteException
RemoteException| Method Detail |
|---|
public void exportAndBind()
throws RemoteException,
AlreadyBoundException,
InterruptedException
RemoteException
AlreadyBoundException
InterruptedException
public void openFile(String repositoryHash,
String filename)
throws JournalException
TransportOutputFile, and open a
Writer on it.
openFile in interface RmiJournalReceiverInterfaceJournalException
public void writeText(String indexedHash,
String text)
throws JournalException
writeText in interface RmiJournalReceiverInterfaceJournalException
public void closeFile()
throws JournalException
closeFile in interface RmiJournalReceiverInterfaceJournalExceptionpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||