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

All known Subclasses:   com.caucho.server.cluster.ClusterDef,
Cluster
public class Cluster implements EnvironmentListener,EnvironmentBean,SchemaBean(Code)
Defines a set of clustered servers.

Inner Class :public class Var
Inner Class :public class ServerVar

Field Summary
final protected static  EnvironmentLocal<Cluster>_clusterLocal
    
final protected static  EnvironmentLocal<String>_serverIdLocal
    

Constructor Summary
public  Cluster(Resin resin)
    
public  Cluster()
    

Method Summary
public  voidaddBuilderProgram(ConfigProgram program)
     Adds a program.
public  voidaddServer(ClusterServer server)
     Adds a new server to the cluster.
public  voidaddServerDefault(ContainerProgram program)
     Adds a new server to the cluster.
public  voidclassLoaderDestroy(DynamicClassLoader loader)
     Handles the case where a class loader is dropped.
public  voidclassLoaderInit(DynamicClassLoader loader)
    
public  voidclose()
     Closes the cluster.
public  StoreManagercreateClusterStore()
    
public  StoreManagercreateFileStore()
    
public  StoreManagercreateJdbcStore()
    
public  MachinecreateMachine()
     Adds a new server to the cluster.
public  StoreManagercreatePrivateFileStore()
    
public  ClusterServercreateServer()
     Adds a new server to the cluster.
 ClusterServercreateServer(ClusterServer server)
    
public static  intdecode(int code)
    
public  voidenvironmentConfig(EnvironmentClassLoader loader)
     Handles the case where the environment is starting (after init).
public  voidenvironmentStart(EnvironmentClassLoader loader)
     Handles the case where the environment is starting (after init).
public  voidenvironmentStop(EnvironmentClassLoader loader)
    
public  ServerConnectorfindConnector(String address, int port)
     Adds a srun server.
public  ClusterServerfindServer(String id)
     Finds the first server with the given server-id.
public  longgenerateBackupCode(int index)
     Generate the primary, secondary, tertiary, returning the value encoded in a long.
public  voidgenerateBackupCode(StringBuilder cb, long backupCode)
     Adds the primary/backup/third digits to the id.
public  ClusterMXBeangetAdmin()
     Returns the admin.
public  ClassLoadergetClassLoader()
     Returns the environment class loader.
public  longgetClientConnectTimeout()
     Gets the connect timeout.
public  longgetClientFailRecoverTime()
     Gets the client fail-recover time.
public  longgetClientMaxIdleTime()
     Gets the live time.
public  longgetClientReadTimeout()
     Gets the read timeout.
public  longgetClientWarmupTime()
     Gets the client warmup time.
public static  ClustergetCluster(ClassLoader loader)
     Returns the currently active local cluster.
public  StringgetId()
     Gets the cluster id.
public static  ClustergetLocal()
     Returns the currently active local cluster.
public  ArrayList<Machine>getMachineList()
     Returns the machine list.
public  ObjectNamegetObjectName()
     Returns the JMX object name.
public  ClusterServergetPrimary(String id, int offset)
     Returns the primary server.
public  ResingetResin()
     Returns the owning resin server.
public  PathgetRootDirectory()
     Gets the root directory.
public  StringgetSchema()
     Returns the relax schema.
public  ClusterServergetSecondary(String id, int offset)
     Returns the secondary server.
public  ClusterServergetSelfServer()
     Returns the server corresponding to the current server-id.
public  ClusterServergetServer(String serverId)
     Returns the server in the cluster with the given server-id.
public  ClusterServergetServer(int index)
     Returns the server with the matching index.
public static  StringgetServerId()
     Returns the server id.
public  ClusterServer[]getServerList()
     Returns the server list.
public  ArrayList<ClusterPort>getServerPorts(String serverId)
     Returns the matching ports.
public  StoreManagergetStore()
     Returns the cluster store.
public  ClusterServergetTertiary(String id, int offset)
     Returns the tertiary server.
public  voidsetClientConnectTimeout(Period period)
     Sets the connect timeout.
public  voidsetClientDeadTime(Period period)
     Sets the dead time.
public  voidsetClientFailRecoverTime(Period period)
     Sets the client connection fail-recover time.
public  voidsetClientLiveTime(Period period)
     Sets the live time.
public  voidsetClientMaxIdleTime(Period period)
     Sets the max-idle time.
public  voidsetClientReadTimeout(Period period)
     Sets the read timeout.
public  voidsetClientWarmupTime(Period period)
     Sets the client warmup time.
public  voidsetClientWriteTimeout(Period period)
     Sets the write timeout.
public  voidsetId(String id)
     Sets the cluster id.
public  voidsetRootDirectory(Path rootDirectory)
     Sets the root directory.
 voidsetStore(StoreManager store)
     Sets the cluster store.
public  voidstart()
     Initializes the cluster.
 ServerstartServer(ClusterServer clusterServer)
     Starts the server.
