1 16 17 package org.apache.catalina.cluster; 18 19 import org.apache.catalina.Cluster; 20 import org.apache.catalina.cluster.io.ListenCallback; 21 import org.apache.catalina.LifecycleException; 22 import org.apache.catalina.Valve; 23 import org.apache.commons.logging.Log; 24 import org.apache.catalina.Manager; 25 26 33 34 public interface CatalinaCluster 35 extends Cluster,ListenCallback { 36 38 41 public String info = "CatalinaCluster/1.0"; 42 43 47 public void start() throws Exception ; 48 49 53 public void stop() throws LifecycleException; 54 55 59 public Log getLogger(); 60 61 65 public void send(ClusterMessage msg); 66 67 72 public void send(ClusterMessage msg, Member dest); 73 74 78 public Member[] getMembers(); 79 80 84 public Member getLocalMember(); 85 86 public void setClusterSender(ClusterSender sender); 87 88 public ClusterSender getClusterSender(); 89 90 public void setClusterReceiver(ClusterReceiver receiver); 91 92 public ClusterReceiver getClusterReceiver(); 93 94 public void setMembershipService(MembershipService service); 95 96 public MembershipService getMembershipService(); 97 98 public void addValve(Valve valve); 99 100 public void addClusterListener(MessageListener listener); 101 102 public void removeClusterListener(MessageListener listener); 103 104 public void setClusterDeployer(ClusterDeployer deployer); 105 106 public ClusterDeployer getClusterDeployer(); 107 108 public Manager getManager(String name); 109 public void removeManager(String name); 110 public void addManager(String name, ClusterManager manager); 111 public Valve getValve(); 112 113 114 } 115 | Popular Tags |