com.sun.media.jsdt.impl
Interface AbstractSessionProxy


public abstract interface AbstractSessionProxy
extends AbstractManageableProxy

JSDT abstract client-side Session proxy interface.

Version:
1.5 - 14th April 1999
Author:
Rich Burridge

Method Summary
 void attachSessionManager(com.sun.media.jsdt.SessionManager sessionManager, com.sun.media.jsdt.Session session)
           attachSessionManager attach a SessionManager to this Session.
 boolean byteArrayExists(java.lang.String byteArrayName)
           checks if a Bytearray with this name exists.
 boolean byteArrayManaged(java.lang.String byteArrayName)
           checks if the Bytearray with this name is managed.
 boolean channelExists(java.lang.String channelName)
           checks if a Channel with this name exists.
 boolean channelManaged(java.lang.String channelName)
           checks if the Channel with this name is managed.
 void close(boolean closeConnection)
           closes the session, rendering the session handle invalid.
 com.sun.media.jsdt.ByteArray createByteArray(com.sun.media.jsdt.Client client, java.lang.String byteArrayName, byte[] value, int offset, int length, boolean autoJoin)
           creates a shared ByteArray with the given name and value which can then be used with the various ByteArray operations.
 com.sun.media.jsdt.ByteArray createByteArray(com.sun.media.jsdt.Client client, java.lang.String byteArrayName, byte[] value, int offset, int length, com.sun.media.jsdt.ByteArrayManager byteArrayManager)
           creates a ByteArray with the given name and value which can then be used with the various ByteArray operations.
 com.sun.media.jsdt.Channel createChannel(com.sun.media.jsdt.Client client, java.lang.String channelName, boolean reliable, boolean ordered, boolean autoJoin)
           creates a Channel with the given name which can then be used with the various Channel operations.
 com.sun.media.jsdt.Channel createChannel(com.sun.media.jsdt.Client client, java.lang.String channelName, boolean reliable, boolean ordered, com.sun.media.jsdt.ChannelManager channelManager)
           creates a Channel with the given name which can then be used with the various Channel operations.
 com.sun.media.jsdt.Token createToken(com.sun.media.jsdt.Client client, java.lang.String tokenName, boolean autoJoin)
           creates a Token with the given name which can then be used with the various Token operations.
 com.sun.media.jsdt.Token createToken(com.sun.media.jsdt.Client client, java.lang.String tokenName, com.sun.media.jsdt.TokenManager tokenManager)
           creates a Token with the given name which can then be used with the various Token operations.
 com.sun.media.jsdt.ByteArray[] getByteArraysJoined(com.sun.media.jsdt.Client client)
           return an array of ByteArrays that this Client has successfully joined.
 com.sun.media.jsdt.Channel[] getChannelsJoined(com.sun.media.jsdt.Client client)
           return an array of Channels that this Client has successfully joined.
 java.lang.Object getProxy()
           getProxy get a handle to the proxy for this Session.
 com.sun.media.jsdt.Token[] getTokensJoined(com.sun.media.jsdt.Client client)
           return an array of Tokens that this Client has successfully joined.
 void initProxy(java.lang.String name, SessionImpl session, java.lang.Object object)
           initProxy initialise the "client-side" proxy for this Session.
 java.lang.String[] listByteArrayNames()
           list the names of the ByteArrays that are known to this Session.
 java.lang.String[] listChannelNames()
           list the names of the Channels that are known to this Session.
 java.lang.String[] listTokenNames()
           list the names of the Tokens that are known to this Session.
 boolean tokenExists(java.lang.String tokenName)
           checks if a Token with this name exists.
 boolean tokenManaged(java.lang.String tokenName)
           checks if the Token with this name is managed.
 
Methods inherited from interface com.sun.media.jsdt.impl.AbstractManageableProxy
addListener, changeListenerMask, changeManagerMask, destroy, expel, getSession, invite, isManaged, join, leave, listClientNames, removeListener
 

Method Detail

initProxy

public void initProxy(java.lang.String name,
                      SessionImpl session,
                      java.lang.Object object)
initProxy initialise the "client-side" proxy for this Session. name the name of the Session proxy being constructed. session the client-side Session. object the client-side Session (same as session).
Specified by:
initProxy in interface AbstractManageableProxy

getProxy

public java.lang.Object getProxy()
getProxy get a handle to the proxy for this Session.
Specified by:
getProxy in interface AbstractManageableProxy
Returns:
a handle to the proxy for this Session.

attachSessionManager

