SmartFrog 3.10.000

org.smartfrog.sfcore.logging
Interface LogRegistration

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
LogImpl, SFLogRegistrationImpl

public interface LogRegistration
extends java.rmi.Remote

Interface for registering and deregistering logs


Method Summary
 boolean deregister(java.lang.String name)
          Log Deregistration interface
 Log[] listRegisteredLogs()
          Get a list of all registered logs
 void register(java.lang.String name, Log log)
          Log Registration interface
 void register(java.lang.String name, Log log, int logLevel)
          Log Registration interface
 

Method Detail

register

void register(java.lang.String name,
              Log log)
              throws java.rmi.RemoteException,
                     SmartFrogLogException
Log Registration interface

Parameters:
name - log name
log - logger to register
Throws:
SmartFrogLogException - if failed to register
java.rmi.RemoteException - in case of remote/network error

register

void register(java.lang.String name,
              Log log,
              int logLevel)
              throws java.rmi.RemoteException,
                     SmartFrogLogException
Log Registration interface

Parameters:
name - log name
log - logger to register
logLevel - log level
Throws:
java.rmi.RemoteException - in case of remote/network error
SmartFrogLogException - if failed to register

deregister

boolean deregister(java.lang.String name)
                   throws java.rmi.RemoteException,
                          SmartFrogLogException
Log Deregistration interface

Parameters:
name - log name
Returns:
boolean success/failure
Throws:
SmartFrogLogException - if failed to deregister
java.rmi.RemoteException - in case of remote/network error

listRegisteredLogs

Log[] listRegisteredLogs()
                         throws java.rmi.RemoteException,
                                SmartFrogLogException
Get a list of all registered logs

Returns:
a list (may be of size 0 for no logs)
Throws:
java.rmi.RemoteException
SmartFrogLogException

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP