Java Doc for Server.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » server » cluster » 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 » EJB Server resin 3.1.5 » resin » com.caucho.server.cluster 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.caucho.server.port.ProtocolDispatchServer
   com.caucho.server.cluster.Server

Server
public class Server extends ProtocolDispatchServer implements EnvironmentBean,SchemaBean,AlarmListener,ClassLoaderListener(Code)

Inner Class :public static class SelectManagerCompat


Constructor Summary
public  Server(ClusterServer clusterServer)
     Creates a new servlet server.

Method Summary
public  voidaddEarDefault(EarConfig config)
    
public  voidaddErrorPage(ErrorPage errorPage)
    
public  voidaddHost(HostConfig host)
     Adds the host.
public  voidaddHostDefault(HostConfig init)
     Adds a HostDefault.
public  voidaddHostDeploy(HostExpandDeployGenerator deploy)
     Adds a HostDeploy.
public  voidaddPing(ResourceAdapter ping)
     Adds the ping.
public  voidaddSelectManager(SelectManagerCompat selectManager)
    
public  voidaddWebAppDefault(WebAppConfig init)
     Adds a WebAppDefault.
public  voidbindPorts()
     Bind the ports.
public  InvocationbuildInvocation(Invocation invocation)
    
public  voidclassLoaderDestroy(DynamicClassLoader loader)
     Handles the case where a class loader is dropped.
public  voidclassLoaderInit(DynamicClassLoader loader)
     Handles the case where a class loader is activated.
public  voidclearCache()
     Clears the proxy cache.
public  voidclearCacheByPattern(String hostPattern, String uriPattern)
     Clears the catch by matching the invocation.
public  AbstractCachecreateCache()
     Adds the cache.
public  HostExpandDeployGeneratorcreateHostDeploy()
     Adds a HostDeploy.
public  ManagementcreateManagement()
    
public  ResourceAdaptercreatePing()
     Creates the ping.
public  RewriteDispatchcreateRewriteDispatch()
     Adds rewrite-dispatch.
public  voiddestroy()
     Closes the server.
public  intgetAcceptListenBacklog()
    
public  intgetAcceptThreadMax()
     Sets the maximum spare listen.
public  intgetAcceptThreadMin()
     Gets the minimum spare listen.
public  ServerMXBeangetAdmin()
     Returns the admin.
public  StringgetAlternateSessionURLPrefix()
     Gets the alternate session url prefix.
public  ArrayList<CacheItem>getCacheStatistics()
     Returns the cache stuff.
public  ClassLoadergetClassLoader()
    
public  ClustergetCluster()
     Returns the cluster.
public  ThrowablegetConfigException()
    
public  StringgetConnectionErrorPage()
     Gets the connection error page.
public  WebAppgetDefaultWebApp()
    
public  longgetDependencyCheckInterval()
     Returns the dependency check interval.
public  WebAppgetErrorWebApp()
     Returns the error webApp during startup.
public  intgetFreeKeepaliveSelect()
     Returns the number of select keepalives available.
public  HostgetHost(String hostName, int port)
     Returns the matching servlet pattern for a URL.
public  Collection<HostController>getHostControllers()
     Returns the host controllers.
public  longgetKeepaliveConnectionTimeMax()
    
public  intgetKeepaliveMax()
     Returns the thread-based keepalive max.
public  intgetKeepaliveSelectCount()
     Returns the select keepalive count.
public  voidgetKeepaliveSelectThreadTimeout(Period period)
    
public  longgetKeepaliveSelectThreadTimeout()
    
public  longgetKeepaliveTimeout()
    
public  longgetMemoryFreeMin()
    
public  Collection<Port>getPorts()
     Returns the Port s for this server.
public  longgetProxyCacheHitCount()
     Returns the proxy cache hit count.
public  longgetProxyCacheMissCount()
     Returns the proxy cache miss count.
public  PathgetRootDirectory()
     Sets the root directory.
public  StringgetSSLSessionCookie()
    
