Source Code Cross Referenced for ComponentManager.java in  » Net » openfire » org » xmpp » component » 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 » Net » openfire » org.xmpp.component 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * Copyright (C) 2004-2007 Jive Software. All rights reserved.
003:         *
004:         * This software is published under the terms of the GNU Public License (GPL),
005:         * a copy of which is included in this distribution.
006:         */package org.xmpp.component;
007:
008:        import org.jivesoftware.openfire.IQResultListener;
009:        import org.xmpp.packet.IQ;
010:        import org.xmpp.packet.Packet;
011:
012:        /**
013:         * Manages components.
014:         *
015:         * @see Component
016:         * @author Matt Tucker
017:         */
018:        public interface ComponentManager {
019:
020:            /**
021:             * Adds a component. The {@link Component#initialize(org.xmpp.packet.JID, ComponentManager)}
022:             * method will be called on the component. The subdomain specifies the address of
023:             * the component on a server. For example, if the subdomain is "test" and the XMPP
024:             * server is at "example.com", then the component's address would be "test.example.com".
025:             *
026:             * @param subdomain the subdomain of the component's address.
027:             * @param component the component.
028:             */
029:            public void addComponent(String subdomain, Component component)
030:                    throws ComponentException;
031:
032:            /**
033:             * Removes a component. The {@link Component#shutdown} method will be called on the
034:             * component.
035:             *
036:             * @param subdomain the subdomain of the component's address.
037:             */
038:            public void removeComponent(String subdomain)
039:                    throws ComponentException;
040:
041:            /**
042:             * Sends a packet to the XMPP server. The "from" value of the packet must not be null.
043:             * An <tt>IllegalArgumentException</tt> will be thrown when the "from" value is null.<p>
044:             *
045:             * Components are trusted by the server and may use any value in from address. Usually
046:             * the from address uses the component's address as the domain but this is not required.
047:             *
048:             * @param component the component sending the packet.
049:             * @param packet the packet to send.
050:             */
051:            public void sendPacket(Component component, Packet packet)
052:                    throws ComponentException;
053:
054:            /**
055:             * Sends an IQ packet to the XMPP server and waits to get an IQ of type result or error.
056:             * The "from" value of the packet must not be null. An <tt>IllegalArgumentException</tt>
057:             * will be thrown when the "from" value is null.<p>
058:             *
059:             * If no answer is received from the server before the specified timeout then an IQ
060:             * of type error will be returned.
061:             *
062:             * Components are trusted by the server and may use any value in from address. Usually
063:             * the from address uses the component's address as the domain but this is not required.
064:             *
065:             * @param component the component sending the packet.
066:             * @param packet the IQ packet to send.
067:             * @param timeout the number of milliseconds to wait before returning an IQ error.
068:             * @return the answer sent by the server. The answer could be an IQ of type result or
069:             *         error.
070:             */
071:            public IQ query(Component component, IQ packet, int timeout)
072:                    throws ComponentException;
073:
074:            /**
075:             * Sends an IQ packet to the server and returns immediately. The specified IQResultListener
076:             * will be invoked when an answer is received.
077:             *
078:             * @param component the component sending the packet.
079:             * @param packet the IQ packet to send.
080:             * @param listener the listener that will be invoked when an answer is received.
081:             */
082:            public void query(Component component, IQ packet,
083:                    IQResultListener listener) throws ComponentException;
084:
085:            /**
086:             * Returns a property value specified by name. Properties can be used by
087:             * components to store configuration data. It is recommended that each
088:             * component qualify property names to prevent overlap. For example a
089:             * component that broadcasts messages to groups of users, might prepend
090:             * all property names it uses with "broadcast.".
091:             *
092:             * @param name the property name.
093:             * @return the property value.
094:             */
095:            public String getProperty(String name);
096:
097:            /**
098:             * Sets a property value. Properties can be used by components to
099:             * store configuration data. It is recommended that each component
100:             * qualify property names to prevent overlap. For example a component
101:             * that broadcasts messages to groups of users, might prepend all
102:             * property names it uses with "broadcast.".
103:             *
104:             * @param name the property name.
105:             * @param value the property value.
106:             */
107:            public void setProperty(String name, String value);
108:
109:            /**
110:             * Returns the domain of the XMPP server. The domain name may be the IP address or the host
111:             * name.
112:             *
113:             * @return the domain of the XMPP server.
114:             */
115:            public String getServerName();
116:
117:            /**
118:             * Returns true if components managed by this component manager are external
119:             * components connected to the server over a network connection. Otherwise,
120:             * the components are internal to the server.
121:             *
122:             * @return true if the managed components are external components.
123:             */
124:            public boolean isExternalMode();
125:
126:            /**
127:             * Returns a Log instance, which can be used by components for logging error,
128:             * warning, info, and debug messages.
129:             *
130:             * @return a Log instance.
131:             */
132:            public Log getLog();
133:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.