Rice Pastry API

rice.p2p.splitstream
Interface SplitStream

All Superinterfaces:
Destructable
All Known Implementing Classes:
SplitStreamImpl

public interface SplitStream
extends Destructable

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 3613 2007-02-15 14:45:14Z jstewart $
Author:
Ansley Post, Alan Mislove

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

Method Detail

attachChannel

Channel attachChannel(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

Channel createChannel(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

Channel[] getChannels()
Returns all of the channels on this local splitstream

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

getStripeBaseBitLength

int getStripeBaseBitLength()

getEnvironment

Environment getEnvironment()

destroy

void destroy()
Specified by:
destroy in interface Destructable

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection