Source Code Cross Referenced for ChannelFactory.java in  » Net » JGroups-2.4.1-sp3 » org » jgroups » 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 » JGroups 2.4.1 sp3 » org.jgroups 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


01:        // $Id: ChannelFactory.java,v 1.9 2006/09/01 14:40:27 belaban Exp $
02:
03:        package org.jgroups;
04:
05:        import org.w3c.dom.Element;
06:
07:        import java.io.File;
08:        import java.net.URL;
09:
10:        /**
11:         A channel factory takes care of creation of channel implementations. Subclasses will create
12:         different implementations.
13:         */
14:        public interface ChannelFactory {
15:
16:            /**
17:             * Initializes the factory.
18:             * @param properties
19:             * @throws ChannelException
20:             */
21:            void setMultiplexerConfig(Object properties) throws Exception;
22:
23:            /**
24:             * Initializes the factory from  a file. Example: conf/stacks.xml
25:             * @param properties
26:             * @throws ChannelException
27:             */
28:            void setMultiplexerConfig(File properties) throws Exception;
29:
30:            void setMultiplexerConfig(Element properties) throws Exception;
31:
32:            void setMultiplexerConfig(URL properties) throws Exception;
33:
34:            void setMultiplexerConfig(String properties) throws Exception;
35:
36:            /**
37:             * Creates an implementation of Channel using a guven stack name and registering under a given identity.
38:             * The latter is used for multiplexing requests to and from a block on top of a channel.
39:             * @param stack_name The name of the stack to be used. All stacks are defined in the configuration
40:             * with which the factory is configured (see {@link #setMultiplexerConfig(Object)} for example.
41:             * @param id The identifier used for multiplexing and demultiplexing (dispatching requests to one of possibly
42:             * multiple receivers). Note that id needs to be a string since it will be shipped with each message. Try to pick
43:             * a short string, because this is shipped with every message (overhead). todo: possibly change to short ?
44:             * @param register_for_state_transfer If set to true, after all registered listeners called connect() on the returned Channel,
45:             * the state for all registered listeners will be fetched and set in all listeners
46:             * @param substate_id The ID of the substate to be retrieved. Set this to null if the entire state should be retrieved. If
47:             * register_for_state_transfer is false, substate_id will be ignored
48:             * @return An implementation of Channel which keeps track of the id, so that it can be attached to each message
49:             * and be properly dispatched at the receiver. This will be a {@link org.jgroups.mux.MuxChannel}.
50:             * @throws ChannelException
51:             */
52:            Channel createMultiplexerChannel(String stack_name, String id,
53:                    boolean register_for_state_transfer, String substate_id)
54:                    throws Exception;
55:
56:            Channel createMultiplexerChannel(String stack_name, String id)
57:                    throws Exception;
58:
59:            Channel createChannel(Object props) throws ChannelException;
60:
61:            /** Create a new channel with the properties defined in the factory */
62:            Channel createChannel() throws ChannelException;
63:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.