Examples of TimeSpan


Examples of org.skife.config.TimeSpan

   
    public ServiceResponse putEntry(ServiceRequest request, ServiceResponse response,
            K key, InputStream dataIn, OperationDiagnostics metadata)
    {
        final int checksum = _decodeInt(request.getQueryParameter(ClusterMateConstants.QUERY_PARAM_CHECKSUM), 0);
        TimeSpan minTTL = findMinTTLParameter(request, key);
        TimeSpan maxTTL = findMaxTTLParameter(request, key);

        return putEntry(request, response, key, checksum, dataIn,
                minTTL, maxTTL, metadata);
    }
View Full Code Here

Examples of org.skife.config.TimeSpan

     */
    protected TimeSpan findMinTTLParameter(ServiceRequest request, K key)
    {
        String paramKey = ClusterMateConstants.QUERY_PARAM_MIN_SINCE_ACCESS_TTL;
        String paramValue = request.getQueryParameter(paramKey);
        return _isEmpty(paramValue) ? null : new TimeSpan(paramValue);
    }
View Full Code Here

Examples of org.skife.config.TimeSpan

     */
    protected TimeSpan findMaxTTLParameter(ServiceRequest request, K key)
    {
        String paramKey = ClusterMateConstants.QUERY_PARAM_MAX_TTL;
        String paramValue = request.getQueryParameter(paramKey);
        return _isEmpty(paramValue) ? null : new TimeSpan(paramValue);
    }
View Full Code Here

Examples of org.skife.config.TimeSpan

    {
        final int checksum = _decodeInt(request.getQueryParameter(ClusterMateConstants.HTTP_QUERY_PARAM_CHECKSUM), 0);
        String paramKey = null, paramValue = null;
        paramKey = ClusterMateConstants.HTTP_QUERY_PARAM_MIN_SINCE_ACCESS_TTL;
        paramValue = request.getQueryParameter(paramKey);
        TimeSpan minTTL = _isEmpty(paramValue) ? null : new TimeSpan(paramValue);
        paramKey = ClusterMateConstants.HTTP_QUERY_PARAM_MAX_TTL;
        paramValue = request.getQueryParameter(paramKey);
        TimeSpan maxTTL = _isEmpty(paramValue) ? null : new TimeSpan(paramValue);

        return putEntry(request, response, key, checksum, dataIn,
                minTTL, maxTTL, metadata);
    }  
View Full Code Here

Examples of org.skife.config.TimeSpan

   
    public ServiceResponse putEntry(ServiceRequest request, ServiceResponse response,
            K key, InputStream dataIn, OperationDiagnostics metadata)
    {
        final int checksum = _decodeInt(request.getQueryParameter(ClusterMateConstants.QUERY_PARAM_CHECKSUM), 0);
        TimeSpan minTTL = findMinTTLParameter(request, key);
        TimeSpan maxTTL = findMaxTTLParameter(request, key);

        return putEntry(request, response, key, checksum, dataIn,
                minTTL, maxTTL, metadata);
    }
View Full Code Here

Examples of org.skife.config.TimeSpan

     */
    protected TimeSpan findMinTTLParameter(ServiceRequest request, K key)
    {
        String paramKey = ClusterMateConstants.QUERY_PARAM_MIN_SINCE_ACCESS_TTL;
        String paramValue = request.getQueryParameter(paramKey);
        return _isEmpty(paramValue) ? null : new TimeSpan(paramValue);
    }
View Full Code Here

Examples of org.skife.config.TimeSpan

     */
    protected TimeSpan findMaxTTLParameter(ServiceRequest request, K key)
    {
        String paramKey = ClusterMateConstants.QUERY_PARAM_MAX_TTL;
        String paramValue = request.getQueryParameter(paramKey);
        return _isEmpty(paramValue) ? null : new TimeSpan(paramValue);
    }
View Full Code Here

Examples of org.skife.config.TimeSpan

    {
        super.init(stuff, stores, cluster, shutdown);
        _fileManager = stuff.getFileManager();
        // let's use max-TTL-plus-one-day
        _maxTimeToLiveMsecs = stuff.getServiceConfig().cfgMaxMaxTTL.getMillis()
                + new TimeSpan("1d").getMillis();
    }
View Full Code Here

Examples of org.skife.config.TimeSpan

    {
        final int checksum = _decodeInt(request.getQueryParameter(ClusterMateConstants.QUERY_PARAM_CHECKSUM), 0);
        String paramKey = null, paramValue = null;
        paramKey = ClusterMateConstants.QUERY_PARAM_MIN_SINCE_ACCESS_TTL;
        paramValue = request.getQueryParameter(paramKey);
        TimeSpan minTTL = _isEmpty(paramValue) ? null : new TimeSpan(paramValue);
        paramKey = ClusterMateConstants.QUERY_PARAM_MAX_TTL;
        paramValue = request.getQueryParameter(paramKey);
        TimeSpan maxTTL = _isEmpty(paramValue) ? null : new TimeSpan(paramValue);

        return putEntry(request, response, key, checksum, dataIn,
                minTTL, maxTTL, metadata);
    }  
View Full Code Here

Examples of org.skife.config.TimeSpan

   
    public ServiceResponse putEntry(ServiceRequest request, ServiceResponse response,
            K key, InputStream dataIn, OperationDiagnostics metadata)
    {
        final int checksum = _decodeInt(request.getQueryParameter(ClusterMateConstants.QUERY_PARAM_CHECKSUM), 0);
        TimeSpan minTTL = findMinTTLParameter(request, key);
        TimeSpan maxTTL = findMaxTTLParameter(request, key);

        return putEntry(request, response, key, checksum, dataIn,
                minTTL, maxTTL, metadata);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.