public void attachSessionManager(com.sun.media.jsdt.SessionManager sessionManager,
                                 com.sun.media.jsdt.Session session)
                          throws com.sun.media.jsdt.ConnectionException,
                                 com.sun.media.jsdt.ManagerExistsException,
                                 com.sun.media.jsdt.NoSuchHostException,
                                 com.sun.media.jsdt.NoSuchSessionException,
                                 com.sun.media.jsdt.TimedOutException
attachSessionManager attach a SessionManager to this Session.
Parameters:
sessionManager - the manager to attach to this Session.
session - the Session to attach the manager to.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.ManagerExistsException - if a manager already exists for this Session.
com.sun.media.jsdt.NoSuchHostException - if the remote host associated with this Session doesn't exist.
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

createByteArray

public com.sun.media.jsdt.ByteArray createByteArray(com.sun.media.jsdt.Client client,
                                                    java.lang.String byteArrayName,
                                                    byte[] value,
                                                    int offset,
                                                    int length,
                                                    boolean autoJoin)
                                             throws com.sun.media.jsdt.ConnectionException,
                                                    com.sun.media.jsdt.InvalidClientException,
                                                    com.sun.media.jsdt.NameInUseException,
                                                    com.sun.media.jsdt.NoSuchSessionException,
                                                    com.sun.media.jsdt.NoSuchClientException,
                                                    com.sun.media.jsdt.NoSuchHostException,
                                                    com.sun.media.jsdt.PermissionDeniedException,
                                                    com.sun.media.jsdt.TimedOutException
creates a shared ByteArray with the given name and value which can then be used with the various ByteArray operations. This ByteArray is then known to the Session. No ByteArrayManager is associated with this ByteArray; any Client which has already joined the Session may freely join this ByteArray.

If a ByteArray with this name already exists, a reference to that ByteArray is returned.

Parameters:
client - a Client that will be used for authentication purposes if this is a managed Session.
byteArrayName - the name to give this ByteArray.
value - the byte array that is the source of the initial new shared ByteArray value.
offset - the initial offset within the byte array.
length - the number of bytes to use.
*autoJoin - if true, automatically join the ByteArray when it's created.
Returns:
the newly created ByteArray or a local reference to it, if it was already created.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.InvalidClientException - if the Client is invalid is some way (ie. its getName() method returns null).
com.sun.media.jsdt.NameInUseException - if a Client with this name is already joined to this ByteArray.
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.NoSuchClientException - if this Client doesn't exist.
com.sun.media.jsdt.NoSuchHostException - if the remote host associated with this Session doesn't exist.
com.sun.media.jsdt.PermissionDeniedException - if this Client doesn't have permission for this operation.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

createByteArray

public com.sun.media.jsdt.ByteArray createByteArray(com.sun.media.jsdt.Client client,
                                                    java.lang.String byteArrayName,
                                                    byte[] value,
                                                    int offset,
                                                    int length,
                                                    com.sun.media.jsdt.ByteArrayManager byteArrayManager)
                                             throws com.sun.media.jsdt.ConnectionException,
                                                    com.sun.media.jsdt.InvalidClientException,
                                                    com.sun.media.jsdt.NoSuchSessionException,
                                                    com.sun.media.jsdt.NoSuchClientException,
                                                    com.sun.media.jsdt.NoSuchHostException,
                                                    com.sun.media.jsdt.PermissionDeniedException,
                                                    com.sun.media.jsdt.ManagerExistsException,
                                                    com.sun.media.jsdt.TimedOutException
creates a ByteArray with the given name and value which can then be used with the various ByteArray operations. This ByteArray is then known to the Session. A ByteArrayManager is associated with this ByteArray; Clients are authenticated before they are allowed to join the ByteArray.
Parameters:
client - a Client that will be used for authentication purposes if this is a managed Session.
byteArrayName - the name of the ByteArray to create.
value - the byte array that is the source of the initial new shared ByteArray value.
offset - the initial offset within the byte array.
length - the number of bytes to use.
byteArrayManager - the manager of this ByteArray.
Returns:
the newly created managed ByteArray.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.InvalidClientException - if the Client is invalid is some way (ie. its getName() method returns null).
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.NoSuchClientException - if this Client doesn't exist.
com.sun.media.jsdt.NoSuchHostException - if the remote host associated with this Session doesn't exist.
com.sun.media.jsdt.PermissionDeniedException - if this Client doesn't have permission for this operation.
com.sun.media.jsdt.ManagerExistsException - if a manager already exists for this ByteArray.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

