ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/catalina/ha/CatalinaCluster.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/catalina/ha/CatalinaCluster.java
Status
scanned
Type
file
Name
CatalinaCluster.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
4042 (3.9 KB)
MD5
a8b5d1f2eea0489974aedb89bc23426f
SHA1
3936ddaf1f0a2e08ba2729c4cb7cc3e4275a95e3
SHA256
42b5b260c83b7c0c1306dee6ea71e3f5d556423df21432b3486d9abebc523051
SHA512

      
    
SHA1_git
67d9228eea69f714f8956a2c15b5bf38c49bcc4e
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
CatalinaCluster.java | 3.9 KB |

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.catalina.ha; import java.util.Map; import org.apache.catalina.Cluster; import org.apache.catalina.Manager; import org.apache.catalina.Valve; import org.apache.catalina.tribes.Channel; import org.apache.catalina.tribes.Member; /** * A <b>CatalinaCluster</b> interface allows to plug in and out the different cluster implementations */ public interface CatalinaCluster extends Cluster { /** * Sends a message to all the members in the cluster * * @param msg ClusterMessage */ void send(ClusterMessage msg); /** * Sends a message to a specific member in the cluster. * * @param msg ClusterMessage * @param dest Member */ void send(ClusterMessage msg, Member dest); /** * Sends a message with the specified sendOptions to a specific member in the cluster. * * @param msg ClusterMessage * @param dest Member * @param sendOptions sendOptions */ void send(ClusterMessage msg, Member dest, int sendOptions); /** * @return <code>true</code> if the cluster has members. */ boolean hasMembers(); /** * @return an array containing all the members currently participating in the cluster. */ Member[] getMembers(); /** * @return the member that represents this node. */ Member getLocalMember(); /** * Add cluster valve. Cluster Valves are only add to container when cluster is started. * * @param valve The new cluster Valve. */ void addValve(Valve valve); /** * Add cluster message listener and register cluster to this listener. * * @param listener The new listener */ void addClusterListener(ClusterListener listener); /** * Remove message listener and deregister Cluster from listener. * * @param listener The listener to remove */ void removeClusterListener(ClusterListener listener); /** * Set a new Deployer, must be set before the cluster started. * * @param deployer The associated deployer */ void setClusterDeployer(ClusterDeployer deployer); /** * @return the current Deployer */ ClusterDeployer getClusterDeployer(); /** * @return The map of managers */ Map<String,ClusterManager> getManagers(); /** * Get Manager * * @param name The manager name * * @return The manager */ Manager getManager(String name); /** * Get a new cluster name for a manager. * * @param name Override name (optional) * @param manager The manager * * @return the manager name in the cluster */ String getManagerName(String name, Manager manager); /** * @return the current cluster valves */ Valve[] getValves(); /** * Set the channel associated with the cluster. * * @param channel the channel */ void setChannel(Channel channel); /** * @return the channel associated with the cluster */ Channel getChannel(); }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
26.98
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9