Java Doc for ClusterServer.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) 


java.lang.Object
   com.caucho.server.cluster.ClusterServer

ClusterServer
public class ClusterServer (Code)
Defines a member of the cluster, corresponds to in the conf file. A ServerConnector obtained with ClusterServer.getServerConnector is used to actually communicate with this ClusterServer when it is active in another instance of Resin .



Constructor Summary
public  ClusterServer(Cluster cluster)
    
public  ClusterServer(Machine machine)
    
public  ClusterServer(Cluster cluster, boolean test)
    

Method Summary
public  voidaddBuilderProgram(ConfigProgram program)
     Adds a program.
public  voidaddJavaExe(String args)
    
public  voidaddJvmArg(String args)
    
 voidaddProtocolPort(Port port)
    
public  voidaddWatchdogArg(String args)
    
public  voidaddWatchdogJvmArg(String args)
    
public  voidaddWatchdogPassword(String args)
    
public  voidaddWatchdogPort(int port)
    
public  voidbind(String address, int port, QServerSocket ss)
     Pre-binding of ports.
public  voidclose()
     Close any ports.
public  ClusterPortcreateClusterPort()
     Sets the ClusterPort.
public  PortcreateHttp()
     Adds a http.
public  PortcreateProtocol()
     Adds a custom-protocol port.
public  longgenerateBackupCode()
     Generate the primary, secondary, tertiary, returning the value encoded in a long.
public  voidgenerateBackupCode(StringBuilder cb)
     Adds the primary/backup/third digits to the id.
public  ClustergetCluster()
     Returns the cluster.
public  ClusterPortgetClusterPort()
     Sets the ClusterPort.
public  StringgetId()
     Gets the server identifier.
public  intgetIndex()
     Returns the server index.
public  longgetKeepaliveTimeout()
     Gets the keepalive timeout.
public  longgetLoadBalanceConnectTimeout()
     Gets the loadBalance connection time.
public  longgetLoadBalanceIdleTime()
     Sets the loadBalance idle-time.
public  longgetLoadBalanceRecoverTime()
     Gets the loadBalance fail-recover-time.
public  longgetLoadBalanceSocketTimeout()
     Gets the loadBalance socket time.
public  longgetLoadBalanceWarmupTime()
    
public  intgetLoadBalanceWeight()
    
public  MachinegetMachine()
     Returns the machine.
public  intgetPort()
     Gets the port.
public  ArrayList<Port>getPorts()
     Returns the ports.
public  ServerConnectorgetServerConnector()
     Returns the server connector.
public  ConfigProgramgetServerProgram()
     Adds a program.
public  longgetSocketTimeout()
    
public  voidinit()
    
public  booleanisSSL()
     Returns true for secure.
public  voidsetAddress(String address)
    
public  voidsetBackup(boolean isBackup)
    
public  voidsetGroupName(String groupName)
     Sets the group name.
public  voidsetId(String id)
     Sets the server identifier.
 voidsetIndex(int index)
     Returns the server index.
public  voidsetKeepaliveTimeout(Period timeout)
     Sets the keepalive timeout.
public  voidsetLoadBalanceConnectTimeout(Period period)
     Sets the loadBalance connection time.
public  voidsetLoadBalanceIdleTime(Period period)
     Sets the loadBalance max-idle-time.
public  voidsetLoadBalanceRecoverTime(Period period)
     Sets the loadBalance fail-recover-time.
public  voidsetLoadBalanceSocketTimeout(Period period)
     Sets the loadBalance socket time.
public  voidsetLoadBalanceWarmupTime(Period period)
    
public  voidsetLoadBalanceWeight(int weight)
    
public  voidsetPort(int port)
     Sets a port.
public  voidsetSocketTimeout(Period period)
    
public  voidsetUserName(String userName)
     Sets the user name.
public  ServerstartServer()
     Starts the server.
public  StringtoString()
    


Constructor Detail
ClusterServer
public ClusterServer(Cluster cluster)(Code)



ClusterServer
public ClusterServer(Machine machine)(Code)



ClusterServer
public ClusterServer(Cluster cluster, boolean test)(Code)




Method Detail
addBuilderProgram
public void addBuilderProgram(ConfigProgram program)(Code)
Adds a program.



addJavaExe
public void addJavaExe(String args)(Code)
Arguments on boot



addJvmArg
public void addJvmArg(String args)(Code)
Arguments on boot