createChannel

public com.sun.media.jsdt.Channel createChannel(com.sun.media.jsdt.Client client,
                                                java.lang.String channelName,
                                                boolean reliable,
                                                boolean ordered,
                                                boolean autoJoin)
                                         throws com.sun.media.jsdt.ConnectionException,
                                                com.sun.media.jsdt.InvalidClientException,
                                                com.sun.media.jsdt.NameInUseException,
                                                com.sun.media.jsdt.NoSuchSessionException,
                                                com.sun.media.jsdt.NoSuchClientException,
                                                com.sun.media.jsdt.NoSuchHostException,
                                                com.sun.media.jsdt.PermissionDeniedException,
                                                com.sun.media.jsdt.TimedOutException
creates a Channel with the given name which can then be used with the various Channel operations. This Channel is then known to the Session. No ChannelManager is associated with this Channel; any Client which has already joined the Session may freely join this Channel.

If a Channel with this name already exists, a reference to that Channel is returned.

Parameters:
client - a client that will be used for authentication purposes if this is a managed session.
channelName - the name to give this channel.
reliable - whether the channel is reliable. In other words whether data delivery is guarenteed.
ordered - whether data sent over the channel is ordered.
autoJoin - if true, automatically join the Channel when it's created.
Returns:
the newly created Channel or a local reference to it, if it was already created.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.InvalidClientException - if the Client is invalid is some way (ie. its getName() method returns null).
com.sun.media.jsdt.NameInUseException - if a Client with this name is already joined to this Channel.
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.NoSuchClientException - if this Client doesn't exist.
com.sun.media.jsdt.NoSuchHostException - if the remote host associated with this Session doesn't exist.
com.sun.media.jsdt.PermissionDeniedException - if this Client doesn't have permission for this operation.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

createChannel

public com.sun.media.jsdt.Channel createChannel(com.sun.media.jsdt.Client client,
                                                java.lang.String channelName,
                                                boolean reliable,
                                                boolean ordered,
                                                com.sun.media.jsdt.ChannelManager channelManager)
                                         throws com.sun.media.jsdt.ConnectionException,
                                                com.sun.media.jsdt.InvalidClientException,
                                                com.sun.media.jsdt.NoSuchSessionException,
                                                com.sun.media.jsdt.NoSuchClientException,
                                                com.sun.media.jsdt.NoSuchHostException,
                                                com.sun.media.jsdt.PermissionDeniedException,
                                                com.sun.media.jsdt.ManagerExistsException,
                                                com.sun.media.jsdt.TimedOutException
creates a Channel with the given name which can then be used with the various Channel operations. This Channel is then known to the Session. A ChannelManager is associated with this Channel; Clients are authenticated before they are allowed to join the Channel (ie. the equivalent of a private channel).
Parameters:
client - a Client that will be used for authentication purposes if this is a managed Session.
channelName - the name to give this Channel.
reliable - whether the Channel is reliable. In other words whether data delivery is guarenteed.
ordered - whether Data sent over the Channel is ordered.
channelManager - the manager for this Channel.
Returns:
the newly created managed Channel.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.InvalidClientException - if the Client is invalid is some way (ie. its getName() method returns null).
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.NoSuchClientException - if this Client doesn't exist.
com.sun.media.jsdt.NoSuchHostException - if the remote host associated with this Session doesn't exist.
com.sun.media.jsdt.PermissionDeniedException - if this Client doesn't have permission for this operation.
com.sun.media.jsdt.ManagerExistsException - if a manager already exists for this Channel.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

createToken

public com.sun.media.jsdt.Token createToken(com.sun.media.jsdt.Client client,
                                            java.lang.String tokenName,
                                            boolean autoJoin)
                                     throws com.sun.media.jsdt.ConnectionException,
                                            com.sun.media.jsdt.InvalidClientException,
                                            com.sun.media.jsdt.NameInUseException,
                                            com.sun.media.jsdt.NoSuchSessionException,
                                            com.sun.media.jsdt.NoSuchClientException,
                                            com.sun.media.jsdt.NoSuchHostException,
                                            com.sun.media.jsdt.PermissionDeniedException,
                                            com.sun.media.jsdt.TimedOutException
creates a Token with the given name which can then be used with the various Token operations. This Token is then known to the session. No TokenManager is associated with this Token; any Client which has already joined the Session may freely join this Token.

If a Token with this name already exists, a reference to that Token is returned.

