|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JSDT abstract client-side Session proxy interface.
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 |
public void initProxy(java.lang.String name, SessionImpl session, java.lang.Object object)
public java.lang.Object getProxy()
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
sessionManager
- the manager to attach to this Session.session
- the Session to attach the manager to.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
If a ByteArray with this name already exists, a reference to that ByteArray is returned.
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.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
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.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
If a Channel with this name already exists, a reference to that Channel is returned.
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.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
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.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
If a Token with this name already exists, a reference to that Token is returned.
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.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
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.public boolean byteArrayExists(java.lang.String byteArrayName) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.TimedOutException
byteArrayName
- the name of the ByteArray to check on.public boolean channelExists(java.lang.String channelName) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.TimedOutException
channelName
- the name of the Channel to check on.public boolean tokenExists(java.lang.String tokenName) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.TimedOutException
tokenName
- the name of the Token to check on.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
byteArrayName
- the name of the ByteArray to check on.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
channelName
- the name of the Channel to check on.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
tokenName
- the name of the Token to check on.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
client
- the Client to check on.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
client
- the Client to check on.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
client
- the Client to check on.public java.lang.String[] listByteArrayNames() throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.TimedOutException
public java.lang.String[] listChannelNames() throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.TimedOutException
public java.lang.String[] listTokenNames() throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.TimedOutException
public void close(boolean closeConnection) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoSuchSessionException
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.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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |