|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.objectweb.util.monolog.wrapper.remote.lib.MonologFactoryProxyImpl
This class implements the MonologFactoryProxy interface as remote object. It permits to configure loggers, handlers and levels on a monolog factory
Field Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
MonologFactoryProxyImpl()
Build a remote object managing the default MonologFactory registered as current int the Monolog class. |
|
MonologFactoryProxyImpl(MonologFactory mf)
Build a remote object managing a MonologFactory. |
|
MonologFactoryProxyImpl(MonologFactory mf,
java.lang.String rmiName)
Build a remote object managing a MonologFactory. |
Method Summary | |
---|---|
void |
addHandlerToLogger(java.lang.String handlername,
java.lang.String loggerName)
A TopicalLogger manages a list of Handler instances. |
void |
addTopicToLogger(java.lang.String topic,
java.lang.String loggerName)
This method allows adding a topic to a TopicalLogger. |
int |
compareTo(java.lang.String levelname1,
java.lang.String levelname2)
Compares two levels. |
boolean |
createHandler(java.lang.String hn,
java.lang.String handlertype)
Creates a new handler |
boolean |
defineLevel(java.lang.String name,
int value)
It defines a new Level with a name and an integer value. |
boolean |
defineLevel(java.lang.String name,
java.lang.String value)
It defines a new Level with a name and a string value. |
java.util.Map |
getAllHandlerAttributes()
It retrieves the attributes of all handlers |
java.util.Map |
getHandlerAttributes(java.lang.String handlername)
It retrieves the attributes of an handler |
java.lang.String[] |
getHandlerNames()
It retrieves name of all handler managed by this factory. |
Level |
getLevel(int value)
It retrieves a Level instance which the integer value is equals to the parameter. |
Level |
getLevel(java.lang.String name)
It retrieves a Level instance which the name is equals to the parameter. |
Level[] |
getLevels()
It retrieves all Level instances defined in this manager. |
LoggerInfo |
getLogger(java.lang.String loggername)
Creates a logger if it does not exist. |
LoggerInfo |
getLogger(java.lang.String loggername,
java.lang.String resourceBundleName)
Creates a logger if it does not exist. |
LoggerInfo[] |
getLoggers()
It retrieves a list of all loggers. |
java.util.Properties |
getMonologProperties()
Retrieves the properties corresponding to the current configuration. |
java.lang.String |
getResourceBundleName()
Accessors to a resource bundle name associated to a LoggerFactory. |
void |
register(java.net.InetAddress host,
java.lang.String name)
Register this object into a RMI registry. |
void |
register(java.lang.String name)
Register this object into the RMI registry of the current host. |
void |
removeAllHandlersFromLogger(java.lang.String loggerName)
A TopicalLogger manages a list of Handler instances. |
boolean |
removeHandler(java.lang.String handlername)
It removes the handler which the name is specified by the parameter |
void |
removeHandlerFromLogger(java.lang.String handlerName,
java.lang.String loggerName)
A TopicalLogger manages a list of Handler instances. |
void |
removeLevel(java.lang.String name)
It removes a Level instance to this manager. |
void |
removeTopicFromLogger(java.lang.String topic,
java.lang.String loggerName)
This method allows removing a topic to a TopicalLogger. |
void |
setAdditivity(boolean a,
java.lang.String loggerName)
It assigns the additivity flag for this logger instance. |
void |
setHandlerAttribute(java.lang.String handlername,
java.lang.String attributeName,
java.lang.String value)
Assignes a value to an handler attribute. |
void |
setLoggerLevel(int level,
java.lang.String loggerName)
It assigns a level to a logger. |
void |
setLoggerLevel(java.lang.String levelName,
java.lang.String loggerName)
It assigns a level to a logger. |
void |
setMonologProperties(java.util.Properties p)
Configure Monolog with properties. |
void |
setResourceBundleName(java.lang.String resourceBundleName)
Accessors to a resource bundle name associated to a LoggerFactory. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public MonologFactoryProxyImpl() throws java.rmi.RemoteException
public MonologFactoryProxyImpl(MonologFactory mf) throws java.rmi.RemoteException
mf
- is the monolog factory instance encapsulated into this remote
object.public MonologFactoryProxyImpl(MonologFactory mf, java.lang.String rmiName) throws java.rmi.RemoteException
mf
- is the monolog factory instance encapsulated into this remote
object.rmiName
- is the name under which this remote object will be
registeredMethod Detail |
public void register(java.lang.String name) throws java.rmi.RemoteException
name
- is the name under which this remote object will be
registered
java.rmi.RemoteException
public void register(java.net.InetAddress host, java.lang.String name) throws java.rmi.RemoteException
name
- is the name under which this remote object will be
registeredhost
- is the name of the host containing the RMI registry where
this object has to be registered.
java.rmi.RemoteException
public boolean defineLevel(java.lang.String name, int value) throws java.rmi.RemoteException
MonologFactoryProxy
defineLevel
in interface MonologFactoryProxy
name
- is the name of the new levelvalue
- is the integer value of the new level
java.rmi.RemoteException
public boolean defineLevel(java.lang.String name, java.lang.String value) throws java.rmi.RemoteException
MonologFactoryProxy
defineLevel
in interface MonologFactoryProxy
name
- is the name of the new levelvalue
- is the string value of the new level
java.rmi.RemoteException
public void removeLevel(java.lang.String name) throws java.rmi.RemoteException
MonologFactoryProxy
removeLevel
in interface MonologFactoryProxy
java.rmi.RemoteException
public Level getLevel(java.lang.String name) throws java.rmi.RemoteException
MonologFactoryProxy
getLevel
in interface MonologFactoryProxy
name
- is the name of request Level
java.rmi.RemoteException
public Level getLevel(int value) throws java.rmi.RemoteException
MonologFactoryProxy
getLevel
in interface MonologFactoryProxy
value
- is the integer value of request Level
java.rmi.RemoteException
public Level[] getLevels() throws java.rmi.RemoteException
MonologFactoryProxy
getLevels
in interface MonologFactoryProxy
java.rmi.RemoteException
public int compareTo(java.lang.String levelname1, java.lang.String levelname2) throws java.rmi.RemoteException
MonologFactoryProxy
compareTo
in interface MonologFactoryProxy
levelname1
- is the name of the first levellevelname2
- is the name of the second level
java.rmi.RemoteException
public boolean createHandler(java.lang.String hn, java.lang.String handlertype) throws java.rmi.RemoteException
MonologFactoryProxy
createHandler
in interface MonologFactoryProxy
hn
- is the name of the handler to createhandlertype
- is the type of the parameter. The possible value are
defined in this interface by the XXX_HANDLER_TYPE constants.
java.rmi.RemoteException
public boolean removeHandler(java.lang.String handlername) throws java.rmi.RemoteException
MonologFactoryProxy
removeHandler
in interface MonologFactoryProxy
handlername
- is the name of the handler
java.rmi.RemoteException
public java.lang.String[] getHandlerNames() throws java.rmi.RemoteException
MonologFactoryProxy
getHandlerNames
in interface MonologFactoryProxy
java.rmi.RemoteException
public java.util.Map getHandlerAttributes(java.lang.String handlername) throws java.rmi.RemoteException
MonologFactoryProxy
getHandlerAttributes
in interface MonologFactoryProxy
handlername
- is the name of the handler
java.rmi.RemoteException
public java.util.Map getAllHandlerAttributes() throws java.rmi.RemoteException
MonologFactoryProxy
getAllHandlerAttributes
in interface MonologFactoryProxy
java.rmi.RemoteException
public void setHandlerAttribute(java.lang.String handlername, java.lang.String attributeName, java.lang.String value) throws java.rmi.RemoteException
MonologFactoryProxy
setHandlerAttribute
in interface MonologFactoryProxy
handlername
- is the name of the handlerattributeName
- is the name of the attributevalue
- is the new value of the attribute
java.rmi.RemoteException
public LoggerInfo getLogger(java.lang.String loggername) throws java.rmi.RemoteException
MonologFactoryProxy
getLogger
in interface MonologFactoryProxy
loggername
- is the name of the logger
java.rmi.RemoteException
public LoggerInfo getLogger(java.lang.String loggername, java.lang.String resourceBundleName) throws java.rmi.RemoteException
MonologFactoryProxy
getLogger
in interface MonologFactoryProxy
resourceBundleName
- allows specifying the name of a
resource bundle in order to internationalise the logging.
java.rmi.RemoteException
public java.lang.String getResourceBundleName() throws java.rmi.RemoteException
MonologFactoryProxy
getResourceBundleName
in interface MonologFactoryProxy
java.rmi.RemoteException
public void setResourceBundleName(java.lang.String resourceBundleName) throws java.rmi.RemoteException
MonologFactoryProxy
setResourceBundleName
in interface MonologFactoryProxy
java.rmi.RemoteException
public LoggerInfo[] getLoggers() throws java.rmi.RemoteException
MonologFactoryProxy
getLoggers
in interface MonologFactoryProxy
java.rmi.RemoteException
public void addHandlerToLogger(java.lang.String handlername, java.lang.String loggerName) throws java.rmi.RemoteException
MonologFactoryProxy
addHandlerToLogger
in interface MonologFactoryProxy
java.rmi.RemoteException
public void removeHandlerFromLogger(java.lang.String handlerName, java.lang.String loggerName) throws java.rmi.RemoteException
MonologFactoryProxy
removeHandlerFromLogger
in interface MonologFactoryProxy
java.rmi.RemoteException
public void removeAllHandlersFromLogger(java.lang.String loggerName) throws java.rmi.RemoteException
MonologFactoryProxy
removeAllHandlersFromLogger
in interface MonologFactoryProxy
java.rmi.RemoteException
public void setAdditivity(boolean a, java.lang.String loggerName) throws java.rmi.RemoteException
MonologFactoryProxy
setAdditivity
in interface MonologFactoryProxy
java.rmi.RemoteException
public void setLoggerLevel(int level, java.lang.String loggerName) throws java.rmi.RemoteException
MonologFactoryProxy
setLoggerLevel
in interface MonologFactoryProxy
level
- is an int value corresponding to a levelloggerName
- is the name of logger which the level must be set.
java.rmi.RemoteException
public void setLoggerLevel(java.lang.String levelName, java.lang.String loggerName) throws java.rmi.RemoteException
MonologFactoryProxy
setLoggerLevel
in interface MonologFactoryProxy
loggerName
- is the name of logger which the level must be set.
java.rmi.RemoteException
public void addTopicToLogger(java.lang.String topic, java.lang.String loggerName) throws java.rmi.RemoteException
MonologFactoryProxy
addTopicToLogger
in interface MonologFactoryProxy
java.rmi.RemoteException
public void removeTopicFromLogger(java.lang.String topic, java.lang.String loggerName) throws java.rmi.RemoteException
MonologFactoryProxy
removeTopicFromLogger
in interface MonologFactoryProxy
java.rmi.RemoteException
public java.util.Properties getMonologProperties() throws java.rmi.RemoteException
MonologFactoryProxy
getMonologProperties
in interface MonologFactoryProxy
java.rmi.RemoteException
public void setMonologProperties(java.util.Properties p) throws java.rmi.RemoteException
MonologFactoryProxy
setMonologProperties
in interface MonologFactoryProxy
java.rmi.RemoteException
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |