Class semper.comm.Channel
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.comm.Channel

java.lang.Object
   |
   +----semper.comm.Channel

public class Channel
extends Object
implements ComPointConstants
Defines a channel class for opening channels between entities. Channel allows more than one pairs of modules to use a specific port number between two hosts, without the outstanding responder comPoints blocking each other. This is achieved through establishing channels between initiator and responder modules. A channel between two hosts is identified by a port number together with a correlator string.
Version:
beta-4, 12.8.96
Author:
Mehdi Nassehi

Constructor Index

 o Channel()
Constructor without args

Method Index

 o openInitiatorChannel(ComPointAddress, Vector, String)
Open a channel to the peer as initiator.
 o startServicePointThread(ComPointAddress)
startes a service-point thread.
 o startServicePointThread(ComPointAddress, long)
startes a service-point thread with the given outstanding-channel timeout.

Constructors

 o Channel
  protected Channel()
Constructor without args

Methods

 o openInitiatorChannel
  public static ComPoint openInitiatorChannel(ComPointAddress peerAddress,
                                              Vector options,
                                              String correlator) throws ComPointException, ChannelException
Open a channel to the peer as initiator.
Parameters:
peerAddress - peer address of the peer manager
options - a Vector (placeholder to support security options in the future (currently ignored))
correlator - correlator string used to identify the channel
Returns:
channel
Throws: ComPointException
on communication errors.
Throws: ChannelException
on invalid params and channel errors..
 o startServicePointThread
  public static ChannelServicePointThread startServicePointThread(ComPointAddress address) throws ChannelException
startes a service-point thread. No timeout value is specified; rather a default timeout value is used.
Parameters:
address - address of the service point
Throws: ChannelException
if an error occured while opening the serverSocket.
 o startServicePointThread
  public static ChannelServicePointThread startServicePointThread(ComPointAddress address,
                                                                  long outstandingChannelTimeOut) throws ChannelException
startes a service-point thread with the given outstanding-channel timeout.
Parameters:
address - address of the service point
OutstandingChannelTimeOut - time in millisecond that peer should keep an unclaimed channel
Throws: ChannelException
if an error occured while opening the serverSocket.

All Packages  Class Hierarchy  This Package  Previous  Next  Index