Home | Trees | Index | Help |
|
---|
Package AccessGrid :: Module SharedAppClient :: Class SharedAppClient |
|
Method Summary | |
---|---|
Creates the client. | |
Access method for application service specific ID. | |
Access method for application state. | |
Access method for all instances connected to the application service. | |
Get data from application service | |
Access method for data keys. | |
Access method for participants. | |
Access method for public ID. | |
Access method for venue URL where the application service is running. | |
This method is called when an event is distributed in the application service. | |
Returns the log file. | |
Connect registers this client with the SharedApplication at specified URL. | |
Register callback for event. | |
Post an event to all applications connected to the service. | |
Add data to application service. | |
Set your profile. | |
Set your status. | |
Exit from application service and shut down event client. | |
Make sure we have the most recent value for a cached data key. | |
Check if event is registered locally in callback table. | |
This method is called when data has been set in the application service. |
Method Details |
---|
__init__(self,
appName)
|
GetApplicationID(self)Access method for application service specific ID. **Returns** *appId* ID associated with the application service we are connected to. |
GetApplicationState(self)Access method for application state. **Returns** *state* Application state. |
GetComponents(self)Access method for all instances connected to the application service. **Returns** *components* List of public IDs for each instance connected to the application service. |
GetData(self, dataKey)Get data from application service **Arguments** *dataKey* Unique id of data available in the service **Returns** *dataValue* The value associated with the specified dataKey |
GetDataKeys(self)Access method for data keys. **Returns** *keys* List of data keys. |
GetParticipants(self)Access method for participants. **Returns** *participants* List of AppParticipantDescriptions. |
GetPublicId(self)Access method for public ID. **Returns** *publicId* Id associated with this client. |
GetVenueURL(self)Access method for venue URL where the application service is running. **Returns** *url* URL to venue where the application service is running. |
HandleEvent(self, event)This method is called when an event is distributed in the application service. NOTE: Used internally. |
InitLogging(self, debug=0, log=None)Returns the log file. **Arguments** *debug* Not relevant. Note: Use WXGUIApplication.Initialize() in application main method instead. *log* Not relevant. Note: Use WXGUIApplication.Initialize() in application main method instead. |
Join(self, appServiceUrl, clientProfile=None)Connect registers this client with the SharedApplication at specified URL. The registration gives access to the EventService used for data communication among applications connected to this service. **Arguments** *appServiceUrl* location of application service. |
RegisterEventCallback(self, eventType, callback)Register callback for event. Several callbacks can be registered for each event. **Arguments** *eventType* Event to listen for. *callback* Method called when receiving event of type eventType. |
SendEvent(self, eventType, data)Post an event to all applications connected to the service. Note: This client will receive its own events. **Arguments** *eventType* Event to send *data* Data associated with this event |
SetData(self, dataKey, dataValue)Add data to application service. Note: If data with same dataKey is already present in the application service, the old dataValue will be overwritten. **Arguments** *dataKey* Unique id for this data *dataValue* The actual data |
SetParticipantProfile(self, profile)Set your profile. **Arguments** *profile* Your ClientProfile. |
SetParticipantStatus(self, status)Set your status. **Arguments** *status* Status string |
Shutdown(self)Exit from application service and shut down event client. |
UpdateDataCache(self, dataKey=None)Make sure we have the most recent value for a cached data key. **Arguments** *dataKey* Unique id of data available in the service. If dataKey is None, update the entire cache. |
__EventIsRegistered(self, eventType)Check if event is registered locally in callback table. |
__ReceiveDataUpdate(self, event)This method is called when data has been set in the application service. **Arguments** *event* Received event. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Thu Apr 14 16:39:28 2005 | http://epydoc.sf.net |