org.apache.catalina.ha.ClusterDeployer Java Examples
The following examples show how to use
org.apache.catalina.ha.ClusterDeployer.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SimpleTcpCluster.java From Tomcat8-Source-Read with MIT License | 4 votes |
/** * @return the current Deployer */ @Override public ClusterDeployer getClusterDeployer() { return clusterDeployer; }
Example #2
Source File: SimpleTcpCluster.java From Tomcat8-Source-Read with MIT License | 4 votes |
/** * set a new Deployer, must be set before cluster started! * @param clusterDeployer The associated deployer */ @Override public void setClusterDeployer(ClusterDeployer clusterDeployer) { this.clusterDeployer = clusterDeployer; }
Example #3
Source File: CatalinaClusterSF.java From Tomcat8-Source-Read with MIT License | 4 votes |
/** * Store the specified Cluster children. * * @param aWriter * PrintWriter to which we are storing * @param indent * Number of spaces to indent this element * @param aCluster * Cluster whose properties are being stored * * @exception Exception * if an exception occurs while storing */ @Override public void storeChildren(PrintWriter aWriter, int indent, Object aCluster, StoreDescription parentDesc) throws Exception { if (aCluster instanceof CatalinaCluster) { CatalinaCluster cluster = (CatalinaCluster) aCluster; if (cluster instanceof SimpleTcpCluster) { SimpleTcpCluster tcpCluster = (SimpleTcpCluster) cluster; // Store nested <Manager> element ClusterManager manager = tcpCluster.getManagerTemplate(); if (manager != null) { storeElement(aWriter, indent, manager); } } // Store nested <Channel> element Channel channel = cluster.getChannel(); if (channel != null) { storeElement(aWriter, indent, channel); } // Store nested <Deployer> element ClusterDeployer deployer = cluster.getClusterDeployer(); if (deployer != null) { storeElement(aWriter, indent, deployer); } // Store nested <Valve> element // ClusterValve are not store at Hosts element, see Valve valves[] = cluster.getValves(); storeElementArray(aWriter, indent, valves); if (aCluster instanceof SimpleTcpCluster) { // Store nested <Listener> elements LifecycleListener listeners[] = ((SimpleTcpCluster)cluster).findLifecycleListeners(); storeElementArray(aWriter, indent, listeners); // Store nested <ClusterListener> elements ClusterListener mlisteners[] = ((SimpleTcpCluster)cluster).findClusterListeners(); List<ClusterListener> clusterListeners = new ArrayList<>(); for (ClusterListener clusterListener : mlisteners) { if (clusterListener != deployer) { clusterListeners.add(clusterListener); } } storeElementArray(aWriter, indent, clusterListeners.toArray()); } } }
Example #4
Source File: SimpleTcpCluster.java From tomcatsrc with Apache License 2.0 | 4 votes |
/** * get current Deployer */ @Override public ClusterDeployer getClusterDeployer() { return clusterDeployer; }
Example #5
Source File: SimpleTcpCluster.java From tomcatsrc with Apache License 2.0 | 4 votes |
/** * set a new Deployer, must be set before cluster started! */ @Override public void setClusterDeployer(ClusterDeployer clusterDeployer) { this.clusterDeployer = clusterDeployer; }