/*
 * Copyright (C) The Apache Software Foundation. All rights reserved.
 *
 * This software is published under the terms of the Apache Software
 * License version 1.1, a copy of which has been included with this
 * distribution in the LICENSE.APL file.  
 */

package org.apache.log4j.rmi;

import java.rmi.RemoteException;
import java.rmi.Remote;

import org.apache.log4j.spi.LoggingEvent;

/** Remote interface.
 *
 * @author Alessandro Di Maria
 * @version 1.0
 */
public interface IRemoteNode extends java.rmi.Remote {
    
    /**
     * adds the clientHost to the NDC.<br>
     * appends the incoming LoggingEvent to the local appenders.
     * @param event LoggingEvent of the client.
     * @throws RemoteException if RMI fails
     */
    public void receiveEvent(LoggingEvent event) throws RemoteException;
    
}

