Java Doc for MonologFactoryMBean.java in  » Development » Monolog » org » objectweb » util » monolog » wrapper » remote » api » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Development » Monolog » org.objectweb.util.monolog.wrapper.remote.api 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.objectweb.util.monolog.wrapper.remote.api.MonologFactoryMBean

All known Subclasses:   org.objectweb.util.monolog.wrapper.remote.lib.MonologFactoryMBeanImpl,
MonologFactoryMBean
public interface MonologFactoryMBean (Code)
Defines a MBean for managing the 3 Monolog concepts: Logger, Handler and Level
See Also:   org.objectweb.util.monolog.wrapper.remote.api.LoggerInfo
author:
   S.Chassande-Barrioz




Method Summary
 voidaddHandlerToLogger(String handlerName, String loggerName)
     A TopicalLogger manages a list of Handler instances.
 voidaddTopicToLogger(String topic, String loggerName)
     This method allows adding a topic to a TopicalLogger.
 intcompareTo(String levelname1, String levelname2)
     Compares two levels.
 booleancreateHandler(String hn, String handlertype)
     Creates a new handler
Parameters:
  hn - is the name of the handler to create
Parameters:
  handlertype - is the type of the parameter.
 booleandefineLevel(String name, int value)
     It defines a new Level with a name and an integer value.
 booleandefineLevel(String name, String value)
     It defines a new Level with a name and a string value.
 MapgetAllHandlerAttributes()
    
 MapgetHandlerAttributes(String handlername)
    
 String[]getHandlerNames()
     It retrieves name of all handler managed by this factory.
 LevelgetLevel(String name)
     It retrieves a Level instance which the name is equals to the parameter.
 LevelgetLevel(int value)
     It retrieves a Level instance which the integer value is equals to the parameter.
Parameters:
  value - is the integer value of request Level a Leve instance or a null value if the level does not exist.
 Level[]getLevels()
     It retrieves all Level instances defined in this manager.
 LoggerInfogetLogger(String loggername)
     Creates a logger if it does not exist.
 LoggerInfogetLogger(String key, String resourceBundleName)
     Creates a logger if it does not exist.
Parameters:
  loggername - is the name of the logger
Parameters:
  resourceBundleName - allows specifying the name of a resource bundle in order to internationalise the logging.
 LoggerInfo[]getLoggers()
     It retrieves a list of all loggers.
 PropertiesgetMonologProperties()
     Retrieves the properties corresponding to the current configuration.
 StringgetResourceBundleName()
     Accessors to a resource bundle name associated to a LoggerFactory.
 voidremoveAllHandlersFromLogger(String loggerName)
     A TopicalLogger manages a list of Handler instances.
 booleanremoveHandler(String handlername)
    
 voidremoveHandlerFromLogger(String handlerName, String loggerName)
     A TopicalLogger manages a list of Handler instances.
 voidremoveLevel(String name)
     It removes a Level instance to this manager.
 voidremoveTopicFromLogger(String topic, String loggerName)
     This method allows removing a topic to a TopicalLogger.
 voidsetAdditivity(boolean a, String loggerName)
     It assigns the additivity flag for this logger instance.
 voidsetHandlerAttribute(String handlername, String attributeName, String value)
     Assignes a value to an handler attribute.
 voidsetLoggerLevel(int level, String loggerName)
     It assigns a level to a logger.
 voidsetLoggerLevel(String levelName, String loggerName)
     It assigns a level to a logger.
 voidsetMonologProperties(Properties p)
     Configure Monolog with properties.
 voidsetResourceBundleName(String resourceBundleName)
     Accessors to a resource bundle name associated to a LoggerFactory.



Method Detail
addHandlerToLogger
void addHandlerToLogger(String handlerName, String loggerName)(Code)
A TopicalLogger manages a list of Handler instances. This method allows adding a handler to this list. The addHandler method returns true only if the Handler did not exist



addTopicToLogger
void addTopicToLogger(String topic, String loggerName)(Code)
This method allows adding a topic to a TopicalLogger. This actions change the hierarchical structure, but also the list of handlers. The list of handlers of a TopicalLogger is composed of its handlers and all handlers inherited from its parents. Adding a topic changes the inherited handlers list.



compareTo
int compareTo(String levelname1, String levelname2)(Code)
Compares two levels.
Parameters:
  levelname1 - is the name of the first level
Parameters:
  levelname2 - is the name of the second level



createHandler
boolean createHandler(String hn, String handlertype)(Code)
Creates a new handler
Parameters:
  hn - is the name of the handler to create