public  StringgetSchema()
     Returns the relax schema.
public  StringgetServerHeader()
     Gets the server header.
public  StringgetServerId()
     Returns the id.
public  intgetServerIndex()
    
public  StringgetServletPattern(String hostName, int port, String url)
     Returns the matching servlet pattern for a URL.
public  StringgetSessionCookie()
    
public  StringgetSessionURLPrefix()
     Gets the session url prefix.
public  longgetShutdownWaitMax()
     Gets the max wait time for a shutdown.
public  longgetSocketTimeout()
     Gets the read timeout for the request sockets.
public  longgetStartTime()
     Returns the time the server started in ms.
public  StringgetState()
    
public  longgetSuspendTimeMax()
    
public  WebAppgetWebApp(String hostName, int port, String url)
     Returns the matching web-app for a URL.
public  voidhandleAlarm(Alarm alarm)
     Handles the alarm.
public  voidinit()
     Initialization.
public  booleanisActive()
    
public  booleanisBindPortsAfterStart()
     If true, ports are bound at end.
public  booleanisDeployError()
     Return true if idle.
public  booleanisDestroyed()
     Returns true if the server is closed.
public  booleanisDestroying()
     Returns true if the server is closed.
public  booleanisKeepaliveSelectEnable()
    
public  booleanisModified()
     Returns true if the server has been modified and needs restarting.
public  booleanisModifiedNow()
     Returns true if the server has been modified and needs restarting.
public  booleanisSelectManagerEnabled()
    
public  booleanisStopped()
     Returns true if the server is stopped.
public  booleanisStopping()
     Returns true if the server is stopped.
public  voidsetAcceptListenBacklog(int backlog)
    
public  voidsetAcceptThreadMax(int maxSpare)
     Sets the maximum spare listen.
public  voidsetAcceptThreadMin(int minSpare)
     Sets the minimum spare listen.
public  voidsetAccessLog(AccessLog log)
     Sets the access log.
public  voidsetAlternateSessionURLPrefix(String urlPrefix)
     Sets the alternate session url prefix.
public  voidsetBindPortsAfterStart(boolean bindAtEnd)
     If true, ports are bound at end.
public  voidsetConfigException(Throwable exn)
     Returns the configuration instance.
public  voidsetConnectionErrorPage(String errorPage)
     Sets the connection error page.
public  voidsetKeepaliveConnectionTimeMax(Period period)
    
public  voidsetKeepaliveMax(int max)
    
public  voidsetKeepaliveSelectEnable(boolean enable)
    
public  voidsetKeepaliveSelectMax(int max)
    
public  voidsetKeepaliveTimeout(Period period)
    
public  voidsetMemoryFreeMin(Bytes min)
    
public  voidsetRedeployMode(String redeployMode)
    
public  voidsetRootDir(Path path)
     Sets the root directory.
public  voidsetRootDirectory(Path path)
     Sets the root directory.
public  voidsetSSLSessionCookie(String cookie)
    
public  voidsetServerHeader(String server)
     Sets the server header.
public  voidsetSessionCookie(String cookie)
    
public  voidsetSessionURLPrefix(String urlPrefix)
     Sets the session url prefix.
public  voidsetShutdownWaitMax(Period waitTime)
     Sets the max wait time for shutdown.
public  voidsetSocketTimeout(Period period)
     Sets the default read/write timeout for the request sockets.
public  voidsetSuspendTimeMax(Period period)
    
public  voidsetThreadExecutorTaskMax(int max)
     Sets the maximum executor (background) thread.
public  voidsetThreadIdleMax(int max)
     Sets the maximum number of idle threads in the thread pool.
public  voidsetThreadIdleMin(int min)
     Sets the minimum number of idle threads in the thread pool.
public  voidsetThreadMax(int max)
    
public  voidsetURLCharacterEncoding(String encoding)
     Sets URL encoding.
public  voidstart()
     Start the server.
public  voidstartPorts()
     Start the ports.