Parameters:
client - a Client that will be used for authentication purposes if this is a managed Session.
tokenName - the name to give this Token.
autoJoin - if true, automatically join the Token when it's created.
Returns:
the newly created Token or a local reference to it, if it was already created.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.InvalidClientException - if the Client is invalid is some way (ie. its getName() method returns null).
com.sun.media.jsdt.NameInUseException - if a Client with this name is already joined to this Token.
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.NoSuchClientException - if this Client doesn't exist.
com.sun.media.jsdt.NoSuchHostException - if the remote host associated with this Session doesn't exist.
com.sun.media.jsdt.PermissionDeniedException - if this Client doesn't have permission for this operation.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

createToken

public com.sun.media.jsdt.Token createToken(com.sun.media.jsdt.Client client,
                                            java.lang.String tokenName,
                                            com.sun.media.jsdt.TokenManager tokenManager)
                                     throws com.sun.media.jsdt.ConnectionException,
                                            com.sun.media.jsdt.InvalidClientException,
                                            com.sun.media.jsdt.NoSuchSessionException,
                                            com.sun.media.jsdt.NoSuchClientException,
                                            com.sun.media.jsdt.NoSuchHostException,
                                            com.sun.media.jsdt.PermissionDeniedException,
                                            com.sun.media.jsdt.ManagerExistsException,
                                            com.sun.media.jsdt.TimedOutException
creates a Token with the given name which can then be used with the various Token operations. This Token is then known to the Session. A TokenManager is associated with this Token; Clients are authenticated before they are allowed to join the Token (ie. the equivalent of a private Token).
Parameters:
client - a Client that will be used for authentication purposes if this is a managed Session.
tokenName - the name of the Token to create.
tokenManager - the manager of this Token.
Returns:
the newly created managed Token.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.InvalidClientException - if the Client is invalid is some way (ie. its getName() method returns null).
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.NoSuchClientException - if this Client doesn't exist.
com.sun.media.jsdt.NoSuchHostException - if the remote host associated with this Session doesn't exist.
com.sun.media.jsdt.PermissionDeniedException - if this Client doesn't have permission for this operation.
com.sun.media.jsdt.ManagerExistsException - if a manager already exists for this Token.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

byteArrayExists

public boolean byteArrayExists(java.lang.String byteArrayName)
                        throws com.sun.media.jsdt.ConnectionException,
                               com.sun.media.jsdt.NoSuchSessionException,
                               com.sun.media.jsdt.TimedOutException
checks if a Bytearray with this name exists.
Parameters:
byteArrayName - the name of the ByteArray to check on.
Returns:
true if a ByteArray with this name exists; false if it doesn't.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

channelExists

public boolean channelExists(java.lang.String channelName)
                      throws com.sun.media.jsdt.ConnectionException,
                             com.sun.media.jsdt.NoSuchSessionException,
                             com.sun.media.jsdt.TimedOutException
checks if a Channel with this name exists.
Parameters:
channelName - the name of the Channel to check on.
Returns:
true if a Channel with this name exists; false if it doesn't.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

tokenExists

public boolean tokenExists(java.lang.String tokenName)
                    throws com.sun.media.jsdt.ConnectionException,
                           com.sun.media.jsdt.NoSuchSessionException,
                           com.sun.media.jsdt.TimedOutException
checks if a Token with this name exists.
Parameters:
tokenName - the name of the Token to check on.
Returns:
true if a Token with this name exists; false if it doesn't.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

byteArrayManaged

public boolean byteArrayManaged(java.lang.String byteArrayName)
                         throws com.sun.media.jsdt.ConnectionException,
                                com.sun.media.jsdt.NoSuchByteArrayException,
                                com.sun.media.jsdt.NoSuchSessionException,
                                com.sun.media.jsdt.TimedOutException
checks if the Bytearray with this name is managed.
Parameters:
byteArrayName - the name of the ByteArray to check on.
Returns:
true if the ByteArray with this name is managed; false if it isn't.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.NoSuchByteArrayException - if the byte array doesn't exist.
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

channelManaged

public boolean channelManaged(java.lang.String channelName)
                       throws com.sun.media.jsdt.ConnectionException,
                              com.sun.media.jsdt.NoSuchChannelException,
                              com.sun.media.jsdt.NoSuchSessionException,
                              com.sun.media.jsdt.TimedOutException
checks if the Channel with this name is managed.
Parameters:
channelName - the name of the Channel to check on.
Returns:
true if the Channel with this name is managed; false if it isn't.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.NoSuchChannelException - if the channel doesn't exist.
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

