KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > catalina > cluster > ClusterReceiver


1 /*
2  * Copyright 1999,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.catalina.cluster;
18
19
20 /**
21  * Cluster Receiver Interface
22  * @author Filip Hanik
23  * @author Peter Rossbach
24  * @version $Revision: 1.4 $, $Date: 2005/03/25 22:21:55 $
25  */

26 public interface ClusterReceiver
27 {
28
29     /**
30      * Start message listing
31      * @throws java.io.IOException
32      */

33     public void start() throws java.io.IOException JavaDoc;
34
35     /**
36      * Stop message listing
37      */

38     public void stop();
39
40     /**
41      * set callback
42      * @see org.apache.catalina.cluster.tcp.SimpleTcpCluster#messageDataReceived(byte[])
43      * @param cluster
44      */

45     public void setCatalinaCluster(CatalinaCluster cluster);
46     
47     /**
48      * get Callback
49      * @return
50      */

51     public CatalinaCluster getCatalinaCluster();
52     
53     /**
54      * Send Ack to sender or not
55      * @return
56      */

57     public boolean isSendAck();
58     
59     /**
60      * set ack mode
61      * @param isSendAck
62      */

63     public void setSendAck(boolean isSendAck);
64     
65     /**
66      * get the listing ip interface
67      * @return
68      */

69     public String JavaDoc getHost();
70     
71     
72     /**
73      * get the listing ip port
74      * @return
75      */

76     public int getPort();
77
78 }
79
Popular Tags