public  voidstop()
     Closes the server.
public  StringtoString()
    


Constructor Detail
Server
public Server(ClusterServer clusterServer)(Code)
Creates a new servlet server.




Method Detail
addEarDefault
public void addEarDefault(EarConfig config)(Code)
Adds an EarDefault



addErrorPage
public void addErrorPage(ErrorPage errorPage)(Code)
Adds an error page



addHost
public void addHost(HostConfig host) throws Exception(Code)
Adds the host.



addHostDefault
public void addHostDefault(HostConfig init)(Code)
Adds a HostDefault.



addHostDeploy
public void addHostDeploy(HostExpandDeployGenerator deploy)(Code)
Adds a HostDeploy.



addPing
public void addPing(ResourceAdapter ping) throws ConfigException(Code)
Adds the ping.



addSelectManager
public void addSelectManager(SelectManagerCompat selectManager)(Code)



addWebAppDefault
public void addWebAppDefault(WebAppConfig init)(Code)
Adds a WebAppDefault.



bindPorts
public void bindPorts() throws Exception(Code)
Bind the ports.



buildInvocation
public Invocation buildInvocation(Invocation invocation) throws Throwable(Code)
Sets the invocation



classLoaderDestroy
public void classLoaderDestroy(DynamicClassLoader loader)(Code)
Handles the case where a class loader is dropped.



classLoaderInit
public void classLoaderInit(DynamicClassLoader loader)(Code)
Handles the case where a class loader is activated.



clearCache
public void clearCache()(Code)
Clears the proxy cache.



clearCacheByPattern
public void clearCacheByPattern(String hostPattern, String uriPattern)(Code)
Clears the catch by matching the invocation.



createCache
public AbstractCache createCache() throws ConfigException(Code)
Adds the cache.



createHostDeploy
public HostExpandDeployGenerator createHostDeploy()(Code)
Adds a HostDeploy.



createManagement
public Management createManagement()(Code)



createPing
public ResourceAdapter createPing() throws ConfigException(Code)
Creates the ping.



createRewriteDispatch
public RewriteDispatch createRewriteDispatch()(Code)
Adds rewrite-dispatch.



destroy
public void destroy()(Code)
Closes the server.



getAcceptListenBacklog
public int getAcceptListenBacklog()(Code)
Gets the socket's listen property



getAcceptThreadMax
public int getAcceptThreadMax()(Code)
Sets the maximum spare listen.



getAcceptThreadMin
public int getAcceptThreadMin()(Code)
Gets the minimum spare listen.



getAdmin
public ServerMXBean getAdmin()(Code)
Returns the admin.



getAlternateSessionURLPrefix
public String getAlternateSessionURLPrefix()(Code)
Gets the alternate session url prefix.



getCacheStatistics
public ArrayList<CacheItem> getCacheStatistics()(Code)
Returns the cache stuff.



getClassLoader
public ClassLoader getClassLoader()(Code)
Returns the classLoader



getCluster
public Cluster getCluster()(Code)
Returns the cluster.



getConfigException
public Throwable getConfigException()(Code)
Returns the configuration exception



getConnectionErrorPage
public String getConnectionErrorPage()(Code)
Gets the connection error page.



getDefaultWebApp
public WebApp getDefaultWebApp()(Code)
Returns the default web-app or error web-app for top-level errors



getDependencyCheckInterval
public long getDependencyCheckInterval()(Code)
Returns the dependency check interval.



getErrorWebApp
public WebApp getErrorWebApp()(Code)
Returns the error webApp during startup.



getFreeKeepaliveSelect
public int getFreeKeepaliveSelect()(Code)
Returns the number of select keepalives available.



getHost
public Host getHost(String hostName, int port)(Code)
Returns the matching servlet pattern for a URL.



getHostControllers
public Collection<HostController> getHostControllers()(Code)
Returns the host controllers.



getKeepaliveConnectionTimeMax
public long getKeepaliveConnectionTimeMax()(Code)
Sets the keepalive timeout