tokenManaged

public boolean tokenManaged(java.lang.String tokenName)
                     throws com.sun.media.jsdt.ConnectionException,
                            com.sun.media.jsdt.NoSuchTokenException,
                            com.sun.media.jsdt.NoSuchSessionException,
                            com.sun.media.jsdt.TimedOutException
checks if the Token with this name is managed.
Parameters:
tokenName - the name of the Token to check on.
Returns:
true if the Token with this name is managed; false if it isn't.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.NoSuchTokenException - if the token doesn't exist.
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

getByteArraysJoined

public com.sun.media.jsdt.ByteArray[] getByteArraysJoined(com.sun.media.jsdt.Client client)
                                                   throws com.sun.media.jsdt.ConnectionException,
                                                          com.sun.media.jsdt.InvalidClientException,
                                                          com.sun.media.jsdt.NoSuchSessionException,
                                                          com.sun.media.jsdt.TimedOutException
return an array of ByteArrays that this Client has successfully joined.
Parameters:
client - the Client to check on.
Returns:
an array of ByteArrays that this Client has successfully joined.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.InvalidClientException - if the Client is invalid is some way (ie. its getName() method returns null).
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

getChannelsJoined

public com.sun.media.jsdt.Channel[] getChannelsJoined(com.sun.media.jsdt.Client client)
                                               throws com.sun.media.jsdt.ConnectionException,
                                                      com.sun.media.jsdt.InvalidClientException,
                                                      com.sun.media.jsdt.NoSuchSessionException,
                                                      com.sun.media.jsdt.TimedOutException
return an array of Channels that this Client has successfully joined.
Parameters:
client - the Client to check on.
Returns:
an array of Channels that this Client has successfully joined.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.InvalidClientException - if the Client is invalid is some way (ie. its getName() method returns null).
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

getTokensJoined

public com.sun.media.jsdt.Token[] getTokensJoined(com.sun.media.jsdt.Client client)
                                           throws com.sun.media.jsdt.ConnectionException,
                                                  com.sun.media.jsdt.InvalidClientException,
                                                  com.sun.media.jsdt.NoSuchSessionException,
                                                  com.sun.media.jsdt.TimedOutException
return an array of Tokens that this Client has successfully joined.
Parameters:
client - the Client to check on.
Returns:
an array of Tokens that this Client has successfully joined.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.InvalidClientException - if the Client is invalid is some way (ie. its getName() method returns null).
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

listByteArrayNames

public java.lang.String[] listByteArrayNames()
                                      throws com.sun.media.jsdt.ConnectionException,
                                             com.sun.media.jsdt.NoSuchSessionException,
                                             com.sun.media.jsdt.TimedOutException
list the names of the ByteArrays that are known to this Session.
Returns:
a sorted array of names of the ByteArrays that are known to this Session.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

listChannelNames

public java.lang.String[] listChannelNames()
                                    throws com.sun.media.jsdt.ConnectionException,
                                           com.sun.media.jsdt.NoSuchSessionException,
                                           com.sun.media.jsdt.TimedOutException
list the names of the Channels that are known to this Session.
Returns:
a sorted array of names of the Channels that are known to this Session.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

listTokenNames

public java.lang.String[] listTokenNames()
                                  throws com.sun.media.jsdt.ConnectionException,
                                         com.sun.media.jsdt.NoSuchSessionException,
                                         com.sun.media.jsdt.TimedOutException
list the names of the Tokens that are known to this Session.
Returns:
a sorted array of names of the Tokens that are known to this Session.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.
com.sun.media.jsdt.TimedOutException - if no reply was received for this operation in the given timeout period.

close

public void close(boolean closeConnection)
           throws com.sun.media.jsdt.ConnectionException,
                  com.sun.media.jsdt.NoSuchSessionException
closes the session, rendering the session handle invalid. This method should be called when an applet or application terminates to facilitate the cleanup process. If a client wishes to further participate in this session, then it will need to get a new session handle with SessionFactory.createSession If there are no other Sessions on the same "host:port" as this Session, the underlying connection being used by this applet or application will automatically be closed.
Parameters:
closeConnection - indicates whether the underlying connection used by this applet or application should be forcefully closed. Forcefully closing this connection would automatically render all references to other Sessions on the "host:port" being used by this Session as invalid.
Throws:
com.sun.media.jsdt.ConnectionException - if a connection error occured.
com.sun.media.jsdt.NoSuchSessionException - if this Session doesn't exist.