public  StringtoString()
    

Field Detail
_clusterLocal
final protected static EnvironmentLocal<Cluster> _clusterLocal(Code)



_serverIdLocal
final protected static EnvironmentLocal<String> _serverIdLocal(Code)




Constructor Detail
Cluster
public Cluster(Resin resin)(Code)



Cluster
public Cluster()(Code)




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



addServer
public void addServer(ClusterServer server) throws ConfigException(Code)
Adds a new server to the cluster.



addServerDefault
public void addServerDefault(ContainerProgram program) throws Throwable(Code)
Adds a new server to the cluster.



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 has completed initialization



close
public void close()(Code)
Closes the cluster.



createClusterStore
public StoreManager createClusterStore() throws ConfigException(Code)



createFileStore
public StoreManager createFileStore() throws ConfigException(Code)



createJdbcStore
public StoreManager createJdbcStore() throws ConfigException(Code)



createMachine
public Machine createMachine() throws Exception(Code)
Adds a new server to the cluster.



createPrivateFileStore
public StoreManager createPrivateFileStore() throws ConfigException(Code)



createServer
public ClusterServer createServer() throws Exception(Code)
Adds a new server to the cluster.



createServer
ClusterServer createServer(ClusterServer server)(Code)



decode
public static int decode(int code)(Code)



environmentConfig
public void environmentConfig(EnvironmentClassLoader loader)(Code)
Handles the case where the environment is starting (after init).



environmentStart
public void environmentStart(EnvironmentClassLoader loader)(Code)
Handles the case where the environment is starting (after init).



environmentStop
public void environmentStop(EnvironmentClassLoader loader)(Code)
Handles the case where the environment is stopping



findConnector
public ServerConnector findConnector(String address, int port)(Code)
Adds a srun server.



findServer
public ClusterServer findServer(String id)(Code)
Finds the first server with the given server-id.



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



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



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



getClassLoader
public ClassLoader getClassLoader()(Code)
Returns the environment class loader.



getClientConnectTimeout
public long getClientConnectTimeout()(Code)
Gets the connect timeout.



getClientFailRecoverTime
public long getClientFailRecoverTime()(Code)
Gets the client fail-recover time.



getClientMaxIdleTime
public long getClientMaxIdleTime()(Code)
Gets the live time.



getClientReadTimeout
public long getClientReadTimeout()(Code)
Gets the read timeout.



getClientWarmupTime
public long getClientWarmupTime()(Code)
Gets the client warmup time.



getCluster
public static Cluster getCluster(ClassLoader loader)(Code)
Returns the currently active local cluster.



getId
public String getId()(Code)
Gets the cluster id.



getLocal
public static Cluster getLocal()(Code)
Returns the currently active local cluster.



getMachineList
public ArrayList<Machine> getMachineList()(Code)
Returns the machine list.



getObjectName
public ObjectName getObjectName()(Code)
Returns the JMX object name.



getPrimary
public ClusterServer getPrimary(String id, int offset)(Code)
Returns the primary server.



getResin
public Resin getResin()(Code)
Returns the owning resin server.



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



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



getSecondary
public ClusterServer getSecondary(String id, int offset)(Code)
Returns the secondary server.



getSelfServer
public ClusterServer getSelfServer()(Code)
Returns the server corresponding to the current server-id.



getServer
public ClusterServer getServer(String serverId)(Code)
Returns the server in the cluster with the given server-id.



getServer
public ClusterServer getServer(int index)(Code)
Returns the server with the matching index.



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



getServerList
public ClusterServer[] getServerList()(Code)
Returns the server list.



getServerPorts
public ArrayList<ClusterPort> getServerPorts(String serverId)(Code)
Returns the matching ports.



getStore
public StoreManager getStore()(Code)
Returns the cluster store.



getTertiary
public ClusterServer getTertiary(String id, int offset)(Code)
Returns the tertiary server.



setClientConnectTimeout
public void setClientConnectTimeout(Period period)(Code)
Sets the connect timeout.



setClientDeadTime
public void setClientDeadTime(Period period)(Code)
Sets the dead time.



setClientFailRecoverTime
public void setClientFailRecoverTime(Period period)(Code)
Sets the client connection fail-recover time.



setClientLiveTime
public void setClientLiveTime(Period period)(Code)
Sets the live time.



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



setClientReadTimeout
public void setClientReadTimeout(Period period)(Code)
Sets the read timeout.



setClientWarmupTime
public void setClientWarmupTime(Period period)(Code)
Sets the client warmup time.



setClientWriteTimeout
public void setClientWriteTimeout(Period period)(Code)
Sets the write timeout.



setId
public void setId(String id)(Code)
Sets the cluster id.



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



setStore
void setStore(StoreManager store)(Code)
Sets the cluster store.



start
public void start() throws ConfigException(Code)
Initializes the cluster.



startServer
Server startServer(ClusterServer clusterServer) 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.