Remote System Explorer DataStore
Release 3.0

org.eclipse.dstore.core.model
Class DefaultDataStoreCompatibilityHandler

java.lang.Object
  extended by org.eclipse.dstore.core.model.DefaultDataStoreCompatibilityHandler
All Implemented Interfaces:
IDataStoreCompatibilityHandler

public class DefaultDataStoreCompatibilityHandler
extends Object
implements IDataStoreCompatibilityHandler

Since:
3.0

Field Summary
 
Fields inherited from interface org.eclipse.dstore.core.model.IDataStoreCompatibilityHandler
HANDSHAKE_CORRECT, HANDSHAKE_INCORRECT, HANDSHAKE_SERVER_NEWER, HANDSHAKE_SERVER_OLDER, HANDSHAKE_SERVER_RECENT_NEWER, HANDSHAKE_SERVER_RECENT_OLDER, HANDSHAKE_TIMEOUT, HANDSHAKE_UNEXPECTED, VERSION_INDEX_MINOR, VERSION_INDEX_PROTOCOL, VERSION_INDEX_VERSION
 
Constructor Summary
DefaultDataStoreCompatibilityHandler(DataStore dataStore)
           
 
Method Summary
 int checkCompatibility(String handshake)
          Checks whether a server is compatible with the current client
 void handleMissingCommand(DataElement descriptor, String keyName)
          This method is called to notify the compatibility handler that a call to localDescriptorQuery() failed to return a result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDataStoreCompatibilityHandler

public DefaultDataStoreCompatibilityHandler(DataStore dataStore)
Method Detail

checkCompatibility

public int checkCompatibility(String handshake)
Description copied from interface: IDataStoreCompatibilityHandler
Checks whether a server is compatible with the current client

Specified by:
checkCompatibility in interface IDataStoreCompatibilityHandler
Parameters:
handshake - the server handshake string in the form ..
Returns:
whether this is considered compatible with the client datastore version

handleMissingCommand

public void handleMissingCommand(DataElement descriptor,
                                 String keyName)
Description copied from interface: IDataStoreCompatibilityHandler
This method is called to notify the compatibility handler that a call to localDescriptorQuery() failed to return a result.

Specified by:
handleMissingCommand in interface IDataStoreCompatibilityHandler
Parameters:
descriptor - the object descriptor that the command was looked for under
keyName - the value of the command descriptor to look for

Remote System Explorer DataStore
Release 3.0

Guidelines for using DataStore APIs.