本文整理汇总了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
}
示例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();
}
示例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
}
示例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);
}
}
示例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();
}
示例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);
}
}
示例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();
}
示例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);
}
示例9: readFrom
import org.elasticsearch.common.unit.TimeValue; //导入方法依赖的package包/类
@Override
public void readFrom(StreamInput in) throws IOException {
super.readFrom(in);
masterNodeTimeout = TimeValue.readTimeValue(in);
}