getKeepaliveMax
public int getKeepaliveMax()(Code)
Returns the thread-based keepalive max. the keepalive max.



getKeepaliveSelectCount
public int getKeepaliveSelectCount()(Code)
Returns the select keepalive count.



getKeepaliveSelectThreadTimeout
public void getKeepaliveSelectThreadTimeout(Period period)(Code)
Sets the select-based keepalive timeout



getKeepaliveSelectThreadTimeout
public long getKeepaliveSelectThreadTimeout()(Code)
Sets the select-based keepalive timeout



getKeepaliveTimeout
public long getKeepaliveTimeout()(Code)
Sets the keepalive timeout



getMemoryFreeMin
public long getMemoryFreeMin()(Code)
Sets the minimum free memory after a GC



getPorts
public Collection<Port> getPorts()(Code)
Returns the Port s for this server.



getProxyCacheHitCount
public long getProxyCacheHitCount()(Code)
Returns the proxy cache hit count.



getProxyCacheMissCount
public long getProxyCacheMissCount()(Code)
Returns the proxy cache miss count.



getRootDirectory
public Path getRootDirectory()(Code)
Sets the root directory.



getSSLSessionCookie
public String getSSLSessionCookie()(Code)
Gets the ssl session cookie



getSchema
public String getSchema()(Code)
Returns the relax schema.



getServerHeader
public String getServerHeader()(Code)
Gets the server header.



getServerId
public String getServerId()(Code)
Returns the id.



getServerIndex
public int getServerIndex()(Code)



getServletPattern
public String getServletPattern(String hostName, int port, String url)(Code)
Returns the matching servlet pattern for a URL.



getSessionCookie
public String getSessionCookie()(Code)
Gets the session cookie



getSessionURLPrefix
public String getSessionURLPrefix()(Code)
Gets the session url prefix.



getShutdownWaitMax
public long getShutdownWaitMax()(Code)
Gets the max wait time for a shutdown.



getSocketTimeout
public long getSocketTimeout()(Code)
Gets the read timeout for the request sockets.



getStartTime
public long getStartTime()(Code)
Returns the time the server started in ms.



getState
public String getState()(Code)
Returns the lifecycle state



getSuspendTimeMax
public long getSuspendTimeMax()(Code)
Sets the suspend timeout



getWebApp
public WebApp getWebApp(String hostName, int port, String url)(Code)
Returns the matching web-app for a URL.



handleAlarm
public void handleAlarm(Alarm alarm)(Code)
Handles the alarm.



init
public void init()(Code)
Initialization.



isActive
public boolean isActive()(Code)
Returns true if the server is currently active and accepting requests



isBindPortsAfterStart
public boolean isBindPortsAfterStart()(Code)
If true, ports are bound at end.



isDeployError
public boolean isDeployError()(Code)
Return true if idle.



isDestroyed
public boolean isDestroyed()(Code)
Returns true if the server is closed.



isDestroying
public boolean isDestroying()(Code)
Returns true if the server is closed.



isKeepaliveSelectEnable
public boolean isKeepaliveSelectEnable()(Code)
Gets the select-based keepalive timeout



isModified
public boolean isModified()(Code)
Returns true if the server has been modified and needs restarting.



isModifiedNow
public boolean isModifiedNow()(Code)
Returns true if the server has been modified and needs restarting.



isSelectManagerEnabled
public boolean isSelectManagerEnabled()(Code)
Sets true if the select manager should be enabled



isStopped
public boolean isStopped()(Code)
Returns true if the server is stopped.



isStopping
public boolean isStopping()(Code)
Returns true if the server is stopped.



setAcceptListenBacklog
public void setAcceptListenBacklog(int backlog)(Code)
Sets the socket's listen property



setAcceptThreadMax
public void setAcceptThreadMax(int maxSpare) throws ConfigException(Code)
Sets the maximum spare listen.



setAcceptThreadMin
public void setAcceptThreadMin(int minSpare) throws ConfigException(Code)
Sets the minimum spare listen.



