Java Doc for UBTLogManager.java in  » Portal » Open-Portal » com » sun » portal » ubt » 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 » Portal » Open Portal » com.sun.portal.ubt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.portal.ubt.UBTLogManager

UBTLogManager
public class UBTLogManager implements UBTLogManagerMBean,FileChangeListener(Code)
This class manages UBT log configurations.


Field Summary
final public static  StringCONFIG_FILE_NAME_PROPERTY
     UBT configuration file name property.
final public static  StringCONFIG_FILE_VALUE_DEFAULT
     UBT configuration file name.
final public static  StringPORTAL_ID_PROPERTY
    
final public static  StringPORTAL_INSTANCE_ID_PROPERTY
    
final public static  StringPORTAL_INSTANCE_ID_TOKEN
     Portal instance ID token name supported by this managed.
final public static  StringUBT_CONFIG_CHECK_PERIOD_KEY
    
final public static  longUBT_CONFIG_CHECK_PERIOD_VALUE_DEFAULT
    
final public static  StringUBT_ENABLE_KEY
     UBT enable key name.
final public static  booleanUBT_ENABLE_VALUE_DEFAULT
     Default value of UBT enablement.
final public static  StringUBT_LOG_USER_ID_KEY
     Key to specify if UserID need to be logged as part of UBT.
final public static  booleanUBT_LOG_USER_ID_VALUE_DEFAULT
     Default value of the log UserID key.
final public static  StringUBT_ROOT_LOGGER
     Name of the UBT root logger.
final public static  StringUBT_ROOT_LOG_HANDLER_KEY
     Key name of the UBT root logger handler.
final public static  StringUBT_ROOT_LOG_HANDLER_VALUE_DEFAULT
     Default handler name.
final public static  StringUBT_ROOT_LOG_LEVEL_KEY
     Key name of the UBT root logger level.
final public static  StringUBT_ROOT_LOG_LEVEL_VALUE_DEFAULT
     Default value of the UBT root logger level.
final public static  StringUBT_SESSION_ID_ATTRIBUTE
    


Method Summary
protected  voidaddLogField(UBTLogField field)
     Add a log field.
public  voidaddReloadListener(PropertyChangeListener l)
    
public  voidfileChanged(String fileName)
     Method to be called if the configuration file is changed.
Parameters:
  fileName - Name of the file.
 LevelgetEventLevel(String eventName, Level defaultValue)
     Package private method to get an event's level. We return Level instance named by the "event..level" property.
 StringgetEventLoggerName(String eventName, String defaultValue)
     Package private method to get an event's logger name. We return Level instance named by the "event." property.
 StringgetFilePattern()
    
 FiltergetFilterProperty(String name, Filter defaultValue)
     Package private method to get a filter property. We return an instance of the class named by the "name" property.
 FormattergetFormatter(String name, Formatter defaultValue)
     Package private method to get a formatter property. We return an instance of the class named by the "name" property.
public static  UBTLogManagergetInstance()
     Get the singlton class instance.
 LevelgetLevelProperty(String name, Level defaultValue)
     Package private method to get a Level property.
public  VectorgetLogFields(Level level)
     Get log fields associated with a level.
public  StringgetProperty(String name)
     Get any property specified in the UBT configuration.
public  StringgetProperty(String name, String defaultVal)
     Get any property in the UBT configuration, if not available, return the default value.
public  EnumerationgetRegisteredUBTLoggers()
     Get the enumeration of the registered UBT loggers.
public  booleanisUBTEnabled()
     Is UBT enabled.
public  voidlogEvent(UBTLogRecord record)
     Log a UBT event.
public  voidreloadConfiguration()
     Method to reload configuration and apply them in the system.
public  voidremoveReloadListener(PropertyChangeListener l)
     Remove reload listener.

Field Detail
CONFIG_FILE_NAME_PROPERTY
final public static String CONFIG_FILE_NAME_PROPERTY(Code)
UBT configuration file name property.



CONFIG_FILE_VALUE_DEFAULT
final public static String CONFIG_FILE_VALUE_DEFAULT(Code)
UBT configuration file name.



PORTAL_ID_PROPERTY
final public static String PORTAL_ID_PROPERTY(Code)
Portal ID property name



PORTAL_INSTANCE_ID_PROPERTY
final public static String PORTAL_INSTANCE_ID_PROPERTY(Code)
Instance ID property name



PORTAL_INSTANCE_ID_TOKEN
final public static String PORTAL_INSTANCE_ID_TOKEN(Code)
Portal instance ID token name supported by this managed. This token can appear in the File handler pattern.



UBT_CONFIG_CHECK_PERIOD_KEY
final public static String UBT_CONFIG_CHECK_PERIOD_KEY(Code)
Key name of the configuration file update check periodicity



