当前位置: 首页>>代码示例>>Java>>正文


Java TimeValue.readTimeValue方法代码示例

本文整理汇总了Java中org.elasticsearch.common.unit.TimeValue.readTimeValue方法的典型用法代码示例。如果您正苦于以下问题:Java TimeValue.readTimeValue方法的具体用法?Java TimeValue.readTimeValue怎么用?Java TimeValue.readTimeValue使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.elasticsearch.common.unit.TimeValue的用法示例。


在下文中一共展示了TimeValue.readTimeValue方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: readFrom

import org.elasticsearch.common.unit.TimeValue; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    name = in.readString();
    type = ThreadPoolType.fromType(in.readString());
    min = in.readInt();
    max = in.readInt();
    if (in.readBoolean()) {
        keepAlive = TimeValue.readTimeValue(in);
    }
    if (in.readBoolean()) {
        queueSize = SizeValue.readSizeValue(in);
    }
    in.readBoolean(); // here to conform with removed waitTime
    in.readBoolean(); // here to conform with removed rejected setting
    in.readBoolean(); // here to conform with queue type
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:17,代码来源:ThreadPool.java

示例2: readFrom

import org.elasticsearch.common.unit.TimeValue; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    threads = in.readInt();
    ignoreIdleThreads = in.readBoolean();
    type = in.readString();
    interval = TimeValue.readTimeValue(in);
    snapshots = in.readInt();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:10,代码来源:NodesHotThreadsRequest.java

示例3: readFrom

import org.elasticsearch.common.unit.TimeValue; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    if (in.readBoolean()) {
        shardId = ShardId.readShardId(in);
    } else {
        shardId = null;
    }
    consistencyLevel = WriteConsistencyLevel.fromId(in.readByte());
    timeout = TimeValue.readTimeValue(in);
    index = in.readString();
    canHaveDuplicates = in.readBoolean();
    // no need to serialize threaded* parameters, since they only matter locally
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:15,代码来源:ReplicationRequest.java

示例4: readFrom

import org.elasticsearch.common.unit.TimeValue; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    taskId = new TaskId(in);
    parentTaskId = new TaskId(in);
    nodesIds = in.readStringArray();
    actions = in.readStringArray();
    if (in.readBoolean()) {
        timeout = TimeValue.readTimeValue(in);
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:12,代码来源:BaseTasksRequest.java

示例5: readFrom

import org.elasticsearch.common.unit.TimeValue; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    index = in.readString();
    shardId = in.readInt();
    timeout = TimeValue.readTimeValue(in);
    concreteIndex = in.readOptionalString();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:9,代码来源:InstanceShardOperationRequest.java

示例6: readFrom

import org.elasticsearch.common.unit.TimeValue; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    nodesIds = in.readStringArray();
    if (in.readBoolean()) {
        timeout = TimeValue.readTimeValue(in);
    }
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:9,代码来源:BaseNodesRequest.java

示例7: readFrom

import org.elasticsearch.common.unit.TimeValue; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    if (in.getVersion().before(Version.V_2_3_0)) {
        type = in.readString();
    } else {
        type = in.readOptionalString();
    }
    id = in.readOptionalString();
    routing = in.readOptionalString();
    parent = in.readOptionalString();
    timestamp = in.readOptionalString();
    if (in.getVersion().before(Version.V_2_2_0)) {
        long ttl = in.readLong();
        if (ttl == -1) {
            this.ttl = null;
        } else {
            ttl(ttl);
        }
    } else {
        ttl = in.readBoolean() ? TimeValue.readTimeValue(in) : null;
    }
    source = in.readBytesReference();

    opType = OpType.fromId(in.readByte());
    refresh = in.readBoolean();
    version = in.readLong();
    versionType = VersionType.fromValue(in.readByte());
    autoGeneratedId = in.readBoolean();
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:31,代码来源:IndexRequest.java

示例8: readFrom

import org.elasticsearch.common.unit.TimeValue; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    clusterName = in.readString();
    // read in a wire-compatible format for 2.x
    int activePrimaryShards = in.readVInt();
    int activeShards = in.readVInt();
    int relocatingShards = in.readVInt();
    int initializingShards = in.readVInt();
    int unassignedShards = in.readVInt();
    int numberOfNodes = in.readVInt();
    int numberOfDataNodes = in.readVInt();
    numberOfPendingTasks = in.readInt();
    ClusterHealthStatus status = ClusterHealthStatus.fromValue(in.readByte());
    int size = in.readVInt();
    Map<String, ClusterIndexHealth> indices = new HashMap<>();
    for (int i = 0; i < size; i++) {
        ClusterIndexHealth indexHealth = ClusterIndexHealth.readClusterIndexHealth(in);
        indices.put(indexHealth.getIndex(), indexHealth);
    }
    timedOut = in.readBoolean();
    size = in.readVInt();
    List<String> validationFailures;
    if (size == 0) {
        validationFailures = Collections.emptyList();
    } else {
        validationFailures = new ArrayList<>(size);
        for (int i = 0; i < size; i++) {
            validationFailures.add(in.readString());
        }
    }

    numberOfInFlightFetch = in.readInt();
    if (in.getVersion().onOrAfter(Version.V_1_7_0)) {
        delayedUnassignedShards= in.readInt();
    }

    double activeShardsPercent = in.readDouble();
    taskMaxWaitingTime = TimeValue.readTimeValue(in);
    clusterStateHealth = new ClusterStateHealth(numberOfNodes, numberOfDataNodes, activeShards, relocatingShards, activePrimaryShards,
            initializingShards, unassignedShards, activeShardsPercent, status, validationFailures, indices);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:43,代码来源:ClusterHealthResponse.java

示例9: readFrom

import org.elasticsearch.common.unit.TimeValue; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
    super.readFrom(in);
    masterNodeTimeout = TimeValue.readTimeValue(in);
}
 
开发者ID:baidu,项目名称:Elasticsearch,代码行数:6,代码来源:MasterNodeRequest.java


注:本文中的org.elasticsearch.common.unit.TimeValue.readTimeValue方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。