addProtocolPort
void addProtocolPort(Port port)(Code)



addWatchdogArg
public void addWatchdogArg(String args)(Code)
Arguments on boot



addWatchdogJvmArg
public void addWatchdogJvmArg(String args)(Code)
Arguments on boot



addWatchdogPassword
public void addWatchdogPassword(String args)(Code)
Arguments on boot



addWatchdogPort
public void addWatchdogPort(int port)(Code)
Arguments on boot



bind
public void bind(String address, int port, QServerSocket ss) throws Exception(Code)
Pre-binding of ports.



close
public void close()(Code)
Close any ports.



createClusterPort
public ClusterPort createClusterPort()(Code)
Sets the ClusterPort.



createHttp
public Port createHttp() throws ConfigException(Code)
Adds a http.



createProtocol
public Port createProtocol() throws ConfigException(Code)
Adds a custom-protocol port.



generateBackupCode
public long generateBackupCode()(Code)
Generate the primary, secondary, tertiary, returning the value encoded in a long.



generateBackupCode
public void generateBackupCode(StringBuilder cb)(Code)
Adds the primary/backup/third digits to the id.



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



getClusterPort
public ClusterPort getClusterPort()(Code)
Sets the ClusterPort.



getId
public String getId()(Code)
Gets the server identifier.



getIndex
public int getIndex()(Code)
Returns the server index.



getKeepaliveTimeout
public long getKeepaliveTimeout()(Code)
Gets the keepalive timeout.



getLoadBalanceConnectTimeout
public long getLoadBalanceConnectTimeout()(Code)
Gets the loadBalance connection time.



getLoadBalanceIdleTime
public long getLoadBalanceIdleTime()(Code)
Sets the loadBalance idle-time.



getLoadBalanceRecoverTime
public long getLoadBalanceRecoverTime()(Code)
Gets the loadBalance fail-recover-time.



getLoadBalanceSocketTimeout
public long getLoadBalanceSocketTimeout()(Code)
Gets the loadBalance socket time.



getLoadBalanceWarmupTime
public long getLoadBalanceWarmupTime()(Code)
Gets the loadBalance warmup time



getLoadBalanceWeight
public int getLoadBalanceWeight()(Code)
Gets the loadBalance weight



getMachine
public Machine getMachine()(Code)
Returns the machine.



getPort
public int getPort()(Code)
Gets the port.



getPorts
public ArrayList<Port> getPorts()(Code)
Returns the ports.



getServerConnector
public ServerConnector getServerConnector()(Code)
Returns the server connector.



getServerProgram
public ConfigProgram getServerProgram()(Code)
Adds a program.



getSocketTimeout
public long getSocketTimeout()(Code)
Gets the loadBalance read/write timeout



init
public void init() throws Exception(Code)
Initialize



isSSL
public boolean isSSL()(Code)
Returns true for secure.



setAddress
public void setAddress(String address) throws UnknownHostException(Code)
Sets the address



setBackup
public void setBackup(boolean isBackup)(Code)
Sets true for backups



setGroupName
public void setGroupName(String groupName)(Code)
Sets the group name.



setId
public void setId(String id)(Code)
Sets the server identifier.



setIndex
void setIndex(int index)(Code)
Returns the server index.



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



setLoadBalanceConnectTimeout
public void setLoadBalanceConnectTimeout(Period period)(Code)
Sets the loadBalance connection time.



setLoadBalanceIdleTime
public void setLoadBalanceIdleTime(Period period)(Code)
Sets the loadBalance max-idle-time.



setLoadBalanceRecoverTime
public void setLoadBalanceRecoverTime(Period period)(Code)
Sets the loadBalance fail-recover-time.



setLoadBalanceSocketTimeout
public void setLoadBalanceSocketTimeout(Period period)(Code)
Sets the loadBalance socket time.



setLoadBalanceWarmupTime
public void setLoadBalanceWarmupTime(Period period)(Code)
Sets the loadBalance warmup time



setLoadBalanceWeight
public void setLoadBalanceWeight(int weight)(Code)
Sets the loadBalance weight



setPort
public void setPort(int port)(Code)
Sets a port.



setSocketTimeout
public void setSocketTimeout(Period period)(Code)
Sets the loadBalance read/write timeout



setUserName
public void setUserName(String userName)(Code)
Sets the user name.



startServer
public Server startServer() throws StartLifecycleException(Code)
Starts the server.



toString
public String toString()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.