UBT_CONFIG_CHECK_PERIOD_VALUE_DEFAULT
final public static long UBT_CONFIG_CHECK_PERIOD_VALUE_DEFAULT(Code)
Default value of the configuration file update check periodicity



UBT_ENABLE_KEY
final public static String UBT_ENABLE_KEY(Code)
UBT enable key name.



UBT_ENABLE_VALUE_DEFAULT
final public static boolean UBT_ENABLE_VALUE_DEFAULT(Code)
Default value of UBT enablement.



UBT_LOG_USER_ID_KEY
final public static String UBT_LOG_USER_ID_KEY(Code)
Key to specify if UserID need to be logged as part of UBT.



UBT_LOG_USER_ID_VALUE_DEFAULT
final public static boolean UBT_LOG_USER_ID_VALUE_DEFAULT(Code)
Default value of the log UserID key.



UBT_ROOT_LOGGER
final public static String UBT_ROOT_LOGGER(Code)
Name of the UBT root logger.



UBT_ROOT_LOG_HANDLER_KEY
final public static String UBT_ROOT_LOG_HANDLER_KEY(Code)
Key name of the UBT root logger handler.



UBT_ROOT_LOG_HANDLER_VALUE_DEFAULT
final public static String UBT_ROOT_LOG_HANDLER_VALUE_DEFAULT(Code)
Default handler name.



UBT_ROOT_LOG_LEVEL_KEY
final public static String UBT_ROOT_LOG_LEVEL_KEY(Code)
Key name of the UBT root logger level.



UBT_ROOT_LOG_LEVEL_VALUE_DEFAULT
final public static String UBT_ROOT_LOG_LEVEL_VALUE_DEFAULT(Code)
Default value of the UBT root logger level.



UBT_SESSION_ID_ATTRIBUTE
final public static String UBT_SESSION_ID_ATTRIBUTE(Code)
UBT Session ID attribute





Method Detail
addLogField
protected void addLogField(UBTLogField field)(Code)
Add a log field.
Parameters:
  field - log field



addReloadListener
public void addReloadListener(PropertyChangeListener l)(Code)
Add Listener to reload event of configuration
Parameters:
  l - listener



fileChanged
public void fileChanged(String fileName)(Code)
Method to be called if the configuration file is changed.
Parameters:
  fileName - Name of the file. Dummy.



getEventLevel
Level getEventLevel(String eventName, Level defaultValue)(Code)
Package private method to get an event's level. We return Level instance named by the "event..level" property. If the property is not defined or has problems we return the defaultValue.



getEventLoggerName
String getEventLoggerName(String eventName, String defaultValue)(Code)
Package private method to get an event's logger name. We return Level instance named by the "event." property. If the property is not defined or has problems we return the defaultValue.



getFilePattern
String getFilePattern()(Code)
Package private method to get file pattern If the property is not defined, a resource file is loaded for default value of the pattern



getFilterProperty
Filter getFilterProperty(String name, Filter defaultValue)(Code)
Package private method to get a filter property. We return an instance of the class named by the "name" property. If the property is not defined or has problems we return the defaultValue.



getFormatter
Formatter getFormatter(String name, Formatter defaultValue)(Code)
Package private method to get a formatter property. We return an instance of the class named by the "name" property. If the property is not defined or has problems we return the defaultValue.



getInstance
public static UBTLogManager getInstance()(Code)
Get the singlton class instance. UBTLogManager instance



getLevelProperty
Level getLevelProperty(String name, Level defaultValue)(Code)
Package private method to get a Level property. If the property is not defined or cannot be parsed we return the given default value.



getLogFields
public Vector getLogFields(Level level)(Code)
Get log fields associated with a level. This method is usually used by a UBT log formatter.
Parameters:
  level - Level Vector of the log fields.



getProperty
public String getProperty(String name)(Code)
Get any property specified in the UBT configuration.
Parameters:
  name - of the property value of the property.



getProperty
public String getProperty(String name, String defaultVal)(Code)
Get any property in the UBT configuration, if not available, return the default value.
Parameters:
  name - of the propert
Parameters:
  defaultVal - Default value of the property if not found Value of the property



getRegisteredUBTLoggers
public Enumeration getRegisteredUBTLoggers()(Code)
Get the enumeration of the registered UBT loggers. Enumeration of logger names.



isUBTEnabled
public boolean isUBTEnabled()(Code)
Is UBT enabled. true if enabled else false.



logEvent
public void logEvent(UBTLogRecord record)(Code)
Log a UBT event. Every UBT instrumenation should call this method to log the event eventually to a data sink.
Parameters:
  record - UBT log record.



reloadConfiguration
public void reloadConfiguration()(Code)
Method to reload configuration and apply them in the system.



removeReloadListener
public void removeReloadListener(PropertyChangeListener l)(Code)
Remove reload listener.
Parameters:
  l - listener



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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