Remote System Explorer DataStore
Release 3.0

org.eclipse.dstore.core.model
Interface IDataStoreCompatibilityHandler

All Known Implementing Classes:
DefaultDataStoreCompatibilityHandler

public interface IDataStoreCompatibilityHandler

Since:
3.0

Field Summary
static int HANDSHAKE_CORRECT
           
static int HANDSHAKE_INCORRECT
           
static int HANDSHAKE_SERVER_NEWER
           
static int HANDSHAKE_SERVER_OLDER
           
static int HANDSHAKE_SERVER_RECENT_NEWER
           
static int HANDSHAKE_SERVER_RECENT_OLDER
           
static int HANDSHAKE_TIMEOUT
           
static int HANDSHAKE_UNEXPECTED
           
static int VERSION_INDEX_MINOR
           
static int VERSION_INDEX_PROTOCOL
           
static int VERSION_INDEX_VERSION
           
 
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.
 

Field Detail

HANDSHAKE_INCORRECT

public static final int HANDSHAKE_INCORRECT
See Also:
Constant Field Values

HANDSHAKE_SERVER_OLDER

public static final int HANDSHAKE_SERVER_OLDER
See Also:
Constant Field Values

HANDSHAKE_CORRECT

public static final int HANDSHAKE_CORRECT
See Also:
Constant Field Values

HANDSHAKE_UNEXPECTED

public static final int HANDSHAKE_UNEXPECTED
See Also:
Constant Field Values

HANDSHAKE_SERVER_NEWER

public static final int HANDSHAKE_SERVER_NEWER
See Also:
Constant Field Values

HANDSHAKE_SERVER_RECENT_OLDER

public static final int HANDSHAKE_SERVER_RECENT_OLDER
See Also:
Constant Field Values

HANDSHAKE_SERVER_RECENT_NEWER

public static final int HANDSHAKE_SERVER_RECENT_NEWER
See Also:
Constant Field Values

HANDSHAKE_TIMEOUT

public static final int HANDSHAKE_TIMEOUT
See Also:
Constant Field Values

VERSION_INDEX_PROTOCOL

public static final int VERSION_INDEX_PROTOCOL
See Also:
Constant Field Values

VERSION_INDEX_VERSION

public static final int VERSION_INDEX_VERSION
See Also:
Constant Field Values

VERSION_INDEX_MINOR

public static final int VERSION_INDEX_MINOR
See Also:
Constant Field Values
Method Detail

checkCompatibility

public int checkCompatibility(String handshake)
Checks whether a server is compatible with the current client

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)
This method is called to notify the compatibility handler that a call to localDescriptorQuery() failed to return a result.

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.