public class RFICollectorServer extends UnicastRemoteObject implements RFICollectorService
| Modifier and Type | Field and Description |
|---|---|
static int |
REGISTRY_PORT |
refSERVICE_NAME| Constructor and Description |
|---|
RFICollectorServer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
initRegistry() |
List<String> |
listCollectors()
This method returns a list of all currently running listeners.
|
static void |
main(String[] args) |
void |
registerCollector(String file,
Properties p)
This method registers a new collector instance which tracks the given
log file.
|
void |
unregisterCollector(String file)
This method stops the collector listening on the given file.
|
clone, exportObject, exportObject, exportObject, unexportObjectgetClientHost, getLog, setLogpublic static final int REGISTRY_PORT
public RFICollectorServer()
throws RemoteException
RemoteExceptionpublic void registerCollector(String file, Properties p) throws RemoteException
RFICollectorServiceregisterCollector in interface RFICollectorServiceRemoteException - In case an error occurs such as the file does not
exist or the file-format is not supported. Since
currently only one collector can listen on a file,
an exception is also thrown if a new collector is
registered on a already observed file.RFICollectorService.registerCollector(java.lang.String, java.util.Properties)public void unregisterCollector(String file) throws RemoteException
RFICollectorServiceunregisterCollector in interface RFICollectorServicefile - The file on which the collector listens.RemoteException - In case an error occurs.RFICollectorService.unregisterCollector(java.lang.String)public List<String> listCollectors() throws RemoteException
RFICollectorServicelistCollectors in interface RFICollectorServiceRemoteException - In case an error occurs.RFICollectorService.listCollectors()public static void main(String[] args)
args - Copyright © 2015 jwall.org. All Rights Reserved.