KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > net > DSOChannelManager


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
3  * notice. All rights reserved.
4  */

5 package com.tc.object.net;
6
7 import com.tc.net.protocol.tcm.ChannelID;
8 import com.tc.net.protocol.tcm.MessageChannel;
9 import com.tc.object.msg.BatchTransactionAcknowledgeMessage;
10
11 import java.util.Collection JavaDoc;
12
13 /**
14  * Wraps the generic ChannelManager adding slightly different channel visibility than DSO requires (we don't want
15  * channels to be visible to other subsystems until they have fully handshaked)
16  */

17 public interface DSOChannelManager {
18
19   public void closeAll(Collection JavaDoc channelIDs);
20
21   public MessageChannel getActiveChannel(ChannelID id) throws NoSuchChannelException;
22
23   public MessageChannel[] getActiveChannels();
24
25   public boolean isActiveID(ChannelID channelID);
26
27   public String JavaDoc getChannelAddress(ChannelID channelID);
28
29   public Collection JavaDoc getAllActiveChannelIDs();
30
31   public void addEventListener(DSOChannelManagerEventListener listener);
32
33   public BatchTransactionAcknowledgeMessage newBatchTransactionAcknowledgeMessage(ChannelID channelID)
34       throws NoSuchChannelException;
35
36   public Collection JavaDoc getRawChannelIDs();
37
38   public void makeChannelActive(ChannelID channelID, long startIDs, long endIDs, boolean persistent);
39
40   public void makeChannelActiveNoAck(MessageChannel channel);
41 }
42
Popular Tags