Java Doc for AbstractJamesService.java in  » Net » james-2.3.1 » org » apache » james » core » 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 » james 2.3.1 » org.apache.james.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.apache.james.core.AbstractJamesService

All known Subclasses:   org.apache.james.nntpserver.NNTPServer,  org.apache.james.smtpserver.SMTPServer,  org.apache.james.pop3server.POP3Server,  org.apache.james.remotemanager.RemoteManager,
AbstractJamesService
abstract public class AbstractJamesService extends AbstractHandlerFactory implements Serviceable,Configurable,Disposable,Initializable,ConnectionHandlerFactory(Code)
Server which creates connection handlers. All new James service must inherit from this abstract implementation.


Field Summary
final protected static  StringBACKLOG_NAME
     The name of the parameter defining the connection backlog.
final protected static  intDEFAULT_BACKLOG
     The default value for the connection backlog.
final protected static  intDEFAULT_TIMEOUT
     The default value for the connection timeout.
final public static  StringHELLO_NAME
     The name of the parameter defining the service hello name.
final protected static  StringTIMEOUT_NAME
     The name of the parameter defining the connection timeout.
protected  intbacklog
     The connection backlog.
protected  InetAddressbindTo
     Network interface to which the service will bind.
protected  IntegerconnectionLimit
     The maximum number of connections allowed for this service.
protected  StringconnectionName
     The name of the connection used by this service.
protected  StringhelloName
     The hello name for the service.
protected  intport
     The port on which this service will be made available.
protected  ServerSocketserverSocket
    
protected  StringserverSocketType
     The server socket type used to generate connections for this server.
protected  StringthreadGroup
    
protected  ThreadPoolthreadPool
     The thread pool used by this service that holds the threads that service the client connections.
protected  inttimeout
     The connection idle timeout.


Method Summary
public  voidconfigure(Configuration conf)
    
public  voiddispose()
    
protected  intgetDefaultPort()
     Get the default port for this server type.
public  StringgetNetworkInterface()
    
public  intgetPort()
    
public  StringgetServiceType()
     This method returns the type of service provided by this server. This should be invariant over the life of the class. Subclasses may override this implementation.
public  StringgetSocketType()
    
protected  WatchdogFactorygetWatchdogFactory()
     This constructs the WatchdogFactory that will be used to guard against runaway or stuck behavior.
public  voidinitialize()
    
protected  booleanisDefaultTLSEnabled()
     Get whether TLS is enabled for this server's socket by default.
final public  booleanisEnabled()
     Describes whether this service is enabled by configuration.
abstract protected  ConnectionHandlernewHandler()
     Overide this method to create actual instance of connection handler.
public  voidservice(ServiceManager comp)
    

Field Detail
BACKLOG_NAME
final protected static String BACKLOG_NAME(Code)
The name of the parameter defining the connection backlog.



DEFAULT_BACKLOG
final protected static int DEFAULT_BACKLOG(Code)
The default value for the connection backlog.



DEFAULT_TIMEOUT
final protected static int DEFAULT_TIMEOUT(Code)
The default value for the connection timeout.



HELLO_NAME
final public static String HELLO_NAME(Code)
The name of the parameter defining the service hello name.



TIMEOUT_NAME
final protected static String TIMEOUT_NAME(Code)
The name of the parameter defining the connection timeout.



backlog
protected int backlog(Code)
The connection backlog.



bindTo
protected InetAddress bindTo(Code)
Network interface to which the service will bind. If not set, the server binds to all available interfaces.



connectionLimit
protected Integer connectionLimit(Code)
The maximum number of connections allowed for this service.



connectionName
protected String connectionName(Code)
The name of the connection used by this service. We need to track this so we can tell the ConnectionManager which service to disconnect upon shutdown.



helloName
protected String helloName(Code)
The hello name for the service.



port
protected int port(Code)
The port on which this service will be made available.



serverSocket
protected ServerSocket serverSocket(Code)



serverSocketType
protected String serverSocketType(Code)
The server socket type used to generate connections for this server.



threadGroup
protected String threadGroup(Code)
The name of the thread group to be used by this service for generating connections



threadPool
protected ThreadPool threadPool(Code)
The thread pool used by this service that holds the threads that service the client connections.



timeout
protected int timeout(Code)
The connection idle timeout. Used primarily to prevent server problems from hanging a connection.





Method Detail
configure
public void configure(Configuration conf) throws ConfigurationException(Code)

See Also:   org.apache.avalon.framework.configuration.Configurable.configure(Configuration)



dispose
public void dispose()(Code)

See Also:   org.apache.avalon.framework.activity.Disposable.dispose



getDefaultPort
protected int getDefaultPort()(Code)
Get the default port for this server type. It is strongly recommended that subclasses of this class override this method to specify the default port for their specific server type. the default port



getNetworkInterface
public String getNetworkInterface()(Code)
Returns the address if the network interface the socket is bound to String The network interface name



getPort
public int getPort()(Code)
Returns the port that the service is bound to int The port number



getServiceType
public String getServiceType()(Code)
This method returns the type of service provided by this server. This should be invariant over the life of the class. Subclasses may override this implementation. This implementation parses the complete class name and returns the undecorated class name. description of this server



getSocketType
public String getSocketType()(Code)
Returns the server socket type, plain or SSL String The scoekt type, plain or SSL



getWatchdogFactory
protected WatchdogFactory getWatchdogFactory()(Code)
This constructs the WatchdogFactory that will be used to guard against runaway or stuck behavior. Should only be called once by a subclass in its initialize() method. the WatchdogFactory to be employed by subclasses.



initialize
public void initialize() throws Exception(Code)

See Also:   org.apache.avalon.framework.activity.Initializable.initialize



isDefaultTLSEnabled
protected boolean isDefaultTLSEnabled()(Code)
Get whether TLS is enabled for this server's socket by default. the default port



isEnabled
final public boolean isEnabled()(Code)
Describes whether this service is enabled by configuration. is the service enabled.



newHandler
abstract protected ConnectionHandler newHandler() throws Exception(Code)
Overide this method to create actual instance of connection handler. the new ConnectionHandler
exception:
  Exception - if an error occurs



service
public void service(ServiceManager comp) throws ServiceException(Code)

See Also:   org.apache.avalon.framework.service.Serviceable.service(ServiceManager)



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