|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
JSDT client-side abstract proxy manageable parent class.
Method Summary | |
void |
addListener(java.util.EventListener listener,
char listenerType)
addListener add a listener to this manageable object. |
void |
changeListenerMask(java.util.EventListener listener,
int eventMask,
boolean disable)
changeListenerMask enables or disables certain events for this JSDT listener. |
void |
changeManagerMask(com.sun.media.jsdt.JSDTManager manager,
int eventMask,
boolean disable,
char objectType)
changeManagerMask enables or disables certain events for this JSDT Manager. |
void |
destroy(com.sun.media.jsdt.Client client,
char objectType)
destroy this Manageable object. |
void |
expel(com.sun.media.jsdt.Client[] clients,
char objectType)
expel Clients from this Manageable object. |
java.lang.Object |
getProxy()
getProxy get a handle to the client-side proxy for this manageable object. |
com.sun.media.jsdt.Session |
getSession()
get the name of the Session that this manageable object belongs to. |
void |
initProxy(java.lang.String name,
SessionImpl session,
java.lang.Object object)
initProxy initialise the client-side proxy for this manageable object. |
void |
invite(com.sun.media.jsdt.Client[] clients,
char objectType)
invite Clients to join this Manageable object. |
boolean |
isManaged(char objectType,
java.lang.String objectName)
test whether this managed object actually has a manager associated with it. |
void |
join(com.sun.media.jsdt.Client client,
boolean authenticate,
char objectType)
join a Client to this Manageable object. |
void |
leave(com.sun.media.jsdt.Client client,
char objectType)
removes a Client from this Manageable object. |
java.lang.String[] |
listClientNames(char objectType)
list the names of the Clients who are joined to this Manageable object. |
void |
removeListener(java.util.EventListener listener,
char listenerType)
removeListener remove a listener from this manageable object. |
Method Detail |
public void initProxy(java.lang.String name, SessionImpl session, java.lang.Object object)
name
- the name of the manageable proxy being constructed.session
- the client-side session the manageable object
belongs to.object
- the client-side manageable object.public java.lang.Object getProxy()
public com.sun.media.jsdt.Session getSession()
public void addListener(java.util.EventListener listener, char listenerType) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoSuchByteArrayException, com.sun.media.jsdt.NoSuchChannelException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.NoSuchTokenException, com.sun.media.jsdt.TimedOutException
listener
- the listener for this manageable object.listenerType
- the type of listener. This will be one of:
SessionImpl.M_Session, ChannelImpl.M_Channel, ByteArrayImpl.M_ByteArray
or TokenImpl.M_Token.public void removeListener(java.util.EventListener listener, char listenerType) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoSuchByteArrayException, com.sun.media.jsdt.NoSuchChannelException, com.sun.media.jsdt.NoSuchListenerException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.NoSuchTokenException, com.sun.media.jsdt.TimedOutException
listener
- the listener for this manageable object.listenerType
- the type of listener. This will be one of:
SessionImpl.M_Session, ChannelImpl.M_Channel, ByteArrayImpl.M_ByteArray
or TokenImpl.M_Token.public void changeListenerMask(java.util.EventListener listener, int eventMask, boolean disable) throws com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.NoSuchChannelException, com.sun.media.jsdt.NoSuchByteArrayException, com.sun.media.jsdt.NoSuchTokenException, com.sun.media.jsdt.NoSuchListenerException
listener
- the listener whose event mask is being changed.eventMask
- the mask of events to be enabled or disabled.disable
- if set true, then disable these events for this
listener, else enable them.public void changeManagerMask(com.sun.media.jsdt.JSDTManager manager, int eventMask, boolean disable, char objectType) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.NoSuchChannelException, com.sun.media.jsdt.NoSuchByteArrayException, com.sun.media.jsdt.NoSuchTokenException, com.sun.media.jsdt.NoSuchManagerException, com.sun.media.jsdt.TimedOutException
manager
- the manager whose event mask is being changed.eventMask
- the mask of events to be enabled or disabled.disable
- if set true, then disable these events for this
manager, else enable them.objectType
- the type of the manageable object. This will
be one of: SessionImpl.M_Session, ChannelImpl.M_Channel,
ByteArrayImpl.M_ByteArray or TokenImpl.M_Token.public void expel(com.sun.media.jsdt.Client[] clients, char objectType) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.InvalidClientException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.NoSuchChannelException, com.sun.media.jsdt.NoSuchByteArrayException, com.sun.media.jsdt.NoSuchClientException, com.sun.media.jsdt.NoSuchTokenException, com.sun.media.jsdt.PermissionDeniedException, com.sun.media.jsdt.TimedOutException
This method should only be called by the manager for this object. An indication is delivered to each listener of this Manageable object, for each Client expelled.
clients
- the list of Clients to be expelled from this
object.objectType
- the type of the manageable object. This will
be one of: SessionImpl.M_Session, ChannelImpl.M_Channel,
ByteArrayImpl.M_ByteArray or TokenImpl.M_Token.public void invite(com.sun.media.jsdt.Client[] clients, char objectType) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.InvalidClientException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.NoSuchChannelException, com.sun.media.jsdt.NoSuchByteArrayException, com.sun.media.jsdt.NoSuchClientException, com.sun.media.jsdt.NoSuchTokenException, com.sun.media.jsdt.PermissionDeniedException, com.sun.media.jsdt.TimedOutException
This method should only be called by the manager for this object. An indication is delivered to each listener of this Manageable object, for each Client invited.
clients
- the list of Clients to be invited to join this
object.objectType
- the type of the manageable object. This will
be one of: SessionImpl.M_Session, ChannelImpl.M_Channel,
ByteArrayImpl.M_ByteArray or TokenImpl.M_Token.public void destroy(com.sun.media.jsdt.Client client, char objectType) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.InvalidClientException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.NoSuchChannelException, com.sun.media.jsdt.NoSuchByteArrayException, com.sun.media.jsdt.NoSuchClientException, com.sun.media.jsdt.NoSuchTokenException, com.sun.media.jsdt.PermissionDeniedException, com.sun.media.jsdt.TimedOutException
An indication is delivered to each listener of this Manageable object, that it has been destroyed. If this is for a ByteArray, Channel or Token in a managed Session, then the Client is authenticated to determine if it is permitted to do this operation.
client
- the Client wishing to destroy this object.objectType
- the type of the manageable object. This will
be one of: SessionImpl.M_Session, ChannelImpl.M_Channel,
ByteArrayImpl.M_ByteArray or TokenImpl.M_Token.public boolean isManaged(char objectType, java.lang.String objectName) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.NoSuchChannelException, com.sun.media.jsdt.NoSuchByteArrayException, com.sun.media.jsdt.NoSuchTokenException, com.sun.media.jsdt.TimedOutException
objectType
- the type of the manageable object. This will
be one of: SessionImpl.M_Session, ChannelImpl.M_Channel,
ByteArrayImpl.M_ByteArray or TokenImpl.M_Token.objectName
- the name of the manageable object.public void join(com.sun.media.jsdt.Client client, boolean authenticate, char objectType) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.InvalidClientException, com.sun.media.jsdt.NoSuchByteArrayException, com.sun.media.jsdt.NoSuchChannelException, com.sun.media.jsdt.NoSuchClientException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.NoSuchTokenException, com.sun.media.jsdt.PermissionDeniedException, com.sun.media.jsdt.NameInUseException, com.sun.media.jsdt.TimedOutException
If this is a managed object, then the Client is authenticated to determine if it is permitted to do this operation.
client
- the Client wishing to join this Manageable object.authenticate
- set true if this Client should be
authenticated.objectType
- the type of the manageable object. This will
be one of: SessionImpl.M_Session, ChannelImpl.M_Channel,
ByteArrayImpl.M_ByteArray or TokenImpl.M_Token.public void leave(com.sun.media.jsdt.Client client, char objectType) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.InvalidClientException, com.sun.media.jsdt.NoSuchByteArrayException, com.sun.media.jsdt.NoSuchChannelException, com.sun.media.jsdt.NoSuchClientException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.NoSuchTokenException, com.sun.media.jsdt.TimedOutException
client
- the Client in question.objectType
- the type of the manageable object. This will
be one of: SessionImpl.M_Session, ChannelImpl.M_Channel,
ByteArrayImpl.M_ByteArray or TokenImpl.M_Token.public java.lang.String[] listClientNames(char objectType) throws com.sun.media.jsdt.ConnectionException, com.sun.media.jsdt.NoSuchSessionException, com.sun.media.jsdt.NoSuchChannelException, com.sun.media.jsdt.NoSuchByteArrayException, com.sun.media.jsdt.NoSuchTokenException, com.sun.media.jsdt.TimedOutException
objectType
- the type of the manageable object. This will
be one of: SessionImpl.M_Session, ChannelImpl.M_Channel,
ByteArrayImpl.M_ByteArray or TokenImpl.M_Token.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |