Java Doc for IMAppender.java in  » ESB » wso2-esb » org » wso2 » esb » logging » 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 » ESB » wso2 esb » org.wso2.esb.logging 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.wso2.esb.logging.IMAppender

IMAppender
public class IMAppender extends AppenderSkeleton (Code)
IMAppender appends tracing requests through instant messaging network.
author:
   Rafael Luque & Ruth Zamorano
version:
   $Revision: 1.2 $


Field Summary
protected  CyclicBuffercb
    
protected  Chatchat
    
protected  XMPPConnectioncon
    
protected  TriggeringEventEvaluatorevaluator
    
protected  GroupChatgroupchat
    

Constructor Summary
public  IMAppender()
     The default constructor will instantiate the appender with a default TriggeringEventEvaluator that will trigger on events with level ERROR or higher.
public  IMAppender(TriggeringEventEvaluator evaluator)
    

Method Summary
public  voidactivateOptions()
     Options are activated and become effective only after calling this method.
public  voidappend(LoggingEvent event)
     This method called by AppenderSkeleton.doAppend method does most of the real appending work.
protected  booleancheckEntryConditions()
     This method determines if there is a sense in attempting to append.

It checks whether there is an output chat available and also if there is a set layout.

public synchronized  voidclose()
     Close this IMAppender.
public  intgetBufferSize()
    
public  StringgetEvaluatorClass()
    
public  StringgetHost()
    
public  StringgetNickname()
    
public  StringgetPassword()
    
public  intgetPort()
    
public  StringgetRecipient()
    
public  StringgetUsername()
    
public  booleanisChatroom()
    
public  booleanisSSL()
    
public  booleanrequiresLayout()
     The IMAppender requires a layout.
protected  voidsendBuffer()
     Send the contents of the cyclic buffer as an IM message.
public  voidsetBufferSize(int bufferSize)
    
public  voidsetChatroom(boolean chatroom)
    
public  voidsetEvaluatorClass(String value)
     The EvaluatorClass option takes a string value representing the name of the class implementing the TriggeringEventEvaluator interface.
public  voidsetHost(String host)
    
public  voidsetNickname(String nickname)
    
public  voidsetPassword(String password)
    
public  voidsetPort(int port)
    
public  voidsetRecipient(String recipient)
    
public  voidsetSSL(boolean SSL)
    
public  voidsetUsername(String username)
    

Field Detail
cb
protected CyclicBuffer cb(Code)



chat
protected Chat chat(Code)



con
protected XMPPConnection con(Code)



evaluator
protected TriggeringEventEvaluator evaluator(Code)



groupchat
protected GroupChat groupchat(Code)




Constructor Detail
IMAppender
public IMAppender()(Code)
The default constructor will instantiate the appender with a default TriggeringEventEvaluator that will trigger on events with level ERROR or higher.



IMAppender
public IMAppender(TriggeringEventEvaluator evaluator)(Code)




Method Detail
activateOptions
public void activateOptions()(Code)
Options are activated and become effective only after calling this method.



append
public void append(LoggingEvent event)(Code)
This method called by AppenderSkeleton.doAppend method does most of the real appending work. Adds the event to a buffer and checks if the event triggers a message to be sent.



checkEntryConditions
protected boolean checkEntryConditions()(Code)
This method determines if there is a sense in attempting to append.

It checks whether there is an output chat available and also if there is a set layout. If these checks fail, then the boolean value false is returned.




close
public synchronized void close()(Code)
Close this IMAppender. Closing all resources used by the appender. A closed appender cannot be re-opened.



getBufferSize
public int getBufferSize()(Code)



getEvaluatorClass
public String getEvaluatorClass()(Code)



getHost
public String getHost()(Code)



getNickname
public String getNickname()(Code)



getPassword
public String getPassword()(Code)



getPort
public int getPort()(Code)



getRecipient
public String getRecipient()(Code)



getUsername
public String getUsername()(Code)



isChatroom
public boolean isChatroom()(Code)



isSSL
public boolean isSSL()(Code)



requiresLayout
public boolean requiresLayout()(Code)
The IMAppender requires a layout. Hence, this method returns true.



sendBuffer
protected void sendBuffer()(Code)
Send the contents of the cyclic buffer as an IM message.



setBufferSize
public void setBufferSize(int bufferSize)(Code)



setChatroom
public void setChatroom(boolean chatroom)(Code)



setEvaluatorClass
public void setEvaluatorClass(String value)(Code)
The EvaluatorClass option takes a string value representing the name of the class implementing the TriggeringEventEvaluator interface. A corresponding object will be instantiated and assigned as the triggering event evaluator for the SMTPAppender.



setHost
public void setHost(String host)(Code)



setNickname
public void setNickname(String nickname)(Code)



setPassword
public void setPassword(String password)(Code)



setPort
public void setPort(int port)(Code)



setRecipient
public void setRecipient(String recipient)(Code)



setSSL
public void setSSL(boolean SSL)(Code)



setUsername
public void setUsername(String username)(Code)



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