|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MsProvider
This is the provider class which is used to create the MsSession.
Through out the Application life cycle MsProvider remains the
same. Application that are interested in listening MsSessionEvent,
MsConnectionEvent, MsLinkEvent and MsNotifyEvent
calls the respective addlistener methods passing instance of class that
implements respective listeners.
Use MsPeer.getProvider() to get the instance of MsProvider
| Method Summary | |
|---|---|
void |
addConnectionListener(MsConnectionListener listener)
Add a connection listener to all connections under this MsProvider. |
void |
addLinkListener(MsLinkListener listener)
Add a link listener to all terminations. |
void |
addNotificationListener(MsNotificationListener listener)
Add a notification listener to all (feature and current) within the domain of this provider. |
void |
addResourceListener(MsResourceListener listener)
Deprecated. |
void |
addSessionListener(MsSessionListener listener)
Add a session listener to all (feature and current) within the domain of this provider. |
MsSession |
createSession()
Creates a new instance of the session with no links. |
MsEventFactory |
getEventFactory()
Get instance of MsEventFactory |
MsConnection |
getMsConnection(java.lang.String msConnectionId)
Get the MsConnection for the msConnectionId passed. |
java.util.List<MsConnection> |
getMsConnections(java.lang.String endpointName)
Gets List of MsConnection object for given endpointName |
java.util.List<MsLink> |
getMsLinks(java.lang.String endpointName)
Gets List of MsLink object for given endpointName |
void |
removeConnectionListener(MsConnectionListener listener)
Removes connection listener |
void |
removeLinkListener(MsLinkListener listener)
Removes link listener |
void |
removeNotificationListener(MsNotificationListener listener)
Remove MsNotificationListener |
void |
removeSessionListener(MsSessionListener listener)
Removes a listener that was previously registered. |
| Method Detail |
|---|
void addSessionListener(MsSessionListener listener)
listener - object that receives the specified eventsvoid removeSessionListener(MsSessionListener listener)
listener - Listener object.void addNotificationListener(MsNotificationListener listener)
listener - void removeNotificationListener(MsNotificationListener listener)
listener - void addConnectionListener(MsConnectionListener listener)
listener - object that receives the specified events.void removeConnectionListener(MsConnectionListener listener)
listener - this listener is removedvoid addResourceListener(MsResourceListener listener)
listener - object that receives the specified events.void addLinkListener(MsLinkListener listener)
listener - object that receives the specified events.void removeLinkListener(MsLinkListener listener)
listener - object that receives the specified events.MsSession createSession()
MsEventFactory getEventFactory()
MsEventFactory
MsEventFactoryMsConnection getMsConnection(java.lang.String msConnectionId)
msConnectionId -
MsConnectionjava.util.List<MsConnection> getMsConnections(java.lang.String endpointName)
endpointName -
MsConnectionjava.util.List<MsLink> getMsLinks(java.lang.String endpointName)
endpointName - Endpoint name
MsLink
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||