Rice Pastry API

rice.p2p.splitstream
Interface SplitStream

All Known Implementing Classes:
SplitStreamImpl

public interface SplitStream

The interface defines the methods that a splitStream object must implement. The methods are for creating a channel and for attaching to an already existing channel

Version:
$Id: SplitStream.java,v 1.5 2003/10/17 01:49:52 atuls Exp $
Author:
Ansley Post, Alan Mislove

Method Summary
 rice.p2p.splitstream.Channel attachChannel(rice.p2p.splitstream.ChannelId id)
          A SplitStream application calls this method to join a channel.
 rice.p2p.splitstream.Channel createChannel(rice.p2p.splitstream.ChannelId id)
          A SplitStream application calls this method when it wishes to distribute content, creating a new channel object.
 rice.p2p.splitstream.Channel[] getChannels()
          Returns all of the channels on this local splitstream
 

Method Detail

attachChannel

public rice.p2p.splitstream.Channel attachChannel(rice.p2p.splitstream.ChannelId id)
A SplitStream application calls this method to join a channel.

Parameters:
id - The id of the channel
Returns:
A channel object used for subsequent operations on the desired content stream

createChannel

public rice.p2p.splitstream.Channel createChannel(rice.p2p.splitstream.ChannelId id)
A SplitStream application calls this method when it wishes to distribute content, creating a new channel object.

Parameters:
id - The id of the channel
Returns:
A new channel object

getChannels

public rice.p2p.splitstream.Channel[] getChannels()
Returns all of the channels on this local splitstream

Returns:
All of the channels currently being received by this splitstream

Rice Pastry API

Copyright © 2001 - Rice Pastry.


Imprint-Dataprotection