Package org.jwall.web.audit

Examples of org.jwall.web.audit.AuditEventDispatcher


     * @see org.jwall.web.audit.util.RFICollectorService#registerCollector(java.lang.String, java.util.Properties)
     */
    public void registerCollector( String file, Properties p ) throws RemoteException {


        AuditEventDispatcher source = null;

        // if no reader is listening non the file, we need to create one
        //
        if( ! sources.containsKey(file) ){

            try {

                boolean tail = "true".equals( p.getProperty( RFICollector.PROPERTY_TAIL ) );
                AuditEventReader reader = AuditFormat.createReader( file , tail );
                AuditEventDispatcher evtSource = new AuditEventDispatcher( reader );
                sources.put( file, evtSource );
               
            } catch (Exception e) {
                throw new RemoteException( e.getMessage() );
            }
View Full Code Here


    public void unregisterCollector( String file ) throws RemoteException {

        synchronized( sources ){
            if( sources.containsKey( file ) ){

                AuditEventDispatcher d = sources.get( file );
                d.removeAuditEventListeners();

                sources.remove( file );

                try {
                    d.close();
                } catch ( IOException ie) {
                    throw new RemoteException( ie.getMessage() );
                }
            } else {
               
View Full Code Here

                log.info( "   user = " + user );
                log.info( "   pass = " + pass );
            }

            AuditEventConsoleSender sender = new AuditEventConsoleSender( url.getHost(), port, user, pass );
            AuditEventDispatcher d = new AuditEventDispatcher( src );

            //
            //
            d.setPersistent( !"true".equals( p.getProperty( Collector.COLLECTOR_SEND_COMPLETE_LOG ) ) );


            d.addAuditEventListener( sender );
            d.start();

        } catch (Exception e){
            e.printStackTrace();
            System.exit(-1);
        }
View Full Code Here

            }
            server.start();



            AuditEventDispatcher d = new AuditEventDispatcher( r );
            d.addAuditEventListener( server );
            d.start();           

            //daemonize();
        } catch (Exception e) {
            e.printStackTrace();
        }
View Full Code Here

TOP

Related Classes of org.jwall.web.audit.AuditEventDispatcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.