org.eclipse.dstore.core.model
Class DefaultDataStoreCompatibilityHandler
java.lang.Object
org.eclipse.dstore.core.model.DefaultDataStoreCompatibilityHandler
- All Implemented Interfaces:
- IDataStoreCompatibilityHandler
public class DefaultDataStoreCompatibilityHandler
- extends Object
- implements IDataStoreCompatibilityHandler
- Since:
- 3.0
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 |
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 |
DefaultDataStoreCompatibilityHandler
public DefaultDataStoreCompatibilityHandler(DataStore dataStore)
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 underkeyName
- the value of the command descriptor to look for
Copyright (c) IBM Corporation and others 2000, 2012. All Rights Reserved.