Search in sources :

Example 11 with RetrievalOptions

use of com.ms.silverking.cloud.dht.RetrievalOptions in project SilverKing by Morgan-Stanley.

the class InternalRetrievalOptions method fromSSRetrievalOptions.

public static InternalRetrievalOptions fromSSRetrievalOptions(SSRetrievalOptions options) {
    if (options instanceof InternalRetrievalOptions) {
        return (InternalRetrievalOptions) options;
    } else {
        RetrievalOptions retrievalOptions;
        retrievalOptions = new RetrievalOptions(null, null, options.getRetrievalType(), WaitMode.GET, options.getVersionConstraint(), null, options.getVerifyIntegrity(), options.getReturnInvalidations(), null, false);
        return new InternalRetrievalOptions(retrievalOptions, options.getVerifyIntegrity());
    }
}
Also used : RetrievalOptions(com.ms.silverking.cloud.dht.RetrievalOptions) SSRetrievalOptions(com.ms.silverking.cloud.dht.serverside.SSRetrievalOptions)

Aggregations

RetrievalOptions (com.ms.silverking.cloud.dht.RetrievalOptions)11 InternalRetrievalOptions (com.ms.silverking.cloud.dht.common.InternalRetrievalOptions)6 VersionConstraint (com.ms.silverking.cloud.dht.VersionConstraint)4 RetrievalException (com.ms.silverking.cloud.dht.client.RetrievalException)2 DHTKey (com.ms.silverking.cloud.dht.common.DHTKey)2 KeyAndVersionChecksum (com.ms.silverking.cloud.dht.daemon.storage.KeyAndVersionChecksum)2 MessageGroup (com.ms.silverking.cloud.dht.net.MessageGroup)2 ProtoChecksumTreeRequestMessageGroup (com.ms.silverking.cloud.dht.net.ProtoChecksumTreeRequestMessageGroup)2 ProtoRetrievalMessageGroup (com.ms.silverking.cloud.dht.net.ProtoRetrievalMessageGroup)2 SSRetrievalOptions (com.ms.silverking.cloud.dht.serverside.SSRetrievalOptions)2 UUIDBase (com.ms.silverking.id.UUIDBase)2 LongInterval (com.ms.silverking.numeric.LongInterval)2 NonExistenceResponse (com.ms.silverking.cloud.dht.NonExistenceResponse)1 SessionOptions (com.ms.silverking.cloud.dht.SessionOptions)1 WaitOptions (com.ms.silverking.cloud.dht.WaitOptions)1 DHTSession (com.ms.silverking.cloud.dht.client.DHTSession)1 StoredValue (com.ms.silverking.cloud.dht.client.StoredValue)1 OpResult (com.ms.silverking.cloud.dht.common.OpResult)1 ConvergencePoint (com.ms.silverking.cloud.dht.daemon.storage.convergence.ConvergencePoint)1 IPAndPort (com.ms.silverking.net.IPAndPort)1