Parameters:
  handlertype - is the type of the parameter. The possible value aredefined in this interface by the XXX_HANDLER_TYPE constants. true if the handler has been created



defineLevel
boolean defineLevel(String name, int value)(Code)
It defines a new Level with a name and an integer value.
Parameters:
  name - is the name of the new level
Parameters:
  value - is the integer value of the new level true if the level has been created.



defineLevel
boolean defineLevel(String name, String value)(Code)
It defines a new Level with a name and a string value. The string value is analyzed to obtain the integer value.
Parameters:
  name - is the name of the new level
Parameters:
  value - is the string value of the new level true if the level has been created.



getAllHandlerAttributes
Map getAllHandlerAttributes()(Code)
It retrieves the attributes of all handlers Map(String handlername, Map(String attributename, String attributevalue))



getHandlerAttributes
Map getHandlerAttributes(String handlername)(Code)
It retrieves the attributes of an handler
Parameters:
  handlername - is the name of the handler a map containing the association between an attribute name (String) and an attribute value (String).



getHandlerNames
String[] getHandlerNames()(Code)
It retrieves name of all handler managed by this factory.



getLevel
Level getLevel(String name)(Code)
It retrieves a Level instance which the name is equals to the parameter.
Parameters:
  name - is the name of request Level a Leve instance or a null value if the level does not exist.



getLevel
Level getLevel(int value)(Code)
It retrieves a Level instance which the integer value is equals to the parameter.
Parameters:
  value - is the integer value of request Level a Leve instance or a null value if the level does not exist. Asit is possible to define several Levels which have the same integer valuethis methods returns the Level instance of first name found in the list.



getLevels
Level[] getLevels()(Code)
It retrieves all Level instances defined in this manager.



getLogger
LoggerInfo getLogger(String loggername)(Code)
Creates a logger if it does not exist.
Parameters:
  loggername - is the name of the logger



getLogger
LoggerInfo getLogger(String key, String resourceBundleName)(Code)
Creates a logger if it does not exist.
Parameters:
  loggername - is the name of the logger
Parameters:
  resourceBundleName - allows specifying the name of a resource bundle in order to internationalise the logging.



getLoggers
LoggerInfo[] getLoggers()(Code)
It retrieves a list of all loggers.



getMonologProperties
Properties getMonologProperties()(Code)
Retrieves the properties corresponding to the current configuration.



getResourceBundleName
String getResourceBundleName()(Code)
Accessors to a resource bundle name associated to a LoggerFactory.



removeAllHandlersFromLogger
void removeAllHandlersFromLogger(String loggerName)(Code)
A TopicalLogger manages a list of Handler instances. This method allows removing all handler.



removeHandler
boolean removeHandler(String handlername)(Code)
It removes the handler which the name is specified by the parameter
Parameters:
  handlername - is the name of the handler true if the handler has been removed.



removeHandlerFromLogger
void removeHandlerFromLogger(String handlerName, String loggerName)(Code)
A TopicalLogger manages a list of Handler instances. This method allows removing a handler to this list.



removeLevel
void removeLevel(String name)(Code)
It removes a Level instance to this manager.



removeTopicFromLogger
void removeTopicFromLogger(String topic, String loggerName)(Code)
This method allows removing a topic to a TopicalLogger. This actions change the hierarchical structure, but also the list of handlers. The list of handlers of a TopicalLogger is composed of its handlers and all handlers inherited from its parents. Removing a topic changes the inherited handlers list.



setAdditivity
void setAdditivity(boolean a, String loggerName)(Code)
It assigns the additivity flag for this logger instance.



setHandlerAttribute
void setHandlerAttribute(String handlername, String attributeName, String value)(Code)
Assignes a value to an handler attribute.
Parameters:
  handlername - is the name of the handler
Parameters:
  attributeName - is the name of the attribute
Parameters:
  value - is the new value of the attribute



setLoggerLevel
void setLoggerLevel(int level, String loggerName)(Code)
It assigns a level to a logger.
Parameters:
  level - is an int value corresponding to a level
Parameters:
  loggerName - is the name of logger which the level must be set.



setLoggerLevel
void setLoggerLevel(String levelName, String loggerName)(Code)
It assigns a level to a logger. If the level name does not match any existing level, the level is not set on the logger.
Parameters:
  level - is a string value corresponding to a level defined into theLevelFactory
Parameters:
  loggerName - is the name of logger which the level must be set.



setMonologProperties
void setMonologProperties(Properties p)(Code)
Configure Monolog with properties.



setResourceBundleName
void setResourceBundleName(String resourceBundleName)(Code)
Accessors to a resource bundle name associated to a LoggerFactory.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.