setAccessLog
public void setAccessLog(AccessLog log)(Code)
Sets the access log.



setAlternateSessionURLPrefix
public void setAlternateSessionURLPrefix(String urlPrefix) throws ConfigException(Code)
Sets the alternate session url prefix.



setBindPortsAfterStart
public void setBindPortsAfterStart(boolean bindAtEnd)(Code)
If true, ports are bound at end.



setConfigException
public void setConfigException(Throwable exn)(Code)
Returns the configuration instance.



setConnectionErrorPage
public void setConnectionErrorPage(String errorPage)(Code)
Sets the connection error page.



setKeepaliveConnectionTimeMax
public void setKeepaliveConnectionTimeMax(Period period)(Code)
Sets the keepalive connection timeout



setKeepaliveMax
public void setKeepaliveMax(int max)(Code)
Sets the maximum keepalive



setKeepaliveSelectEnable
public void setKeepaliveSelectEnable(boolean enable)(Code)
Sets the select-based keepalive timeout



setKeepaliveSelectMax
public void setKeepaliveSelectMax(int max)(Code)
Sets the select-based keepalive timeout



setKeepaliveTimeout
public void setKeepaliveTimeout(Period period)(Code)
Sets the keepalive timeout



setMemoryFreeMin
public void setMemoryFreeMin(Bytes min)(Code)
Sets the minimum free memory after a GC



setRedeployMode
public void setRedeployMode(String redeployMode)(Code)
Sets the redeploy mode



setRootDir
public void setRootDir(Path path)(Code)
Sets the root directory.



setRootDirectory
public void setRootDirectory(Path path)(Code)
Sets the root directory.



setSSLSessionCookie
public void setSSLSessionCookie(String cookie)(Code)
Sets the ssl session cookie



setServerHeader
public void setServerHeader(String server)(Code)
Sets the server header.



setSessionCookie
public void setSessionCookie(String cookie)(Code)
Sets the session cookie



setSessionURLPrefix
public void setSessionURLPrefix(String urlPrefix)(Code)
Sets the session url prefix.



setShutdownWaitMax
public void setShutdownWaitMax(Period waitTime)(Code)
Sets the max wait time for shutdown.



setSocketTimeout
public void setSocketTimeout(Period period)(Code)
Sets the default read/write timeout for the request sockets.



setSuspendTimeMax
public void setSuspendTimeMax(Period period)(Code)
Sets the suspend timeout



setThreadExecutorTaskMax
public void setThreadExecutorTaskMax(int max)(Code)
Sets the maximum executor (background) thread.



setThreadIdleMax
public void setThreadIdleMax(int max)(Code)
Sets the maximum number of idle threads in the thread pool.



setThreadIdleMin
public void setThreadIdleMin(int min)(Code)
Sets the minimum number of idle threads in the thread pool.



setThreadMax
public void setThreadMax(int max)(Code)
Sets the maximum thread-based keepalive



setURLCharacterEncoding
public void setURLCharacterEncoding(String encoding) throws ConfigException(Code)
Sets URL encoding.



start
public void start()(Code)
Start the server.



startPorts
public void startPorts() throws Exception(Code)
Start the ports.



stop
public void stop()(Code)
Closes the server.



toString
public String toString()(Code)



Methods inherited from com.caucho.server.port.ProtocolDispatchServer
public int getFreeSelectKeepalive()(Code)(Java Doc)
public int getKeepaliveMax()(Code)(Java Doc)
public AbstractSelectManager getSelectManager()(Code)(Java Doc)
public void initSelectManager(AbstractSelectManager manager)(Code)(Java Doc)
public boolean isActive()(Code)(Java Doc)
public boolean isIgnoreClientDisconnect()(Code)(Java Doc)
public boolean isSelectManagerEnabled()(Code)(Java Doc)
public void setIgnoreClientDisconnect(boolean ignore)(Code)(Java Doc)
public void stop()(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.