org.eclipse.dstore.core.model
Interface IDataStoreCompatibilityHandler
- All Known Implementing Classes:
- DefaultDataStoreCompatibilityHandler
- public interface IDataStoreCompatibilityHandler
- Since:
- 3.0
|
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. |
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
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 underkeyName - the value of the command descriptor to look for
Guidelines for using DataStore APIs.