org.jwall.web.audit.util
Class RFICollectorServer
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.jwall.web.audit.util.RFICollectorServer
- All Implemented Interfaces:
- Serializable, Remote, RFICollectorService
public class RFICollectorServer
- extends UnicastRemoteObject
- implements RFICollectorService
This is a simple server which provides a few features for controlling a set of
rfi-collector threads. Each thread is reading a single log-source (audit-event
or access-log) and will process it incrementally.
- Author:
- Christian Bockermann <chris@jwall.org>
- See Also:
- Serialized Form
REGISTRY_PORT
public static final int REGISTRY_PORT
- See Also:
- Constant Field Values
RFICollectorServer
public RFICollectorServer()
throws RemoteException
- Throws:
RemoteException
registerCollector
public void registerCollector(String file,
Properties p)
throws RemoteException
- Description copied from interface:
RFICollectorService
- This method registers a new collector instance which tracks the given
log file.
- Specified by:
registerCollector in interface RFICollectorService
- Throws:
RemoteException - 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.- See Also:
RFICollectorService.registerCollector(java.lang.String, java.util.Properties)
unregisterCollector
public void unregisterCollector(String file)
throws RemoteException
- Description copied from interface:
RFICollectorService
- This method stops the collector listening on the given file.
- Specified by:
unregisterCollector in interface RFICollectorService
- Parameters:
file - The file on which the collector listens.
- Throws:
RemoteException - In case an error occurs.- See Also:
RFICollectorService.unregisterCollector(java.lang.String)
listCollectors
public List<String> listCollectors()
throws RemoteException
- Description copied from interface:
RFICollectorService
- This method returns a list of all currently running listeners.
- Specified by:
listCollectors in interface RFICollectorService
- Returns:
- A list of textual descriptions of all listeners.
- Throws:
RemoteException - In case an error occurs.- See Also:
RFICollectorService.listCollectors()
initRegistry
public static void initRegistry()
throws Exception
- Throws:
Exception
main
public static void main(String[] args)
- Parameters:
args -
Copyright © 2012 jwall.org. All Rights Reserved.