| org.datashare.client.DataShareClientInterface
All known Subclasses: org.datashare.client.BroadCastClient,
DataShareClientInterface | public interface DataShareClientInterface extends ClientDataReceiverInterface(Code) | | Must be implemented by any class that uses the DataShareClient class
for a data connection to the DataShareServer. These are the callback methods
that the DataShareClient will use to inform whoever implements this class
about activities having to do with the DataShareServer. This class provides
the methods to let the implementor know when data has arrived, when the dataConnection
is ready for use, and when a problem with a connection has occured.
NOTE that package names for classes that implement this interface MUST BE UNIQUE
on the datashare server. You may have to change your package name if you find it is not unique
or else your data may get mingled with other non-associated class's data...
|
commandStatusConnectionError | public void commandStatusConnectionError(boolean fatalError, String errorMsg)(Code) | | this method is called when the command/status connection has an error,
this will be used to notify anybody that cares...
Parameters: fatalError - indicates is error is fatal, non-fatal error example is when a re-connect is attempted Parameters: errorMsg - explains the nature of the error, suitable for user display |
dataChannelIsReady | public void dataChannelIsReady(boolean success)(Code) | | called automatically when the data connection is setup and available for use, the
data channel must not be used before this gets called.
Parameters: success - true if the data channel is ready for use, false if we failedto get it established. |
updateReceived | public void updateReceived(UpdateAvailableMsg msg)(Code) | | called when a change has occured with the session/client tree
|
|
|