|
|||||||||
| 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, MsSignalGenerator and MsSignalDetector. 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 connectionListener)
Add a connection listener to all connections under this MsProvider. |
void |
addLinkListener(MsLinkListener listener)
Add a link listener to all terminations. |
void |
addResourceListener(MsResourceListener listener)
Add a resource listener to all resources under this MsProvider. |
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. |
MsCallbackHandler |
getCallbackHandler()
Get the CallbackHandler implementation |
java.util.List<MsConnectionListener> |
getConnectionListeners()
Returns the List of MsConnectionListener registered with MsProvider |
java.util.List<MsLinkListener> |
getLinkListeners()
Returns the List of MsLinkListener registered with MsProvider |
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<MsResourceListener> |
getResourceListeners()
Returns List of MsResourceListener registered with MsProvider |
java.util.List<MsSessionListener> |
getSessionListeners()
Returns the list of MsSessionListners registered with MsProvider |
MsSignalDetector |
getSignalDetector(java.lang.String endpointName)
Creates a new instance of SignalDetector for given EndpointName |
MsSignalGenerator |
getSignalGenerator(java.lang.String endpointName)
Creates a new instance of MsSignalGenerator for given EndpointName |
void |
removeLinkListener(MsLinkListener listener)
Removes link listener |
void |
removeSessionListener(MsSessionListener listener)
Removes a listener that was previously registered. |
void |
setCallbackHandler(MsCallbackHandler callbackHandler)
An application ( that implements MsCallbackHandler ) using MsProvider can be called synchronously by setting CallbackHandler here. |
| Method Detail |
|---|
void addSessionListener(MsSessionListener listener)
listener - object that receives the specified eventsvoid removeSessionListener(MsSessionListener listener)
listener - Listener object.java.util.List<MsSessionListener> getSessionListeners()
void addConnectionListener(MsConnectionListener connectionListener)
MsConnectionListener - object that receives the specified events.java.util.List<MsConnectionListener> getConnectionListeners()
void addResourceListener(MsResourceListener listener)
MsResourceListener - object that receives the specified events.java.util.List<MsResourceListener> getResourceListeners()
void addLinkListener(MsLinkListener listener)
MsLinkListener - object that receives the specified events.void removeLinkListener(MsLinkListener listener)
MsLinkListener - object that receives the specified events.java.util.List<MsLinkListener> getLinkListeners()
MsSession createSession()
MsSignalGenerator getSignalGenerator(java.lang.String endpointName)
endpointName -
MsSignalDetector getSignalDetector(java.lang.String endpointName)
endpointName -
MsConnection getMsConnection(java.lang.String msConnectionId)
msConnectionId -
java.util.List<MsConnection> getMsConnections(java.lang.String endpointName)
endpointName -
void setCallbackHandler(MsCallbackHandler callbackHandler)
callbackHandler - MsCallbackHandler getCallbackHandler()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||