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
static final int HANDSHAKE_INCORRECT
- See Also:
- Constant Field Values
HANDSHAKE_SERVER_OLDER
static final int HANDSHAKE_SERVER_OLDER
- See Also:
- Constant Field Values
HANDSHAKE_CORRECT
static final int HANDSHAKE_CORRECT
- See Also:
- Constant Field Values
HANDSHAKE_UNEXPECTED
static final int HANDSHAKE_UNEXPECTED
- See Also:
- Constant Field Values
HANDSHAKE_SERVER_NEWER
static final int HANDSHAKE_SERVER_NEWER
- See Also:
- Constant Field Values
HANDSHAKE_SERVER_RECENT_OLDER
static final int HANDSHAKE_SERVER_RECENT_OLDER
- See Also:
- Constant Field Values
HANDSHAKE_SERVER_RECENT_NEWER
static final int HANDSHAKE_SERVER_RECENT_NEWER
- See Also:
- Constant Field Values
HANDSHAKE_TIMEOUT
static final int HANDSHAKE_TIMEOUT
- See Also:
- Constant Field Values
VERSION_INDEX_PROTOCOL
static final int VERSION_INDEX_PROTOCOL
- See Also:
- Constant Field Values
VERSION_INDEX_VERSION
static final int VERSION_INDEX_VERSION
- See Also:
- Constant Field Values
VERSION_INDEX_MINOR
static final int VERSION_INDEX_MINOR
- See Also:
- Constant Field Values
checkCompatibility
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
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
Copyright (c) IBM Corporation and others 2000, 2012. All Rights Reserved.