All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class semper.seccomm.basic.BasicServicePointThread

java.lang.Object
   |
   +----semper.seccomm.basic.BasicServicePointThread

public class BasicServicePointThread
extends Object
implements SecChannelServicePointThread

Constructor Index

 o BasicServicePointThread(BasicServicesAddress, long)
Constructor

Method Index

 o openResponderChannel(String)
Open a channel as a responder
 o openResponderChannel(String, AttributeSet)
Open a channel as a responder
 o openResponderChannel(String, AttributeSet, long)
Open a channel as a responder
 o openResponderChannel(String, long)
Open a channel as a responder
 o setSituationDescription(SituationDescription)
Sets the situation description to be used on subsequent openResponder calls.
 o stop()
Stop the ServicePointThread

Constructors

 o BasicServicePointThread
 public BasicServicePointThread(BasicServicesAddress secAddress,
                                long timeOut) throws SecComPointException
Constructor

Parameters:
secAddress - The address to listen to.
timeOut - The time in millisecs after that not responded incoming initiator requests are discarded.
Throws: SecComPointException
When starting the comm block servicePointThread fails.

Methods

 o openResponderChannel
 public SecComPoint openResponderChannel(String correlator,
                                         AttributeSet secAttributes,
                                         long timeOut) throws SecComPointException, SecChannelTimeOutException
Open a channel as a responder

Parameters:
correlator - An identifier that is used to mark the channel.
secAttributes - To specify additional secAttibrubtes that might be different from the ones defined in SecChannel.startServicePointThread().
timeOut - The time in millisecs that we wait for a connection.
Returns:
An opened SecComPoint
Throws: SecComPointException
When opening the comm block responder channel fails.
Throws: SecChannelTimeOutException
When opening a responder was timed out due to missing initiators.
 o openResponderChannel
 public SecComPoint openResponderChannel(String correlator,
                                         AttributeSet secAttributes) throws SecComPointException, SecChannelTimeOutException
Open a channel as a responder

Parameters:
correlator - An identifier that is used to mark the channel.
secAttributes - To specify additional secAttibrubtes that might be different from the ones defined in SecChannel.startServicePointThread().
Returns:
An opened SecComPoint
Throws: SecComPointException
When opening the comm block responder channel fails.
Throws: SecChannelTimeOutException
When opening a responder was timed out due to missing initiators.
 o openResponderChannel
 public SecComPoint openResponderChannel(String correlator) throws SecComPointException, SecChannelTimeOutException
Open a channel as a responder

Parameters:
correlator - An identifier that is used to mark the channel.
Returns:
An opened SecComPoint
Throws: SecComPointException
When opening the comm block responder channel fails.
Throws: SecChannelTimeOutException
When opening a responder was timed out due to missing initiators.
 o openResponderChannel
 public SecComPoint openResponderChannel(String correlator,
                                         long timeOut) throws SecComPointException, SecChannelTimeOutException
Open a channel as a responder

Parameters:
correlator - An identifier that is used to mark the channel.
timeOut - The time in millisecs that are waited for an incoming connection.
Returns:
An opened SecComPoint
Throws: SecComPointException
When opening the comm block responder channel fails.
Throws: SecChannelTimeOutException
When opening a responder was timed out due to missing initiators.
 o stop
 public void stop() throws SecComPointException
Stop the ServicePointThread

Throws: SecComPointException
When trying to stop a non-existing (uninitialised) servicePointThread.
 o setSituationDescription
 public void setSituationDescription(SituationDescription situationDescription)
Sets the situation description to be used on subsequent openResponder calls.


All Packages  Class Hierarchy  This Package  Previous  Next  Index