{
- /** */
- private static final long serialVersionUID = 0L;
-
- /**
- * @param arg IGFS name to format.
- * @param debug Debug flag.
- */
- private VisorIgfsFormatJob(VisorIgfsFormatTaskArg arg, boolean debug) {
- super(arg, debug);
- }
-
- /** {@inheritDoc} */
- @Override protected Void run(VisorIgfsFormatTaskArg arg) {
- throw new IgniteException("IGFS operations are not supported in current version of Ignite");
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorIgfsFormatJob.class, this);
- }
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsFormatTaskArg.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsFormatTaskArg.java
deleted file mode 100644
index c0a04fc55fcc8..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsFormatTaskArg.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.igfs;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Argument for {@link VisorIgfsFormatTask}.
- */
-@Deprecated
-public class VisorIgfsFormatTaskArg extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** IGFS name. */
- private String igfsName;
-
- /**
- * Default constructor.
- */
- public VisorIgfsFormatTaskArg() {
- // No-op.
- }
-
- /**
- * @param igfsName IGFS name.
- */
- public VisorIgfsFormatTaskArg(String igfsName) {
- this.igfsName = igfsName;
- }
-
- /**
- * @return IGFS name.
- */
- public String getIgfsName() {
- return igfsName;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeString(out, igfsName);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- igfsName = U.readString(in);
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorIgfsFormatTaskArg.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsMetrics.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsMetrics.java
deleted file mode 100644
index a412ecb2cdfd5..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsMetrics.java
+++ /dev/null
@@ -1,270 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.igfs;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Data transfer object.
- */
-@Deprecated
-public class VisorIgfsMetrics extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Maximum amount of data that can be stored on local node. */
- private long totalSpaceSz;
-
- /** Local used space in bytes on local node. */
- private long usedSpaceSz;
-
- /** Number of directories created in file system. */
- private int foldersCnt;
-
- /** Number of files stored in file system. */
- private int filesCnt;
-
- /** Number of files that are currently opened for reading on local node. */
- private int filesOpenedForRd;
-
- /** Number of files that are currently opened for writing on local node. */
- private int filesOpenedForWrt;
-
- /** Total blocks read, local and remote. */
- private long blocksRd;
-
- /** Total remote blocks read. */
- private long blocksRdRmt;
-
- /** Total blocks write, local and remote. */
- private long blocksWrt;
-
- /** Total remote blocks write. */
- private long blocksWrtRmt;
-
- /** Total bytes read. */
- private long bytesRd;
-
- /** Total bytes read time. */
- private long bytesRdTm;
-
- /** Total bytes write. */
- private long bytesWrt;
-
- /** Total bytes write time. */
- private long bytesWrtTm;
-
- /**
- * Create data transfer object for given IGFS metrics.
- */
- public VisorIgfsMetrics() {
- // No-op.
- }
-
- /**
- * Add given metrics.
- *
- * @param m Metrics to add.
- * @return Self for method chaining.
- */
- public VisorIgfsMetrics add(VisorIgfsMetrics m) {
- assert m != null;
-
- totalSpaceSz += m.totalSpaceSz;
- usedSpaceSz += m.usedSpaceSz;
- foldersCnt += m.foldersCnt;
- filesCnt += m.filesCnt;
- filesOpenedForRd += m.filesOpenedForRd;
- filesOpenedForWrt += m.filesOpenedForWrt;
- blocksRd += m.blocksRd;
- blocksRdRmt += m.blocksRdRmt;
- blocksWrt += m.blocksWrt;
- blocksWrtRmt += m.blocksWrtRmt;
- bytesRd += m.bytesRd;
- bytesRdTm += m.bytesRdTm;
- bytesWrt += m.bytesWrt;
- bytesWrtTm += m.bytesWrtTm;
-
- return this;
- }
-
- /**
- * Aggregate metrics.
- *
- * @param n Nodes count.
- * @return Self for method chaining.
- */
- public VisorIgfsMetrics aggregate(int n) {
- if (n > 0) {
- foldersCnt /= n;
- filesCnt /= n;
- }
-
- return this;
- }
-
- /**
- * @return Maximum amount of data that can be stored on local node.
- */
- public long getTotalSpaceSize() {
- return totalSpaceSz;
- }
-
- /**
- * @return Local used space in bytes on local node.
- */
- public long getUsedSpaceSize() {
- return usedSpaceSz;
- }
-
- /**
- * @return Local free space in bytes on local node.
- */
- public long getFreeSpaceSize() {
- return totalSpaceSz - usedSpaceSz;
- }
-
- /**
- * @return Number of directories created in file system.
- */
- public int getFoldersCount() {
- return foldersCnt;
- }
-
- /**
- * @return Number of files stored in file system.
- */
- public int getFilesCount() {
- return filesCnt;
- }
-
- /**
- * @return Number of files that are currently opened for reading on local node.
- */
- public int getFilesOpenedForRead() {
- return filesOpenedForRd;
- }
-
- /**
- * @return Number of files that are currently opened for writing on local node.
- */
- public int getFilesOpenedForWrite() {
- return filesOpenedForWrt;
- }
-
- /**
- * @return Total blocks read, local and remote.
- */
- public long getBlocksRead() {
- return blocksRd;
- }
-
- /**
- * @return Total remote blocks read.
- */
- public long getBlocksReadRemote() {
- return blocksRdRmt;
- }
-
- /**
- * @return Total blocks write, local and remote.
- */
- public long getBlocksWritten() {
- return blocksWrt;
- }
-
- /**
- * @return Total remote blocks write.
- */
- public long getBlocksWrittenRemote() {
- return blocksWrtRmt;
- }
-
- /**
- * @return Total bytes read.
- */
- public long getBytesRead() {
- return bytesRd;
- }
-
- /**
- * @return Total bytes read time.
- */
- public long getBytesReadTime() {
- return bytesRdTm;
- }
-
- /**
- * @return Total bytes write.
- */
- public long getBytesWritten() {
- return bytesWrt;
- }
-
- /**
- * @return Total bytes write time.
- */
- public long getBytesWriteTime() {
- return bytesWrtTm;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- out.writeLong(totalSpaceSz);
- out.writeLong(usedSpaceSz);
- out.writeInt(foldersCnt);
- out.writeInt(filesCnt);
- out.writeInt(filesOpenedForRd);
- out.writeInt(filesOpenedForWrt);
- out.writeLong(blocksRd);
- out.writeLong(blocksRdRmt);
- out.writeLong(blocksWrt);
- out.writeLong(blocksWrtRmt);
- out.writeLong(bytesRd);
- out.writeLong(bytesRdTm);
- out.writeLong(bytesWrt);
- out.writeLong(bytesWrtTm);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- totalSpaceSz = in.readLong();
- usedSpaceSz = in.readLong();
- foldersCnt = in.readInt();
- filesCnt = in.readInt();
- filesOpenedForRd = in.readInt();
- filesOpenedForWrt = in.readInt();
- blocksRd = in.readLong();
- blocksRdRmt = in.readLong();
- blocksWrt = in.readLong();
- blocksWrtRmt = in.readLong();
- bytesRd = in.readLong();
- bytesRdTm = in.readLong();
- bytesWrt = in.readLong();
- bytesWrtTm = in.readLong();
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorIgfsMetrics.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsMode.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsMode.java
deleted file mode 100644
index b011dc6d2067f..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsMode.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.igfs;
-
-import org.jetbrains.annotations.Nullable;
-
-/**
- * {@code IGFS} mode defining interactions with underlying secondary Hadoop file system.
- * Secondary Hadoop file system is provided for pass-through, write-through, and
- * read-through purposes.
- */
-@Deprecated
-public enum VisorIgfsMode {
- /**
- * In this mode IGFS will not delegate to secondary Hadoop file system and will
- * cache all the files in memory only.
- */
- PRIMARY,
-
- /**
- * In this mode IGFS will not cache any files in memory and will only pass them
- * through to secondary Hadoop file system. If this mode is enabled, then
- * secondary Hadoop file system must be configured.
- */
- PROXY,
-
- /**
- * In this mode {@code IGFS} will cache files locally and also synchronously
- * write them through to secondary Hadoop file system.
- *
- * If secondary Hadoop file system is not configured, then this mode behaves like
- * {@link #PRIMARY} mode.
- */
- DUAL_SYNC,
-
- /**
- * In this mode {@code IGFS} will cache files locally and also asynchronously
- * write them through to secondary Hadoop file system.
- *
- * If secondary Hadoop file system is not configured, then this mode behaves like
- * {@link #PRIMARY} mode.
- */
- DUAL_ASYNC;
-
- /** Enumerated values. */
- private static final VisorIgfsMode[] VALS = values();
-
- /**
- * Efficiently gets enumerated value from its ordinal.
- *
- * @param ord Ordinal value.
- * @return Enumerated value or {@code null} if ordinal out of range.
- */
- @Nullable public static VisorIgfsMode fromOrdinal(int ord) {
- return ord >= 0 && ord < VALS.length ? VALS[ord] : null;
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfiler.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfiler.java
deleted file mode 100644
index 8fbf5097eb002..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfiler.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.igfs;
-
-import java.util.Collections;
-import java.util.List;
-import org.apache.ignite.internal.util.typedef.F;
-
-/**
- * Various global constants for IGFS profiler.
- */
-@Deprecated
-public class VisorIgfsProfiler {
- /** Default file block size to calculate uniformity. */
- public static final int UNIFORMITY_DFLT_BLOCK_SIZE = 4096;
-
- /** Default number of blocks to split file for uniformity calculations. */
- public static final int UNIFORMITY_BLOCKS = 100;
-
- /**
- * Aggregate IGFS profiler entries.
- *
- * @param entries Entries to sum.
- * @return Single aggregated entry.
- */
- public static VisorIgfsProfilerEntry aggregateIgfsProfilerEntries(List entries) {
- assert !F.isEmpty(entries);
-
- if (entries.size() == 1)
- return entries.get(0); // No need to aggregate.
- else {
- String path = entries.get(0).getPath();
-
- Collections.sort(entries, VisorIgfsProfilerEntry.ENTRY_TIMESTAMP_COMPARATOR);
-
- long ts = 0;
- long size = 0;
- long bytesRead = 0;
- long readTime = 0;
- long userReadTime = 0;
- long bytesWritten = 0;
- long writeTime = 0;
- long userWriteTime = 0;
- VisorIgfsMode mode = null;
- VisorIgfsProfilerUniformityCounters counters = new VisorIgfsProfilerUniformityCounters();
-
- for (VisorIgfsProfilerEntry entry : entries) {
- // Take last timestamp.
- ts = entry.getTimestamp();
-
- // Take last size.
- size = entry.getSize();
-
- // Take last mode.
- mode = entry.getMode();
-
- // Aggregate metrics.
- bytesRead += entry.getBytesRead();
- readTime += entry.getReadTime();
- userReadTime += entry.getUserReadTime();
- bytesWritten += entry.getBytesWritten();
- writeTime += entry.getWriteTime();
- userWriteTime += entry.getUserWriteTime();
-
- counters.aggregate(entry.getCounters());
- }
-
- return new VisorIgfsProfilerEntry(path, ts, mode, size, bytesRead, readTime, userReadTime,
- bytesWritten, writeTime, userWriteTime, counters);
- }
- }
-
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerClearTask.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerClearTask.java
deleted file mode 100644
index 2c24796ca3453..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerClearTask.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.igfs;
-
-import org.apache.ignite.IgniteException;
-import org.apache.ignite.internal.processors.task.GridInternal;
-import org.apache.ignite.internal.processors.task.GridVisorManagementTask;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.visor.VisorJob;
-import org.apache.ignite.internal.visor.VisorOneNodeTask;
-
-
-/**
- * Remove all IGFS profiler logs.
- */
-@GridInternal
-@GridVisorManagementTask
-@Deprecated
-public class VisorIgfsProfilerClearTask extends VisorOneNodeTask {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** {@inheritDoc} */
- @Override protected VisorIgfsProfilerClearJob job(VisorIgfsProfilerClearTaskArg arg) {
- return new VisorIgfsProfilerClearJob(arg, debug);
- }
-
- /**
- * Job to clear profiler logs.
- */
- private static class VisorIgfsProfilerClearJob extends VisorJob {
- /** */
- private static final long serialVersionUID = 0L;
-
- /**
- * Create job with given argument.
- *
- * @param arg Job argument.
- * @param debug Debug flag.
- */
- private VisorIgfsProfilerClearJob(VisorIgfsProfilerClearTaskArg arg, boolean debug) {
- super(arg, debug);
- }
-
- /** {@inheritDoc} */
- @Override protected VisorIgfsProfilerClearTaskResult run(VisorIgfsProfilerClearTaskArg arg) {
- throw new IgniteException("IGFS operations are not supported in current version of Ignite");
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorIgfsProfilerClearJob.class, this);
- }
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerClearTaskArg.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerClearTaskArg.java
deleted file mode 100644
index fab11886f4407..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerClearTaskArg.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.igfs;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Argument for {@link VisorIgfsProfilerClearTask}.
- */
-@Deprecated
-public class VisorIgfsProfilerClearTaskArg extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** IGFS name. */
- private String igfsName;
-
- /**
- * Default constructor.
- */
- public VisorIgfsProfilerClearTaskArg() {
- // No-op.
- }
-
- /**
- * @param igfsName IGFS name.
- */
- public VisorIgfsProfilerClearTaskArg(String igfsName) {
- this.igfsName = igfsName;
- }
-
- /**
- * @return IGFS name.
- */
- public String getIgfsName() {
- return igfsName;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeString(out, igfsName);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- igfsName = U.readString(in);
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorIgfsProfilerClearTaskArg.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerClearTaskResult.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerClearTaskResult.java
deleted file mode 100644
index 97e2c22979834..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerClearTaskResult.java
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.igfs;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Result for {@link VisorIgfsProfilerClearTask}.
- */
-@Deprecated
-public class VisorIgfsProfilerClearTaskResult extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Count of deleted files. */
- private int deleted;
-
- /** Count of not deleted files. */
- private int notDeleted;
-
- /**
- * Default constructor.
- */
- public VisorIgfsProfilerClearTaskResult() {
- // No-op.
- }
-
- /**
- * @param deleted Count of deleted files.
- * @param notDeleted Count of not deleted files.
- */
- public VisorIgfsProfilerClearTaskResult(int deleted, int notDeleted) {
- this.deleted = deleted;
- this.notDeleted = notDeleted;
- }
-
- /**
- * @return Count of deleted files.
- */
- public Integer getDeleted() {
- return deleted;
- }
-
- /**
- * @return Count of not deleted files.
- */
- public Integer getNotDeleted() {
- return notDeleted;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- out.writeInt(deleted);
- out.writeInt(notDeleted);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- deleted = in.readInt();
- notDeleted = in.readInt();
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorIgfsProfilerClearTaskResult.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerEntry.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerEntry.java
deleted file mode 100644
index ece22331b0f39..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerEntry.java
+++ /dev/null
@@ -1,284 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.igfs;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import java.util.Comparator;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Visor IGFS profiler information about one file.
- */
-@Deprecated
-public class VisorIgfsProfilerEntry extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Timestamp comparator. */
- public static final Comparator ENTRY_TIMESTAMP_COMPARATOR =
- new Comparator() {
- @Override public int compare(VisorIgfsProfilerEntry a, VisorIgfsProfilerEntry b) {
- return Long.compare(a.ts, b.ts);
- }
- };
-
- /** Path to file. */
- private String path;
-
- /** Timestamp of last file operation. */
- private long ts;
-
- /** IGFS mode. */
- private VisorIgfsMode mode;
-
- /** File size. */
- private long size;
-
- /** How many bytes were read. */
- private long bytesRead;
-
- /** How long read take. */
- private long readTime;
-
- /** User read time. */
- private long userReadTime;
-
- /** How many bytes were written. */
- private long bytesWritten;
-
- /** How long write take. */
- private long writeTime;
-
- /** User write read time. */
- private long userWriteTime;
-
- /** Calculated uniformity. */
- private double uniformity = -1;
-
- /** Counters for uniformity calculation. */
- private VisorIgfsProfilerUniformityCounters counters;
-
- /** Read speed in bytes per second or {@code -1} if speed not available. */
- private long readSpeed;
-
- /** Write speed in bytes per second or {@code -1} if speed not available. */
- private long writeSpeed;
-
- /**
- * Default constructor.
- */
- public VisorIgfsProfilerEntry() {
- // No-op.
- }
-
- /** Create data transfer object with given parameters. */
- public VisorIgfsProfilerEntry(
- String path,
- long ts,
- VisorIgfsMode mode,
- long size,
- long bytesRead,
- long readTime,
- long userReadTime,
- long bytesWritten,
- long writeTime,
- long userWriteTime,
- VisorIgfsProfilerUniformityCounters counters
- ) {
- assert counters != null;
-
- this.path = path;
- this.ts = ts;
- this.mode = mode;
- this.size = size;
- this.bytesRead = bytesRead;
- this.readTime = readTime;
- this.userReadTime = userReadTime;
- this.bytesWritten = bytesWritten;
- this.writeTime = writeTime;
- this.userWriteTime = userWriteTime;
- this.counters = counters;
-
- readSpeed = speed(bytesRead, readTime);
- writeSpeed = speed(bytesWritten, writeTime);
- }
-
- /**
- * Calculate speed of bytes processing.
- *
- * @param bytes How many bytes were processed.
- * @param time How long processing take (in nanoseconds).
- * @return Speed of processing in bytes per second or {@code -1} if speed not available.
- */
- private static long speed(long bytes, long time) {
- if (time > 0) {
- double bytesScaled = bytes * 100000d;
- double timeScaled = time / 10000d;
-
- return (long)(bytesScaled / timeScaled);
- }
- else
- return -1L;
- }
-
- /**
- * @return Path to file.
- */
- public String getPath() {
- return path;
- }
-
- /**
- * @return Timestamp of last file operation.
- */
- public long getTimestamp() {
- return ts;
- }
-
- /**
- * @return IGFS mode.
- */
- public VisorIgfsMode getMode() {
- return mode;
- }
-
- /**
- * @return File size.
- */
- public long getSize() {
- return size;
- }
-
- /**
- * @return How many bytes were read.
- */
- public long getBytesRead() {
- return bytesRead;
- }
-
- /**
- * @return How long read take.
- */
- public long getReadTime() {
- return readTime;
- }
-
- /**
- * @return User read time.
- */
- public long getUserReadTime() {
- return userReadTime;
- }
-
- /**
- * @return How many bytes were written.
- */
- public long getBytesWritten() {
- return bytesWritten;
- }
-
- /**
- * @return How long write take.
- */
- public long getWriteTime() {
- return writeTime;
- }
-
- /**
- * @return User write read time.
- */
- public long getUserWriteTime() {
- return userWriteTime;
- }
-
- /**
- * @return Calculated uniformity.
- */
- public double getUniformity() {
- if (uniformity < 0)
- uniformity = counters.calc();
-
- return uniformity;
- }
-
- /**
- * @return Counters for uniformity calculation.
- */
- public VisorIgfsProfilerUniformityCounters getCounters() {
- return counters;
- }
-
- /**
- * @return Read speed in bytes per second or {@code -1} if speed not available.
- */
- public long getReadSpeed() {
- return readSpeed;
- }
-
- /**
- * @return Write speed in bytes per second or {@code -1} if speed not available.
- */
- public long getWriteSpeed() {
- return writeSpeed;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeString(out, path);
- out.writeLong(ts);
- U.writeEnum(out, mode);
- out.writeLong(size);
- out.writeLong(bytesRead);
- out.writeLong(readTime);
- out.writeLong(userReadTime);
- out.writeLong(bytesWritten);
- out.writeLong(writeTime);
- out.writeLong(userWriteTime);
- out.writeDouble(uniformity);
- out.writeObject(counters);
- out.writeLong(readSpeed);
- out.writeLong(writeSpeed);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- path = U.readString(in);
- ts = in.readLong();
- mode = VisorIgfsMode.fromOrdinal(in.readByte());
- size = in.readLong();
- bytesRead = in.readLong();
- readTime = in.readLong();
- userReadTime = in.readLong();
- bytesWritten = in.readLong();
- writeTime = in.readLong();
- userWriteTime = in.readLong();
- uniformity = in.readDouble();
- counters = (VisorIgfsProfilerUniformityCounters)in.readObject();
- readSpeed = in.readLong();
- writeSpeed = in.readLong();
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorIgfsProfilerEntry.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerTask.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerTask.java
deleted file mode 100644
index 187171aab5e0d..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerTask.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.igfs;
-
-import java.util.List;
-import org.apache.ignite.IgniteException;
-import org.apache.ignite.internal.processors.task.GridInternal;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.visor.VisorJob;
-import org.apache.ignite.internal.visor.VisorOneNodeTask;
-
-/**
- * Task that parse hadoop profiler logs.
- */
-/**
- * Task that parse hadoop profiler logs.
- */
-@GridInternal
-@Deprecated
-public class VisorIgfsProfilerTask extends VisorOneNodeTask> {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** {@inheritDoc} */
- @Override protected VisorIgfsProfilerJob job(VisorIgfsProfilerTaskArg arg) {
- return new VisorIgfsProfilerJob(arg, debug);
- }
-
- /**
- * Job that do actual profiler work.
- */
- private static class VisorIgfsProfilerJob extends VisorJob> {
- /** */
- private static final long serialVersionUID = 0L;
-
- /**
- * Create job with given argument.
- *
- * @param arg IGFS name.
- * @param debug Debug flag.
- */
- private VisorIgfsProfilerJob(VisorIgfsProfilerTaskArg arg, boolean debug) {
- super(arg, debug);
- }
-
- /** {@inheritDoc} */
- @Override protected List run(VisorIgfsProfilerTaskArg arg) {
- throw new IgniteException("IGFS operations are not supported in current version of Ignite");
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorIgfsProfilerJob.class, this);
- }
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerTaskArg.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerTaskArg.java
deleted file mode 100644
index dcb60bb348549..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerTaskArg.java
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.igfs;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Argument for {@link VisorIgfsProfilerTask}.
- */
-@Deprecated
-public class VisorIgfsProfilerTaskArg extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** IGFS name. */
- private String igfsName;
-
- /**
- * Default constructor.
- */
- public VisorIgfsProfilerTaskArg() {
- // No-op.
- }
-
- /**
- * @param igfsName IGFS name.
- */
- public VisorIgfsProfilerTaskArg(String igfsName) {
- this.igfsName = igfsName;
- }
-
- /**
- * @return IGFS name.
- */
- public String getIgfsName() {
- return igfsName;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeString(out, igfsName);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- igfsName = U.readString(in);
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorIgfsProfilerTaskArg.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerUniformityCounters.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerUniformityCounters.java
deleted file mode 100644
index 9a4f4fabbbcba..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsProfilerUniformityCounters.java
+++ /dev/null
@@ -1,233 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.igfs;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import java.util.ArrayList;
-import org.apache.ignite.internal.util.typedef.F;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-import static org.apache.ignite.internal.visor.igfs.VisorIgfsProfiler.UNIFORMITY_BLOCKS;
-import static org.apache.ignite.internal.visor.igfs.VisorIgfsProfiler.UNIFORMITY_DFLT_BLOCK_SIZE;
-
-/**
- * Class to support uniformity calculation.
- *
- * Uniformity calculated as coefficient of variation.
- *
- * Count read frequency for each file and compare with ideal uniform distribution.
- */
-@Deprecated
-public class VisorIgfsProfilerUniformityCounters extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Analyzed file size in bytes. */
- private long fileSize;
-
- /** Current block size to calculate uniformity. */
- private long blockSize = UNIFORMITY_DFLT_BLOCK_SIZE;
-
- /** Collection of calculated counters. */
- private ArrayList counters = new ArrayList<>();
-
- /**
- * Default constructor.
- */
- public VisorIgfsProfilerUniformityCounters() {
- // No-op.
- }
-
- /**
- * Calculate block size.
- *
- * @param fileSize File size in bytes.
- * @return Block size.
- */
- private long calcBlockSize(long fileSize) {
- return Math.max(UNIFORMITY_DFLT_BLOCK_SIZE, fileSize / UNIFORMITY_BLOCKS);
- }
-
- /**
- * Check if counters and blockSize should be adjusted according to file size.
- *
- * @param newFileSize New size of file.
- */
- public void invalidate(long newFileSize) {
- if (newFileSize < fileSize) { // If newFileSize is less than current fileSize then clear counters.
- fileSize = newFileSize;
-
- counters.clear();
-
- blockSize = calcBlockSize(fileSize);
- }
- else if (newFileSize > fileSize) // If newFileSize is bigger then current fileSize then adjust counters and blockSize.
- compact(newFileSize);
- }
-
- /**
- * Perform compacting counters if {@code newBlockSize} is great more than twice then compact previous counters.
- *
- * @param newFileSize New file size to check.
- */
- private void compact(long newFileSize) {
- long newBlockSize = calcBlockSize(newFileSize);
-
- if (counters.isEmpty())
- blockSize = newBlockSize;
- else {
- if (newBlockSize >= 2 * blockSize) {
- int ratio = (int)(newBlockSize / blockSize);
-
- ArrayList compacted = new ArrayList<>();
-
- int sum = 0;
- int cnt = 0;
-
- for (Integer counter : counters) {
- sum += counter;
- cnt++;
-
- if (cnt >= ratio) {
- compacted.add(sum);
-
- sum = 0;
- cnt = 0;
- }
- }
-
- if (sum > 0)
- compacted.add(sum);
-
- counters.clear();
- counters.addAll(compacted);
-
- blockSize = newBlockSize;
- }
- }
-
- fileSize = newFileSize;
- }
-
- /**
- * Ensure counters capacity and initial state.
- *
- * @param minCap Desired minimum capacity.
- */
- private void capacity(int minCap) {
- counters.ensureCapacity(minCap);
-
- while (counters.size() < minCap)
- counters.add(0);
- }
-
- /**
- * Increment counters by given pos and length.
- *
- * @param pos Position in file.
- * @param len Read data length.
- */
- public void increment(long pos, long len) {
- int blockFrom = (int)(pos / blockSize);
- int blockTo = (int)((pos + len) / blockSize) + 1;
-
- capacity(blockTo);
-
- for (int i = blockFrom; i < blockTo; i++)
- counters.set(i, counters.get(i) + 1);
- }
-
- /**
- * Add given counters.
- *
- * @param other Counters to add.
- */
- public void aggregate(VisorIgfsProfilerUniformityCounters other) {
- if (fileSize < other.fileSize)
- compact(other.fileSize);
- else if (fileSize > other.fileSize)
- other.compact(fileSize);
-
- int cnt = other.counters.size();
-
- if (counters.size() < cnt)
- capacity(cnt);
-
- for (int i = 0; i < cnt; i++)
- counters.set(i, counters.get(i) + other.counters.get(i));
- }
-
- /**
- * Calculate uniformity as standard deviation. See: http://en.wikipedia.org/wiki/Standard_deviation.
- *
- * @return Uniformity value as number in {@code 0..1} range.
- */
- public double calc() {
- if (counters.isEmpty())
- return -1;
- else {
- int cap = (int)(fileSize / blockSize + (fileSize % blockSize > 0 ? 1 : 0));
-
- capacity(cap);
-
- int sz = counters.size();
-
- int n = F.sumInt(counters);
-
- double mean = 1.0 / sz;
-
- // Calc standard deviation for block read frequency: SQRT(SUM(Freq_i - Mean)^2 / K)
- // where Mean = 1 / K
- // K - Number of blocks
- // Freq_i = Counter_i / N
- // N - Sum of all counters
- double sigma = 0;
-
- for (Integer counter : counters)
- sigma += Math.pow(counter.doubleValue() / n - mean, 2);
-
- sigma = Math.sqrt(sigma / sz);
-
- // Calc uniformity coefficient.
- return 1.0 - sigma;
- }
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- out.writeLong(fileSize);
- out.writeLong(blockSize);
- U.writeCollection(out, counters);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- fileSize = in.readLong();
- blockSize = in.readLong();
- counters = (ArrayList)U.readIntList(in);
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorIgfsProfilerUniformityCounters.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsResetMetricsTask.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsResetMetricsTask.java
deleted file mode 100644
index 54eb994eb6d87..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsResetMetricsTask.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.igfs;
-
-import org.apache.ignite.IgniteException;
-import org.apache.ignite.internal.processors.task.GridInternal;
-import org.apache.ignite.internal.processors.task.GridVisorManagementTask;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.visor.VisorJob;
-import org.apache.ignite.internal.visor.VisorOneNodeTask;
-
-/**
- * Resets IGFS metrics.
- */
-@GridInternal
-@GridVisorManagementTask
-@Deprecated
-public class VisorIgfsResetMetricsTask extends VisorOneNodeTask {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** {@inheritDoc} */
- @Override protected VisorIgfsResetMetricsJob job(VisorIgfsResetMetricsTaskArg arg) {
- return new VisorIgfsResetMetricsJob(arg, debug);
- }
-
- /**
- * Job that reset IGFS metrics.
- */
- private static class VisorIgfsResetMetricsJob extends VisorJob {
- /** */
- private static final long serialVersionUID = 0L;
-
- /**
- * @param arg IGFS names.
- * @param debug Debug flag.
- */
- private VisorIgfsResetMetricsJob(VisorIgfsResetMetricsTaskArg arg, boolean debug) {
- super(arg, debug);
- }
-
- /** {@inheritDoc} */
- @Override protected Void run(VisorIgfsResetMetricsTaskArg arg) {
- throw new IgniteException("IGFS operations are not supported in current version of Ignite");
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorIgfsResetMetricsJob.class, this);
- }
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsResetMetricsTaskArg.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsResetMetricsTaskArg.java
deleted file mode 100644
index 8631d8ef65dca..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsResetMetricsTaskArg.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.igfs;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import java.util.Set;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Argument for {@link VisorIgfsResetMetricsTask}.
- */
-@Deprecated
-public class VisorIgfsResetMetricsTaskArg extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** IGFS names. */
- private Set igfsNames;
-
- /**
- * Default constructor.
- */
- public VisorIgfsResetMetricsTaskArg() {
- // No-op.
- }
-
- /**
- * @param igfsNames IGFS names.
- */
- public VisorIgfsResetMetricsTaskArg(Set igfsNames) {
- this.igfsNames = igfsNames;
- }
-
- /**
- * @return IGFS names.
- */
- public Set getIgfsNames() {
- return igfsNames;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeCollection(out, igfsNames);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- igfsNames = U.readSet(in);
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorIgfsResetMetricsTaskArg.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsSamplingStateTask.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsSamplingStateTask.java
deleted file mode 100644
index dbbceb2a9ef2d..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsSamplingStateTask.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.igfs;
-
-import org.apache.ignite.IgniteException;
-import org.apache.ignite.internal.processors.task.GridInternal;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.visor.VisorJob;
-import org.apache.ignite.internal.visor.VisorOneNodeTask;
-
-/**
- * Task to set IGFS instance sampling state.
- */
-@GridInternal
-@Deprecated
-public class VisorIgfsSamplingStateTask extends VisorOneNodeTask {
- /** */
- private static final long serialVersionUID = 0L;
-
- /**
- * Job that perform parsing of IGFS profiler logs.
- */
- private static class VisorIgfsSamplingStateJob extends VisorJob {
- /** */
- private static final long serialVersionUID = 0L;
-
- /**
- * Create job with given argument.
- *
- * @param arg Job argument.
- * @param debug Debug flag.
- */
- private VisorIgfsSamplingStateJob(VisorIgfsSamplingStateTaskArg arg, boolean debug) {
- super(arg, debug);
- }
-
- /** {@inheritDoc} */
- @Override protected Void run(VisorIgfsSamplingStateTaskArg arg) {
- throw new IgniteException("IGFS operations are not supported in current version of Ignite");
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorIgfsSamplingStateJob.class, this);
- }
- }
-
- /** {@inheritDoc} */
- @Override protected VisorIgfsSamplingStateJob job(VisorIgfsSamplingStateTaskArg arg) {
- return new VisorIgfsSamplingStateJob(arg, debug);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsSamplingStateTaskArg.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsSamplingStateTaskArg.java
deleted file mode 100644
index 85fcdb6dc5853..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/igfs/VisorIgfsSamplingStateTaskArg.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.igfs;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Argument for task returns changing of sampling state result.
- */
-@Deprecated
-public class VisorIgfsSamplingStateTaskArg extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** IGFS name. */
- private String name;
-
- /** {@code True} to turn on sampling, {@code false} to turn it off, {@code null} to clear sampling state. */
- private boolean enabled;
-
- /**
- * Default constructor.
- */
- public VisorIgfsSamplingStateTaskArg() {
- // No-op.
- }
-
- /**
- * @param name IGFS name.
- * @param enabled {@code True} to turn on sampling, {@code false} to turn it off, {@code null} to clear sampling state.
- */
- public VisorIgfsSamplingStateTaskArg(String name, boolean enabled) {
- this.name = name;
- this.enabled = enabled;
- }
-
- /**
- * @return IGFS name.
- */
- public String getName() {
- return name;
- }
-
- /**
- * @return {@code True} to turn on sampling, {@code false} to turn it off, {@code null} to clear sampling state.
- */
- public boolean isEnabled() {
- return enabled;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeString(out, name);
- out.writeBoolean(enabled);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- name = U.readString(in);
- enabled = in.readBoolean();
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorIgfsSamplingStateTaskArg.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/log/VisorLogFile.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/log/VisorLogFile.java
deleted file mode 100644
index 2c2ac21eaf81d..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/log/VisorLogFile.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.log;
-
-import java.io.File;
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Visor log file.
- */
-public class VisorLogFile extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** File path. */
- private String path;
-
- /** File size. */
- private long size;
-
- /** File last modified timestamp. */
- private long lastModified;
-
- /**
- * Default constructor.
- */
- public VisorLogFile() {
- // No-op.
- }
-
- /**
- * Create log file for given file.
- *
- * @param file Log file.
- */
- public VisorLogFile(File file) {
- this(file.getAbsolutePath(), file.length(), file.lastModified());
- }
-
- /**
- * Create log file with given parameters.
- *
- * @param path File path.
- * @param size File size.
- * @param lastModified File last modified date.
- */
- public VisorLogFile(String path, long size, long lastModified) {
- this.path = path;
- this.size = size;
- this.lastModified = lastModified;
- }
-
- /**
- * @return File path.
- */
- public String getPath() {
- return path;
- }
-
- /**
- * @return File size.
- */
- public long getSize() {
- return size;
- }
-
- /**
- * @return File last modified timestamp.
- */
- public long getLastModified() {
- return lastModified;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeString(out, path);
- out.writeLong(size);
- out.writeLong(lastModified);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- path = U.readString(in);
- size = in.readLong();
- lastModified = in.readLong();
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorLogFile.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/log/VisorLogSearchResult.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/log/VisorLogSearchResult.java
deleted file mode 100644
index 4eee4580eb47f..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/log/VisorLogSearchResult.java
+++ /dev/null
@@ -1,192 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.log;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import java.util.Arrays;
-import java.util.List;
-import java.util.UUID;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Result for log search operation.
- * Contains found line and several lines before and after, plus other info.
- */
-public class VisorLogSearchResult extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Node ID. */
- private UUID nid;
-
- /** File path relative to the search folder. */
- private String filePath;
-
- /** File size. */
- private long fileSize;
-
- /** Timestamp of last modification of the file. */
- private long lastModified;
-
- /** Lines of text including found line and several lines before and after. */
- private List lines;
-
- /** Line number in the file, 1 based. */
- private int lineNum;
-
- /** Lines count in the file. */
- private int lineCnt;
-
- /** File content encoding. */
- private String encoding;
-
- /**
- * Default constructor.
- */
- public VisorLogSearchResult() {
- // No-op.
- }
-
- /**
- * Create log search result with given parameters.
- *
- * @param nid Node ID.
- * @param filePath File path relative to the search folder.
- * @param fileSize File size.
- * @param lastModified Timestamp of last modification of the file.
- * @param lines Lines of text including found line and several lines before and after.
- * @param lineNum Line number in the file, 1 based.
- * @param lineCnt Lines count in the file.
- * @param encoding File content encoding.
- */
- public VisorLogSearchResult(
- UUID nid,
- String filePath,
- long fileSize,
- long lastModified,
- String[] lines,
- int lineNum,
- int lineCnt,
- String encoding
- ) {
- this.nid = nid;
- this.filePath = filePath;
- this.fileSize = fileSize;
- this.lastModified = lastModified;
- this.lines = Arrays.asList(lines);
- this.lineNum = lineNum;
- this.lineCnt = lineCnt;
- this.encoding = encoding;
- }
-
- /**
- * @return Node ID.
- */
- public UUID getNid() {
- return nid;
- }
-
- /**
- * @return File path relative to the search folder.
- */
- public String getFilePath() {
- return filePath;
- }
-
- /**
- * @return File size.
- */
- public long getFileSize() {
- return fileSize;
- }
-
- /**
- * @return Timestamp of last modification of the file.
- */
- public long getLastModified() {
- return lastModified;
- }
-
- /**
- * @return Lines of text including found line and several lines before and after.
- */
- public List getLines() {
- return lines;
- }
-
- /**
- * @return Line number in the file, 1 based.
- */
- public int getLineNumber() {
- return lineNum;
- }
-
- /**
- * @return Lines count in the file.
- */
- public int getLineCount() {
- return lineCnt;
- }
-
- /**
- * @return File content encoding.
- */
- public String getEncoding() {
- return encoding;
- }
-
- /**
- * @return Found line.
- */
- public String getLine() {
- return lines.get(lines.size() / 2);
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeUuid(out, nid);
- U.writeString(out, filePath);
- out.writeLong(fileSize);
- out.writeLong(lastModified);
- U.writeCollection(out, lines);
- out.writeInt(lineNum);
- out.writeInt(lineCnt);
- U.writeString(out, encoding);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- nid = U.readUuid(in);
- filePath = U.readString(in);
- fileSize = in.readLong();
- lastModified = in.readLong();
- lines = U.readList(in);
- lineNum = in.readInt();
- lineCnt = in.readInt();
- encoding = U.readString(in);
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorLogSearchResult.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/log/VisorLogSearchTask.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/log/VisorLogSearchTask.java
deleted file mode 100644
index 04ee29cda70bc..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/log/VisorLogSearchTask.java
+++ /dev/null
@@ -1,239 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.log;
-
-import java.io.File;
-import java.io.IOException;
-import java.nio.charset.Charset;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Deque;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Map;
-import java.util.UUID;
-import org.apache.ignite.IgniteException;
-import org.apache.ignite.compute.ComputeJobResult;
-import org.apache.ignite.internal.processors.task.GridInternal;
-import org.apache.ignite.internal.processors.task.GridVisorManagementTask;
-import org.apache.ignite.internal.util.io.GridReversedLinesFileReader;
-import org.apache.ignite.internal.util.lang.GridTuple3;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorJob;
-import org.apache.ignite.internal.visor.VisorMultiNodeTask;
-import org.jetbrains.annotations.Nullable;
-
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.decode;
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.matchedFiles;
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.resolveIgnitePath;
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.resolveSymbolicLink;
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.textFile;
-
-/**
- * Search text matching in logs
- */
-@GridInternal
-@GridVisorManagementTask
-public class VisorLogSearchTask extends VisorMultiNodeTask> {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** How many lines to read around line with found text. */
- public static final int LINE_CNT = 21;
-
- /** How many lines should be read before and after line with found text. */
- public static final int HALF = LINE_CNT / 2;
-
- /** {@inheritDoc} */
- @Override protected VisorLogSearchJob job(VisorLogSearchTaskArg arg) {
- return new VisorLogSearchJob(arg, debug);
- }
-
- /** {@inheritDoc} */
- @Nullable @Override protected VisorLogSearchTaskResult reduce0(List results) {
- List searchRes = new ArrayList<>();
- Map exRes = U.newHashMap(0);
-
- // Separate successfully executed results and exceptions.
- for (ComputeJobResult result : results) {
- if (result.getException() != null)
- exRes.put(result.getException(), result.getNode().id());
- else if (result.getData() != null) {
- Collection data = result.getData();
-
- searchRes.addAll(data);
- }
- }
-
- return new VisorLogSearchTaskResult(exRes.isEmpty() ? null : exRes, searchRes.isEmpty() ? null : searchRes);
- }
-
- /**
- * Job to perform search on node.
- */
- private static class VisorLogSearchJob extends VisorJob> {
- /** */
- private static final long serialVersionUID = 0L;
-
- /**
- * @param arg Search descriptor.
- * @param debug Debug flag.
- */
- private VisorLogSearchJob(VisorLogSearchTaskArg arg, boolean debug) {
- super(arg, debug);
- }
-
- /**
- * @param f File to read.
- * @param charset Text charset.
- * @param searchStr Search string.
- * @param limit Max number of search results.
- * @return Collection of found descriptors.
- * @throws IOException In case of I/O error.
- */
- private List> searchInFile(File f, Charset charset, String searchStr,
- int limit) throws IOException {
- List> searched = new ArrayList<>();
-
- int line = 0;
-
- try (GridReversedLinesFileReader reader = new GridReversedLinesFileReader(f, 4096, charset)) {
- Deque lastLines = new LinkedList<>();
-
- String s;
- int lastFoundLine = 0, foundCnt = 0;
-
- while ((s = reader.readLine()) != null) {
- line++;
-
- if (lastFoundLine > 0 && line - lastFoundLine <= HALF) {
- for (int i = searched.size() - 1; i >= 0; i--) {
- GridTuple3 tup = searched.get(i);
-
- int delta = line - tup.get2();
-
- if (delta <= HALF && delta != 0)
- tup.get1()[HALF - delta] = s;
- else
- break;
- }
- }
-
- if (foundCnt < limit) {
- if (s.toLowerCase().contains(searchStr)) {
- String[] buf = new String[LINE_CNT];
-
- buf[HALF] = s;
-
- int i = 1;
-
- for (String l : lastLines) {
- buf[HALF + i] = l;
-
- i++;
- }
-
- lastFoundLine = line;
-
- searched.add(new GridTuple3<>(buf, line, 0));
-
- foundCnt++;
- }
- }
-
- if (lastLines.size() >= HALF)
- lastLines.removeFirst();
-
- lastLines.add(s);
- }
- }
-
- for (GridTuple3 entry : searched) {
- entry.set2(line - entry.get2() + 1);
- entry.set3(line);
- }
-
- return searched;
- }
-
- /** {@inheritDoc} */
- @Override protected Collection run(VisorLogSearchTaskArg arg) {
- try {
- File folder = resolveIgnitePath(arg.getFolder());
-
- if (folder == null)
- return null;
-
- folder = resolveSymbolicLink(folder);
-
- UUID uuid = ignite.localNode().id();
- String nid = uuid.toString().toLowerCase();
-
- String filePtrn = arg.getFilePattern().replace("@nid8", nid.substring(0, 8)).replace("@nid", nid);
-
- int pathIdx = (folder.isDirectory() ? folder : folder.getParentFile()).getAbsolutePath().length() + 1;
-
- List matchingFiles = matchedFiles(folder, filePtrn);
-
- Collection results = new ArrayList<>(arg.getLimit());
-
- int resCnt = 0;
-
- for (VisorLogFile logFile : matchingFiles) {
- try {
- File f = new File(logFile.getPath());
-
- if (textFile(f, false)) {
- Charset charset = decode(f);
-
- if (resCnt == arg.getLimit())
- break;
-
- List> searched =
- searchInFile(f, charset, arg.getSearchString(), arg.getLimit() - resCnt);
-
- resCnt += searched.size();
-
- String path = f.getAbsolutePath().substring(pathIdx);
- long sz = f.length(), lastModified = f.lastModified();
-
- for (GridTuple3 e : searched) {
- results.add(new VisorLogSearchResult(uuid, path, sz, lastModified,
- e.get1(), e.get2(), e.get3(), charset.name()));
- }
- }
- }
- catch (IOException ignored) {
- }
- }
-
- return results.isEmpty() ? null : results;
- }
- catch (Exception e) {
- throw new IgniteException(e);
- }
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorLogSearchJob.class, this);
- }
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/log/VisorLogSearchTaskArg.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/log/VisorLogSearchTaskArg.java
deleted file mode 100644
index aa0597001056c..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/log/VisorLogSearchTaskArg.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.log;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Arguments for {@link VisorLogSearchTask}.
- */
-public class VisorLogSearchTaskArg extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Searched string. */
- private String searchStr;
-
- /** Folder. */
- private String folder;
-
- /** File name search pattern. */
- private String filePtrn;
-
- /** Max number of results. */
- private int limit;
-
- /**
- * Default constructor.
- */
- public VisorLogSearchTaskArg() {
- // No-op.
- }
-
- /**
- * @param searchStr Searched string.
- * @param folder Folder.
- * @param filePtrn File name search pattern.
- * @param limit Max number of results.
- */
- public VisorLogSearchTaskArg(String searchStr, String folder, String filePtrn, int limit) {
- this.searchStr = searchStr;
- this.folder = folder;
- this.filePtrn = filePtrn;
- this.limit = limit;
- }
-
- /**
- * @return Searched string.
- */
- public String getSearchString() {
- return searchStr;
- }
-
- /**
- * @return Folder.
- */
- public String getFolder() {
- return folder;
- }
-
- /**
- * @return File name search pattern.
- */
- public String getFilePattern() {
- return filePtrn;
- }
-
- /**
- * @return Max number of results.
- */
- public int getLimit() {
- return limit;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeString(out, searchStr);
- U.writeString(out, folder);
- U.writeString(out, filePtrn);
- out.writeInt(limit);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- searchStr = U.readString(in);
- folder = U.readString(in);
- filePtrn = U.readString(in);
- limit = in.readInt();
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorLogSearchTaskArg.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/log/VisorLogSearchTaskResult.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/log/VisorLogSearchTaskResult.java
deleted file mode 100644
index 3104c3ab3edd9..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/log/VisorLogSearchTaskResult.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.log;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import java.util.List;
-import java.util.Map;
-import java.util.UUID;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Result for log search operation.
- * Contains found line and several lines before and after, plus other info.
- */
-public class VisorLogSearchTaskResult extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** List of exceptions by node ID. */
- private Map exceptions;
-
- /** List of log search results. */
- private List results;
-
- /**
- * Default constructor.
- */
- public VisorLogSearchTaskResult() {
- // No-op.
- }
-
- /**
- * Create log search result with given parameters.
- *
- * @param exceptions List of exceptions by node ID.
- * @param results List of log search results.
- */
- public VisorLogSearchTaskResult(Map exceptions, List results) {
- this.exceptions = exceptions;
- this.results = results;
- }
-
- /**
- * @return List of exceptions by node ID.
- */
- public Map getExceptions() {
- return exceptions;
- }
-
- /**
- * @return List of log search results.
- */
- public List getResults() {
- return results;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeMap(out, exceptions);
- U.writeCollection(out, results);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- exceptions = U.readMap(in);
- results = U.readList(in);
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorLogSearchTaskResult.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorAckTask.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorAckTask.java
deleted file mode 100644
index eaa036cb2ae21..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorAckTask.java
+++ /dev/null
@@ -1,75 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.misc;
-
-import java.util.List;
-import org.apache.ignite.compute.ComputeJobResult;
-import org.apache.ignite.internal.processors.task.GridInternal;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.visor.VisorJob;
-import org.apache.ignite.internal.visor.VisorMultiNodeTask;
-import org.jetbrains.annotations.Nullable;
-
-/**
- * Ack task to run on node.
- */
-@GridInternal
-public class VisorAckTask extends VisorMultiNodeTask {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** {@inheritDoc} */
- @Override protected VisorAckJob job(VisorAckTaskArg arg) {
- return new VisorAckJob(arg, debug);
- }
-
- /** {@inheritDoc} */
- @Nullable @Override protected Void reduce0(List results) {
- return null;
- }
-
- /**
- * Ack job to run on node.
- */
- private static class VisorAckJob extends VisorJob {
- /** */
- private static final long serialVersionUID = 0L;
-
- /**
- * Create job with given argument.
- *
- * @param arg Message to ack in node console.
- * @param debug Debug flag.
- */
- private VisorAckJob(VisorAckTaskArg arg, boolean debug) {
- super(arg, debug);
- }
-
- /** {@inheritDoc} */
- @Override protected Void run(VisorAckTaskArg arg) {
- System.out.println(": ack: " + (arg.getMessage() == null ? ignite.localNode().id() : arg.getMessage()));
-
- return null;
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorAckJob.class, this);
- }
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorAckTaskArg.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorAckTaskArg.java
deleted file mode 100644
index 93c4aef71a2d2..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorAckTaskArg.java
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.misc;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Arguments for {@link VisorAckTask}.
- */
-public class VisorAckTaskArg extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Message to show. */
- private String msg;
-
- /**
- * Default constructor.
- */
- public VisorAckTaskArg() {
- // No-op.
- }
-
- /**
- * @param msg Message to show.
- */
- public VisorAckTaskArg(String msg) {
- this.msg = msg;
- }
-
- /**
- * @return Cache name.
- */
- public String getMessage() {
- return msg;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeString(out, msg);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- msg = U.readString(in);
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorAckTaskArg.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorChangeGridActiveStateTask.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorChangeGridActiveStateTask.java
deleted file mode 100644
index 86aee0343202b..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorChangeGridActiveStateTask.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.misc;
-
-import org.apache.ignite.internal.processors.task.GridInternal;
-import org.apache.ignite.internal.processors.task.GridVisorManagementTask;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.visor.VisorJob;
-import org.apache.ignite.internal.visor.VisorOneNodeTask;
-
-/**
- * Task for changing grid active state.
- */
-@GridInternal
-@GridVisorManagementTask
-public class VisorChangeGridActiveStateTask extends VisorOneNodeTask {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** {@inheritDoc} */
- @Override protected VisorChangeGridActiveStateJob job(VisorChangeGridActiveStateTaskArg arg) {
- return new VisorChangeGridActiveStateJob(arg, debug);
- }
-
- /**
- * Job for changing grid active state.
- */
- private static class VisorChangeGridActiveStateJob extends VisorJob {
- /** */
- private static final long serialVersionUID = 0L;
-
- /**
- * @param arg New state of grid.
- * @param debug Debug flag.
- */
- private VisorChangeGridActiveStateJob(VisorChangeGridActiveStateTaskArg arg, boolean debug) {
- super(arg, debug);
- }
-
- /** {@inheritDoc} */
- @Override protected Void run(VisorChangeGridActiveStateTaskArg arg) {
- ignite.active(arg.isActive());
-
- return null;
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorChangeGridActiveStateJob.class, this);
- }
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorChangeGridActiveStateTaskArg.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorChangeGridActiveStateTaskArg.java
deleted file mode 100644
index 15e76fb98cc9c..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorChangeGridActiveStateTaskArg.java
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.misc;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Argument for {@link VisorChangeGridActiveStateTask}.
- */
-public class VisorChangeGridActiveStateTaskArg extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** If True start activation process. If False start deactivation process. */
- private boolean active;
-
- /**
- * Default constructor.
- */
- public VisorChangeGridActiveStateTaskArg() {
- // No-op.
- }
-
- /**
- * @param active If True start activation process. If False start deactivation process.
- */
- public VisorChangeGridActiveStateTaskArg(boolean active) {
- this.active = active;
- }
-
- /**
- * @return If True start activation process. If False start deactivation process.
- */
- public boolean isActive() {
- return active;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- out.writeBoolean(active);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- active = in.readBoolean();
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorChangeGridActiveStateTaskArg.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorLatestVersionTask.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorLatestVersionTask.java
deleted file mode 100644
index 8c250996f974f..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorLatestVersionTask.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.misc;
-
-import org.apache.ignite.internal.processors.task.GridInternal;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.visor.VisorJob;
-import org.apache.ignite.internal.visor.VisorOneNodeTask;
-
-/**
- * Task for collecting latest version.
- */
-@GridInternal
-public class VisorLatestVersionTask extends VisorOneNodeTask {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** {@inheritDoc} */
- @Override protected VisorLatestVersionJob job(Void arg) {
- return new VisorLatestVersionJob(arg, debug);
- }
-
- /**
- * Job for collecting latest version.
- */
- private static class VisorLatestVersionJob extends VisorJob {
- /** */
- private static final long serialVersionUID = 0L;
-
- /**
- * @param arg Formal job argument.
- * @param debug Debug flag.
- */
- private VisorLatestVersionJob(Void arg, boolean debug) {
- super(arg, debug);
- }
-
- /** {@inheritDoc} */
- @Override protected String run(Void arg) {
- return ignite.latestVersion();
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorLatestVersionJob.class, this);
- }
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorNopTask.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorNopTask.java
deleted file mode 100644
index aeca762a0f1a9..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorNopTask.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.misc;
-
-import java.util.List;
-import java.util.Map;
-import java.util.Random;
-import org.apache.ignite.cluster.ClusterNode;
-import org.apache.ignite.compute.ComputeJob;
-import org.apache.ignite.compute.ComputeJobAdapter;
-import org.apache.ignite.compute.ComputeJobResult;
-import org.apache.ignite.compute.ComputeJobResultPolicy;
-import org.apache.ignite.compute.ComputeTask;
-import org.apache.ignite.internal.util.GridLeanMap;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.jetbrains.annotations.NotNull;
-import org.jetbrains.annotations.Nullable;
-
-/**
- * Nop task with random timeout.
- */
-public class VisorNopTask implements ComputeTask {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** {@inheritDoc} */
- @NotNull @Override public Map extends ComputeJob, ClusterNode> map(List subgrid,
- @Nullable Integer arg) {
-
- Map map = new GridLeanMap<>(subgrid.size());
-
- for (ClusterNode node : subgrid)
- map.put(new VisorNopJob(arg), node);
-
- return map;
- }
-
- /** {@inheritDoc} */
- @Override public ComputeJobResultPolicy result(ComputeJobResult res,
- List rcvd) {
- return ComputeJobResultPolicy.WAIT;
- }
-
- /** {@inheritDoc} */
- @Nullable @Override public Void reduce(List results) {
- return null;
- }
-
- /**
- * Nop job with random timeout.
- */
- private static class VisorNopJob extends ComputeJobAdapter {
- /** */
- private static final long serialVersionUID = 0L;
-
- /**
- * @param arg Job argument.
- */
- private VisorNopJob(@Nullable Object arg) {
- super(arg);
- }
-
- /** {@inheritDoc} */
- @SuppressWarnings("ConstantConditions")
- @Nullable @Override public Object execute() {
- try {
- Integer maxTimeout = argument(0);
-
- Thread.sleep(new Random().nextInt(maxTimeout));
- }
- catch (InterruptedException ignored) {
- Thread.currentThread().interrupt();
- }
-
- return null;
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorNopJob.class, this);
- }
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorResolveHostNameTask.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorResolveHostNameTask.java
deleted file mode 100644
index f851e262abe96..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/misc/VisorResolveHostNameTask.java
+++ /dev/null
@@ -1,107 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.misc;
-
-import java.net.InetAddress;
-import java.util.Collection;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.Map;
-import org.apache.ignite.IgniteException;
-import org.apache.ignite.internal.processors.task.GridInternal;
-import org.apache.ignite.internal.util.IgniteUtils;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.visor.VisorJob;
-import org.apache.ignite.internal.visor.VisorOneNodeTask;
-import org.apache.ignite.lang.IgniteBiTuple;
-
-/**
- * Task that resolve host name for specified IP address from node.
- */
-@GridInternal
-public class VisorResolveHostNameTask extends VisorOneNodeTask> {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** {@inheritDoc} */
- @Override protected VisorResolveHostNameJob job(Void arg) {
- return new VisorResolveHostNameJob(arg, debug);
- }
-
- /**
- * Job that resolve host name for specified IP address.
- */
- private static class VisorResolveHostNameJob extends VisorJob> {
- /** */
- private static final long serialVersionUID = 0L;
-
- /**
- * Create job.
- *
- * @param arg List of IP address for resolve.
- * @param debug Debug flag.
- */
- private VisorResolveHostNameJob(Void arg, boolean debug) {
- super(arg, debug);
- }
-
- /** {@inheritDoc} */
- @Override protected Map run(Void arg) {
- Map res = new HashMap<>();
-
- try {
- IgniteBiTuple, Collection> addrs =
- IgniteUtils.resolveLocalAddresses(InetAddress.getByName("0.0.0.0"), true);
-
- assert (addrs.get1() != null);
- assert (addrs.get2() != null);
-
- Iterator ipIt = addrs.get1().iterator();
- Iterator hostIt = addrs.get2().iterator();
-
- while (ipIt.hasNext() && hostIt.hasNext()) {
- String ip = ipIt.next();
-
- String hostName = hostIt.next();
-
- if (hostName == null || hostName.trim().isEmpty()) {
- try {
- if (InetAddress.getByName(ip).isLoopbackAddress())
- res.put(ip, "localhost");
- }
- catch (Exception ignore) {
- //no-op
- }
- }
- else if (!hostName.equals(ip))
- res.put(ip, hostName);
- }
- }
- catch (Exception e) {
- throw new IgniteException("Failed to resolve host name", e);
- }
-
- return res;
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorResolveHostNameJob.class, this);
- }
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorAffinityTopologyVersion.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorAffinityTopologyVersion.java
deleted file mode 100644
index 83b2fb1e3b58c..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorAffinityTopologyVersion.java
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.node;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import org.apache.ignite.internal.processors.affinity.AffinityTopologyVersion;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Data transfer object for {@link AffinityTopologyVersion}
- */
-public class VisorAffinityTopologyVersion extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** */
- private long topVer;
-
- /** */
- private int minorTopVer;
-
- /**
- * Default constructor.
- */
- public VisorAffinityTopologyVersion() {
- // No-op.
- }
-
- /**
- * Create data transfer object for affinity topology version.
- *
- * @param affTopVer Affinity topology version.
- */
- public VisorAffinityTopologyVersion(AffinityTopologyVersion affTopVer) {
- topVer = affTopVer.topologyVersion();
- minorTopVer = affTopVer.minorTopologyVersion();
- }
-
- /**
- * @return Topology version.
- */
- public long getTopologyVersion() {
- return topVer;
- }
-
- /**
- * @return Minor topology version.
- */
- public int getMinorTopologyVersion() {
- return minorTopVer;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- out.writeLong(topVer);
- out.writeInt(minorTopVer);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- topVer = in.readLong();
- minorTopVer = in.readInt();
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorAffinityTopologyVersion.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorAtomicConfiguration.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorAtomicConfiguration.java
deleted file mode 100644
index 2c77d6ef11cdb..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorAtomicConfiguration.java
+++ /dev/null
@@ -1,101 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.node;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import org.apache.ignite.cache.CacheMode;
-import org.apache.ignite.configuration.AtomicConfiguration;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Data transfer object for configuration of atomic data structures.
- */
-public class VisorAtomicConfiguration extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Atomic sequence reservation size. */
- private int seqReserveSize;
-
- /** Cache mode. */
- private CacheMode cacheMode;
-
- /** Number of backups. */
- private int backups;
-
- /**
- * Default constructor.
- */
- public VisorAtomicConfiguration() {
- // No-op.
- }
-
- /**
- * Create data transfer object for atomic configuration.
- *
- * @param src Atomic configuration.
- */
- public VisorAtomicConfiguration(AtomicConfiguration src) {
- seqReserveSize = src.getAtomicSequenceReserveSize();
- cacheMode = src.getCacheMode();
- backups = src.getBackups();
- }
-
- /**
- * @return Atomic sequence reservation size.
- */
- public int getAtomicSequenceReserveSize() {
- return seqReserveSize;
- }
-
- /**
- * @return Cache mode.
- */
- public CacheMode getCacheMode() {
- return cacheMode;
- }
-
- /**
- * @return Number of backup nodes.
- */
- public int getBackups() {
- return backups;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- out.writeInt(seqReserveSize);
- out.writeByte(CacheMode.toCode(cacheMode));
- out.writeInt(backups);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- seqReserveSize = in.readInt();
- cacheMode = CacheMode.fromCode(in.readByte());
- backups = in.readInt();
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorAtomicConfiguration.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorBasicConfiguration.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorBasicConfiguration.java
deleted file mode 100644
index 72e4dce7e4ea4..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorBasicConfiguration.java
+++ /dev/null
@@ -1,549 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.node;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import org.apache.ignite.configuration.DeploymentMode;
-import org.apache.ignite.configuration.IgniteConfiguration;
-import org.apache.ignite.internal.IgniteEx;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-import org.jetbrains.annotations.Nullable;
-
-import static java.lang.System.getProperty;
-import static org.apache.ignite.IgniteSystemProperties.IGNITE_HOME;
-import static org.apache.ignite.IgniteSystemProperties.IGNITE_LOCAL_HOST;
-import static org.apache.ignite.IgniteSystemProperties.IGNITE_NO_ASCII;
-import static org.apache.ignite.IgniteSystemProperties.IGNITE_NO_DISCO_ORDER;
-import static org.apache.ignite.IgniteSystemProperties.IGNITE_NO_SHUTDOWN_HOOK;
-import static org.apache.ignite.IgniteSystemProperties.IGNITE_PROG_NAME;
-import static org.apache.ignite.IgniteSystemProperties.IGNITE_QUIET;
-import static org.apache.ignite.IgniteSystemProperties.IGNITE_SUCCESS_FILE;
-import static org.apache.ignite.IgniteSystemProperties.IGNITE_UPDATE_NOTIFIER;
-import static org.apache.ignite.internal.processors.cluster.ClusterProcessor.DFLT_UPDATE_NOTIFIER;
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.boolValue;
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.compactClass;
-
-/**
- * Data transfer object for node basic configuration properties.
- */
-public class VisorBasicConfiguration extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Ignite instance name. */
- private String igniteInstanceName;
-
- /** IGNITE_HOME determined at startup. */
- private String ggHome;
-
- /** Local host value used. */
- private String locHost;
-
- /** Marshaller used. */
- private String marsh;
-
- /** Deployment Mode. */
- private DeploymentMode deployMode;
-
- /** Client mode flag. */
- private Boolean clientMode;
-
- /** Whether this node daemon or not. */
- private boolean daemon;
-
- /** Whether remote JMX is enabled. */
- private boolean jmxRemote;
-
- /** Is node restart enabled. */
- private boolean restart;
-
- /** Network timeout. */
- private long netTimeout;
-
- /** Logger used on node. */
- private String log;
-
- /** Discovery startup delay. */
- private long discoStartupDelay;
-
- /** MBean server name */
- private String mBeanSrv;
-
- /** Whether ASCII logo is disabled. */
- private boolean noAscii;
-
- /** Whether no discovery order is allowed. */
- private boolean noDiscoOrder;
-
- /** Whether shutdown hook is disabled. */
- private boolean noShutdownHook;
-
- /** Name of command line program. */
- private String progName;
-
- /** Whether node is in quiet mode. */
- private boolean quiet;
-
- /** Success file name. */
- private String successFile;
-
- /** Whether update checker is enabled. */
- private boolean updateNtf;
-
- /** Active on start flag. */
- private boolean activeOnStart;
-
- /** Address resolver. */
- private String addrRslvr;
-
- /** Flag indicating whether cache sanity check is enabled. */
- private boolean cacheSanityCheckEnabled;
-
- /** User's class loader. */
- private String clsLdr;
-
- /** Consistent globally unique node ID which survives node restarts. */
- private String consistentId;
-
- /** Failure detection timeout. */
- private Long failureDetectionTimeout;
-
- /** Ignite work folder. */
- private String igniteWorkDir;
-
- /** */
- private boolean lateAffAssignment;
-
- /** Marshal local jobs. */
- private boolean marshLocJobs;
-
- /** Full metrics enabled flag. */
- private long metricsUpdateFreq;
-
- /** Failure detection timeout for client nodes. */
- private Long clientFailureDetectionTimeout;
-
- /** Message send retries delay. */
- private int sndRetryCnt;
-
- /** Interval between message send retries. */
- private long sndRetryDelay;
-
- /** Base port number for time server. */
- private int timeSrvPortBase;
-
- /** Port number range for time server. */
- private int timeSrvPortRange;
-
- /** Utility cache pool keep alive time. */
- private long utilityCacheKeepAliveTime;
-
- /**
- * Default constructor.
- */
- public VisorBasicConfiguration() {
- // No-op.
- }
-
- /**
- * Create data transfer object for node basic configuration properties.
- *
- * @param ignite Grid.
- * @param c Grid configuration.
- */
- public VisorBasicConfiguration(IgniteEx ignite, IgniteConfiguration c) {
- igniteInstanceName = c.getIgniteInstanceName();
- ggHome = getProperty(IGNITE_HOME, c.getIgniteHome());
- locHost = getProperty(IGNITE_LOCAL_HOST, c.getLocalHost());
- marsh = compactClass(c.getMarshaller());
- deployMode = c.getDeploymentMode();
- clientMode = c.isClientMode();
- jmxRemote = ignite.isJmxRemoteEnabled();
- restart = ignite.isRestartEnabled();
- netTimeout = c.getNetworkTimeout();
- log = compactClass(c.getGridLogger());
- discoStartupDelay = c.getDiscoveryStartupDelay();
- mBeanSrv = compactClass(c.getMBeanServer());
- noAscii = boolValue(IGNITE_NO_ASCII, false);
- noDiscoOrder = boolValue(IGNITE_NO_DISCO_ORDER, false);
- noShutdownHook = boolValue(IGNITE_NO_SHUTDOWN_HOOK, false);
- progName = getProperty(IGNITE_PROG_NAME);
- quiet = boolValue(IGNITE_QUIET, true);
- successFile = getProperty(IGNITE_SUCCESS_FILE);
- updateNtf = boolValue(IGNITE_UPDATE_NOTIFIER, DFLT_UPDATE_NOTIFIER);
- activeOnStart = c.isActiveOnStart();
- addrRslvr = compactClass(c.getAddressResolver());
- cacheSanityCheckEnabled = c.isCacheSanityCheckEnabled();
- clsLdr = compactClass(c.getClassLoader());
- consistentId = c.getConsistentId() != null ? String.valueOf(c.getConsistentId()) : null;
- failureDetectionTimeout = c.getFailureDetectionTimeout();
- igniteWorkDir = c.getWorkDirectory();
- lateAffAssignment = c.isLateAffinityAssignment();
- marshLocJobs = c.isMarshalLocalJobs();
- metricsUpdateFreq = c.getMetricsUpdateFrequency();
- clientFailureDetectionTimeout = c.getClientFailureDetectionTimeout();
- sndRetryCnt = c.getNetworkSendRetryCount();
- sndRetryDelay = c.getNetworkSendRetryDelay();
- timeSrvPortBase = c.getTimeServerPortBase();
- timeSrvPortRange = c.getTimeServerPortRange();
- utilityCacheKeepAliveTime = c.getUtilityCacheKeepAliveTime();
- }
-
- /**
- * @return Ignite instance name.
- */
- @Nullable public String getIgniteInstanceName() {
- return igniteInstanceName;
- }
-
- /**
- * @return IGNITE_HOME determined at startup.
- */
- @Nullable public String getGgHome() {
- return ggHome;
- }
-
- /**
- * @return Local host value used.
- */
- @Nullable public String getLocalHost() {
- return locHost;
- }
-
- /**
- * @return Marshaller used.
- */
- public String getMarshaller() {
- return marsh;
- }
-
- /**
- * @return Deployment Mode.
- */
- public Object getDeploymentMode() {
- return deployMode;
- }
-
- /**
- * @return Client mode flag.
- */
- public Boolean isClientMode() {
- return clientMode;
- }
-
- /**
- * @return Whether this node daemon or not.
- */
- public boolean isDaemon() {
- return daemon;
- }
-
- /**
- * @return Whether remote JMX is enabled.
- */
- public boolean isJmxRemote() {
- return jmxRemote;
- }
-
- /**
- * @return Is node restart enabled.
- */
- public boolean isRestart() {
- return restart;
- }
-
- /**
- * @return Network timeout.
- */
- public long getNetworkTimeout() {
- return netTimeout;
- }
-
- /**
- * @return Logger used on node.
- */
- public String getLogger() {
- return log;
- }
-
- /**
- * @return Discovery startup delay.
- */
- public long getDiscoStartupDelay() {
- return discoStartupDelay;
- }
-
- /**
- * @return MBean server name
- */
- @Nullable public String getMBeanServer() {
- return mBeanSrv;
- }
-
- /**
- * @return Whether ASCII logo is disabled.
- */
- public boolean isNoAscii() {
- return noAscii;
- }
-
- /**
- * @return Whether no discovery order is allowed.
- */
- public boolean isNoDiscoOrder() {
- return noDiscoOrder;
- }
-
- /**
- * @return Whether shutdown hook is disabled.
- */
- public boolean isNoShutdownHook() {
- return noShutdownHook;
- }
-
- /**
- * @return Name of command line program.
- */
- public String getProgramName() {
- return progName;
- }
-
- /**
- * @return Whether node is in quiet mode.
- */
- public boolean isQuiet() {
- return quiet;
- }
-
- /**
- * @return Success file name.
- */
- public String getSuccessFile() {
- return successFile;
- }
-
- /**
- * @return Whether update checker is enabled.
- */
- public boolean isUpdateNotifier() {
- return updateNtf;
- }
-
- /**
- * @return Active on start flag.
- */
- public boolean isActiveOnStart() {
- return activeOnStart;
- }
-
- /**
- * @return Class name of address resolver instance.
- */
- public String getAddressResolver() {
- return addrRslvr;
- }
-
- /**
- * @return Flag indicating whether cache sanity check is enabled.
- */
- public boolean isCacheSanityCheckEnabled() {
- return cacheSanityCheckEnabled;
- }
-
- /**
- * @return User's class loader.
- */
- public String getClassLoader() {
- return clsLdr;
- }
-
- /**
- * Gets consistent globally unique node ID which survives node restarts.
- *
- * @return Node consistent ID.a
- */
- public String getConsistentId() {
- return consistentId;
- }
-
- /**
- * @return Failure detection timeout in milliseconds.
- */
- public Long getFailureDetectionTimeout() {
- return failureDetectionTimeout;
- }
-
- /**
- * @return Ignite work directory.
- */
- public String getWorkDirectory() {
- return igniteWorkDir;
- }
-
- /**
- * @return Late affinity assignment flag.
- */
- public boolean isLateAffinityAssignment() {
- return lateAffAssignment;
- }
-
- /**
- * @return {@code True} if local jobs should be marshalled.
- */
- public boolean isMarshalLocalJobs() {
- return marshLocJobs;
- }
-
- /**
- * @return Job metrics update frequency in milliseconds.
- */
- public long getMetricsUpdateFrequency() {
- return metricsUpdateFreq;
- }
-
- /**
- * @return Failure detection timeout for client nodes in milliseconds.
- */
- public Long getClientFailureDetectionTimeout() {
- return clientFailureDetectionTimeout;
- }
-
- /**
- * @return Message send retries count.
- */
- public int getNetworkSendRetryCount() {
- return sndRetryCnt;
- }
-
- /**
- * @return Interval between message send retries.
- */
- public long getNetworkSendRetryDelay() {
- return sndRetryDelay;
- }
-
- /**
- * @return Base UPD port number for grid time server.
- */
- public int getTimeServerPortBase() {
- return timeSrvPortBase;
- }
-
- /**
- * @return Number of ports to try before server initialization fails.
- */
- public int getTimeServerPortRange() {
- return timeSrvPortRange;
- }
-
- /**
- * @return Thread pool keep alive time (in milliseconds) to be used in grid for utility cache messages.
- */
- public long getUtilityCacheKeepAliveTime() {
- return utilityCacheKeepAliveTime;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeString(out, igniteInstanceName);
- U.writeString(out, ggHome);
- U.writeString(out, locHost);
- U.writeString(out, marsh);
- U.writeEnum(out, deployMode);
- out.writeObject(clientMode);
- out.writeBoolean(daemon);
- out.writeBoolean(jmxRemote);
- out.writeBoolean(restart);
- out.writeLong(netTimeout);
- U.writeString(out, log);
- out.writeLong(discoStartupDelay);
- U.writeString(out, mBeanSrv);
- out.writeBoolean(noAscii);
- out.writeBoolean(noDiscoOrder);
- out.writeBoolean(noShutdownHook);
- U.writeString(out, progName);
- out.writeBoolean(quiet);
- U.writeString(out, successFile);
- out.writeBoolean(updateNtf);
- out.writeBoolean(activeOnStart);
- U.writeString(out, addrRslvr);
- out.writeBoolean(cacheSanityCheckEnabled);
- U.writeString(out, clsLdr);
- U.writeString(out, consistentId);
- out.writeObject(failureDetectionTimeout);
- U.writeString(out, igniteWorkDir);
- out.writeBoolean(lateAffAssignment);
- out.writeBoolean(marshLocJobs);
- out.writeLong(metricsUpdateFreq);
- out.writeObject(clientFailureDetectionTimeout);
- out.writeInt(sndRetryCnt);
- out.writeLong(sndRetryDelay);
- out.writeInt(timeSrvPortBase);
- out.writeInt(timeSrvPortRange);
- out.writeLong(utilityCacheKeepAliveTime);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- igniteInstanceName = U.readString(in);
- ggHome = U.readString(in);
- locHost = U.readString(in);
- marsh = U.readString(in);
- deployMode = DeploymentMode.fromOrdinal(in.readByte());
- clientMode = (Boolean)in.readObject();
- daemon = in.readBoolean();
- jmxRemote = in.readBoolean();
- restart = in.readBoolean();
- netTimeout = in.readLong();
- log = U.readString(in);
- discoStartupDelay = in.readLong();
- mBeanSrv = U.readString(in);
- noAscii = in.readBoolean();
- noDiscoOrder = in.readBoolean();
- noShutdownHook = in.readBoolean();
- progName = U.readString(in);
- quiet = in.readBoolean();
- successFile = U.readString(in);
- updateNtf = in.readBoolean();
- activeOnStart = in.readBoolean();
- addrRslvr = U.readString(in);
- cacheSanityCheckEnabled = in.readBoolean();
- clsLdr = U.readString(in);
- consistentId = U.readString(in);
- failureDetectionTimeout = (Long)in.readObject();
- igniteWorkDir = U.readString(in);
- lateAffAssignment = in.readBoolean();
- marshLocJobs = in.readBoolean();
- metricsUpdateFreq = in.readLong();
- clientFailureDetectionTimeout = (Long)in.readObject();
- sndRetryCnt = in.readInt();
- sndRetryDelay = in.readLong();
- timeSrvPortBase = in.readInt();
- timeSrvPortRange = in.readInt();
- utilityCacheKeepAliveTime = in.readLong();
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorBasicConfiguration.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorBinaryConfiguration.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorBinaryConfiguration.java
deleted file mode 100644
index f69caf19fd845..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorBinaryConfiguration.java
+++ /dev/null
@@ -1,131 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.node;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import java.util.List;
-import org.apache.ignite.configuration.BinaryConfiguration;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.compactClass;
-
-/**
- * Data transfer object for configuration of binary data structures.
- */
-public class VisorBinaryConfiguration extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** ID mapper. */
- private String idMapper;
-
- /** Name mapper. */
- private String nameMapper;
-
- /** Serializer. */
- private String serializer;
-
- /** Types. */
- private List typeCfgs;
-
- /** Compact footer flag. */
- private boolean compactFooter;
-
- /**
- * Default constructor.
- */
- public VisorBinaryConfiguration() {
- // No-op.
- }
-
- /**
- * Create data transfer object for binary configuration.
- *
- * @param src Binary configuration.
- */
- public VisorBinaryConfiguration(BinaryConfiguration src) {
- idMapper = compactClass(src.getIdMapper());
- nameMapper = compactClass(src.getNameMapper());
- serializer = compactClass(src.getSerializer());
- compactFooter = src.isCompactFooter();
-
- typeCfgs = VisorBinaryTypeConfiguration.list(src.getTypeConfigurations());
- }
-
- /**
- * @return ID mapper.
- */
- public String getIdMapper() {
- return idMapper;
- }
-
- /**
- * @return Name mapper.
- */
- public String getNameMapper() {
- return nameMapper;
- }
-
- /**
- * @return Serializer.
- */
- public String getSerializer() {
- return serializer;
- }
-
- /**
- * @return Types.
- */
- public List getTypeConfigurations() {
- return typeCfgs;
- }
-
- /**
- * @return Compact footer flag.
- */
- public boolean isCompactFooter() {
- return compactFooter;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeString(out, idMapper);
- U.writeString(out, nameMapper);
- U.writeString(out, serializer);
- U.writeCollection(out, typeCfgs);
- out.writeBoolean(compactFooter);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- idMapper = U.readString(in);
- nameMapper = U.readString(in);
- serializer = U.readString(in);
- typeCfgs = U.readList(in);
- compactFooter = in.readBoolean();
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorBinaryConfiguration.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorBinaryTypeConfiguration.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorBinaryTypeConfiguration.java
deleted file mode 100644
index 3b575ee20c2b5..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorBinaryTypeConfiguration.java
+++ /dev/null
@@ -1,150 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.node;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.List;
-import org.apache.ignite.binary.BinaryTypeConfiguration;
-import org.apache.ignite.internal.util.typedef.F;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.compactClass;
-
-/**
- * Data transfer object for configuration of binary type structures.
- */
-public class VisorBinaryTypeConfiguration extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Class name. */
- private String typeName;
-
- /** ID mapper. */
- private String idMapper;
-
- /** Name mapper. */
- private String nameMapper;
-
- /** Serializer. */
- private String serializer;
-
- /** Enum flag. */
- private boolean isEnum;
-
- /**
- * Construct data transfer object for Executor configurations properties.
- *
- * @param cfgs Executor configurations.
- * @return Executor configurations properties.
- */
- public static List list(Collection cfgs) {
- List res = new ArrayList<>();
-
- if (!F.isEmpty(cfgs)) {
- for (BinaryTypeConfiguration cfg : cfgs)
- res.add(new VisorBinaryTypeConfiguration(cfg));
- }
-
- return res;
- }
-
- /**
- * Default constructor.
- */
- public VisorBinaryTypeConfiguration() {
- // No-op.
- }
-
- /**
- * Create data transfer object for binary type configuration.
- *
- * @param src Binary type configuration.
- */
- public VisorBinaryTypeConfiguration(BinaryTypeConfiguration src) {
- typeName = src.getTypeName();
- idMapper = compactClass(src.getIdMapper());
- nameMapper = compactClass(src.getNameMapper());
- serializer = compactClass(src.getSerializer());
- isEnum = src.isEnum();
- }
-
- /**
- * @return Class name.
- */
- public String getTypeName() {
- return typeName;
- }
-
- /**
- * @return ID mapper.
- */
- public String getIdMapper() {
- return idMapper;
- }
-
- /**
- * @return Name mapper.
- */
- public String getNameMapper() {
- return nameMapper;
- }
-
- /**
- * @return Serializer.
- */
- public String getSerializer() {
- return serializer;
- }
-
- /**
- * @return Enum flag.
- */
- public boolean isEnum() {
- return isEnum;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeString(out, typeName);
- U.writeString(out, idMapper);
- U.writeString(out, nameMapper);
- U.writeString(out, serializer);
- out.writeBoolean(isEnum);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- typeName = U.readString(in);
- idMapper = U.readString(in);
- nameMapper = U.readString(in);
- serializer = U.readString(in);
- isEnum = in.readBoolean();
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorBinaryTypeConfiguration.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorCacheKeyConfiguration.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorCacheKeyConfiguration.java
deleted file mode 100644
index cbd7b55fbf7d6..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorCacheKeyConfiguration.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.node;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import java.util.ArrayList;
-import java.util.List;
-import org.apache.ignite.cache.CacheKeyConfiguration;
-import org.apache.ignite.internal.util.typedef.F;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Data transfer object for configuration of cache key data structures.
- */
-public class VisorCacheKeyConfiguration extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Type name. */
- private String typeName;
-
- /** Affinity key field name. */
- private String affKeyFieldName;
-
- /**
- * Construct data transfer object for cache key configurations properties.
- *
- * @param cfgs Cache key configurations.
- * @return Cache key configurations properties.
- */
- public static List list(CacheKeyConfiguration[] cfgs) {
- List res = new ArrayList<>();
-
- if (!F.isEmpty(cfgs)) {
- for (CacheKeyConfiguration cfg : cfgs)
- res.add(new VisorCacheKeyConfiguration(cfg));
- }
-
- return res;
- }
-
- /**
- * Default constructor.
- */
- public VisorCacheKeyConfiguration() {
- // No-op.
- }
-
- /**
- * Create data transfer object for cache key configuration.
- *
- * @param src Cache key configuration.
- */
- public VisorCacheKeyConfiguration(CacheKeyConfiguration src) {
- typeName = src.getTypeName();
- affKeyFieldName = src.getAffinityKeyFieldName();
- }
-
- /**
- * @return Type name.
- */
- public String getTypeName() {
- return typeName;
- }
-
- /**
- * @return Affinity key field name.
- */
- public String getAffinityKeyFieldName() {
- return affKeyFieldName;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeString(out, typeName);
- U.writeString(out, affKeyFieldName);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- typeName = U.readString(in);
- affKeyFieldName = U.readString(in);
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorCacheKeyConfiguration.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorCacheRebalanceCollectorJobResult.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorCacheRebalanceCollectorJobResult.java
deleted file mode 100644
index 5bd818d424848..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorCacheRebalanceCollectorJobResult.java
+++ /dev/null
@@ -1,91 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.node;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import org.apache.ignite.internal.dto.IgniteDataTransferObject;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-
-/**
- * Result object for cache rebalance job.
- */
-public class VisorCacheRebalanceCollectorJobResult extends IgniteDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Rebalance percent. */
- private double rebalance;
-
- /** Node baseline state. */
- private VisorNodeBaselineStatus baseline;
-
- /**
- * Default constructor.
- */
- public VisorCacheRebalanceCollectorJobResult() {
- // No-op.
- }
-
- /**
- * @return Rebalance progress.
- */
- public double getRebalance() {
- return rebalance;
- }
-
- /**
- * @param rebalance Rebalance progress.
- */
- public void setRebalance(double rebalance) {
- this.rebalance = rebalance;
- }
-
- /**
- * @return Node baseline status.
- */
- public VisorNodeBaselineStatus getBaseline() {
- return baseline;
- }
-
- /**
- * @param baseline Node baseline status.
- */
- public void setBaseline(VisorNodeBaselineStatus baseline) {
- this.baseline = baseline;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- out.writeDouble(rebalance);
- U.writeEnum(out, baseline);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- rebalance = in.readDouble();
- baseline = VisorNodeBaselineStatus.fromOrdinal(in.readByte());
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorCacheRebalanceCollectorJobResult.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorCacheRebalanceCollectorTask.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorCacheRebalanceCollectorTask.java
deleted file mode 100644
index 484150ecca08d..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorCacheRebalanceCollectorTask.java
+++ /dev/null
@@ -1,199 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.node;
-
-import java.util.Collection;
-import java.util.List;
-import org.apache.ignite.cache.CacheMetrics;
-import org.apache.ignite.cluster.BaselineNode;
-import org.apache.ignite.compute.ComputeJobResult;
-import org.apache.ignite.internal.cluster.IgniteClusterEx;
-import org.apache.ignite.internal.processors.cache.CacheGroupContext;
-import org.apache.ignite.internal.processors.cache.GridCacheAdapter;
-import org.apache.ignite.internal.processors.cache.GridCacheProcessor;
-import org.apache.ignite.internal.processors.cache.GridCacheUtils;
-import org.apache.ignite.internal.processors.task.GridInternal;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorJob;
-import org.apache.ignite.internal.visor.VisorMultiNodeTask;
-import org.jetbrains.annotations.Nullable;
-
-import static org.apache.ignite.internal.visor.node.VisorNodeBaselineStatus.BASELINE_NOT_AVAILABLE;
-import static org.apache.ignite.internal.visor.node.VisorNodeBaselineStatus.NODE_IN_BASELINE;
-import static org.apache.ignite.internal.visor.node.VisorNodeBaselineStatus.NODE_NOT_IN_BASELINE;
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.MINIMAL_REBALANCE;
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.NOTHING_TO_REBALANCE;
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.REBALANCE_COMPLETE;
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.REBALANCE_NOT_AVAILABLE;
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.isProxyCache;
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.isRestartingCache;
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.log;
-
-/**
- * Collects topology rebalance metrics.
- */
-@GridInternal
-public class VisorCacheRebalanceCollectorTask extends VisorMultiNodeTask {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** {@inheritDoc} */
- @Override protected VisorCacheRebalanceCollectorJob job(VisorCacheRebalanceCollectorTaskArg arg) {
- return new VisorCacheRebalanceCollectorJob(arg, debug);
- }
-
- /** {@inheritDoc} */
- @Nullable @Override protected VisorCacheRebalanceCollectorTaskResult reduce0(List results) {
- return reduce(new VisorCacheRebalanceCollectorTaskResult(), results);
- }
-
- /**
- * @param taskRes Task result.
- * @param results Results.
- * @return Topology rebalance metrics collector task result.
- */
- protected VisorCacheRebalanceCollectorTaskResult reduce(
- VisorCacheRebalanceCollectorTaskResult taskRes,
- List results
- ) {
- for (ComputeJobResult res : results) {
- VisorCacheRebalanceCollectorJobResult jobRes = res.getData();
-
- if (jobRes != null) {
- if (res.getException() == null)
- taskRes.getRebalance().put(res.getNode().id(), jobRes.getRebalance());
-
- taskRes.getBaseline().put(res.getNode().id(), jobRes.getBaseline());
- }
- }
-
- return taskRes;
- }
-
- /**
- * Job that collects rebalance metrics.
- */
- private static class VisorCacheRebalanceCollectorJob
- extends VisorJob {
- /** */
- private static final long serialVersionUID = 0L;
-
- /**
- * Create job with given argument.
- *
- * @param arg Job argument.
- * @param debug Debug flag.
- */
- private VisorCacheRebalanceCollectorJob(VisorCacheRebalanceCollectorTaskArg arg, boolean debug) {
- super(arg, debug);
- }
-
- /** {@inheritDoc} */
- @Override protected VisorCacheRebalanceCollectorJobResult run(VisorCacheRebalanceCollectorTaskArg arg) {
- VisorCacheRebalanceCollectorJobResult res = new VisorCacheRebalanceCollectorJobResult();
-
- long start0 = U.currentTimeMillis();
-
- try {
- int partitions = 0;
- double total = 0;
- double ready = 0;
-
- GridCacheProcessor cacheProc = ignite.context().cache();
-
- boolean rebalanceInProgress = false;
-
- for (CacheGroupContext grp: cacheProc.cacheGroups()) {
- String cacheName = grp.config().getName();
-
- if (isProxyCache(ignite, cacheName) || isRestartingCache(ignite, cacheName))
- continue;
-
- try {
- GridCacheAdapter ca = cacheProc.internalCache(cacheName);
-
- if (ca == null || !ca.context().started())
- continue;
-
- CacheMetrics cm = ca.localMetrics();
-
- partitions += cm.getTotalPartitionsCount();
-
- long keysTotal = cm.getEstimatedRebalancingKeys();
- long keysReady = cm.getRebalancedKeys();
-
- if (keysReady >= keysTotal)
- keysReady = Math.max(keysTotal - 1, 0);
-
- total += keysTotal;
- ready += keysReady;
-
- if (cm.getRebalancingPartitionsCount() > 0)
- rebalanceInProgress = true;
- }
- catch (IllegalStateException | IllegalArgumentException e) {
- if (debug && ignite.log() != null)
- ignite.log().error("Ignored cache group: " + grp.cacheOrGroupName(), e);
- }
- }
-
- if (partitions == 0)
- res.setRebalance(NOTHING_TO_REBALANCE);
- else if (total == 0 && rebalanceInProgress)
- res.setRebalance(MINIMAL_REBALANCE);
- else
- res.setRebalance(total > 0 && rebalanceInProgress ? Math.max(ready / total, MINIMAL_REBALANCE) : REBALANCE_COMPLETE);
- }
- catch (Exception e) {
- res.setRebalance(REBALANCE_NOT_AVAILABLE);
-
- ignite.log().error("Failed to collect rebalance metrics", e);
- }
-
- if (GridCacheUtils.isPersistenceEnabled(ignite.configuration())) {
- IgniteClusterEx cluster = ignite.cluster();
-
- Object consistentId = ignite.localNode().consistentId();
-
- Collection extends BaselineNode> baseline = cluster.currentBaselineTopology();
-
- if (baseline != null) {
- boolean inBaseline = baseline.stream().anyMatch(n -> consistentId.equals(n.consistentId()));
-
- res.setBaseline(inBaseline ? NODE_IN_BASELINE : NODE_NOT_IN_BASELINE);
- }
- else
- res.setBaseline(BASELINE_NOT_AVAILABLE);
- }
- else
- res.setBaseline(BASELINE_NOT_AVAILABLE);
-
- if (debug)
- log(ignite.log(), "Collected rebalance metrics", getClass(), start0);
-
- return res;
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorCacheRebalanceCollectorJob.class, this);
- }
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorCacheRebalanceCollectorTaskArg.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorCacheRebalanceCollectorTaskArg.java
deleted file mode 100644
index d97fd50192572..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorCacheRebalanceCollectorTaskArg.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.node;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Argument for {@link VisorCacheRebalanceCollectorTask} task.
- */
-public class VisorCacheRebalanceCollectorTaskArg extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /**
- * Default constructor.
- */
- public VisorCacheRebalanceCollectorTaskArg() {
- // No-op.
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- // No-op.
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- // No-op.
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorCacheRebalanceCollectorTaskArg.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorCacheRebalanceCollectorTaskResult.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorCacheRebalanceCollectorTaskResult.java
deleted file mode 100644
index 1305cd2df87eb..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorCacheRebalanceCollectorTaskResult.java
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.node;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.UUID;
-import org.apache.ignite.internal.dto.IgniteDataTransferObject;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-
-/**
- * Result object for {@link VisorCacheRebalanceCollectorTask} task.
- */
-public class VisorCacheRebalanceCollectorTaskResult extends IgniteDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Rebalance state on nodes. */
- private Map rebalance = new HashMap<>();
-
- /** Nodes baseline status. */
- private Map baseline = new HashMap<>();
-
- /**
- * Default constructor.
- */
- public VisorCacheRebalanceCollectorTaskResult() {
- // No-op.
- }
-
- /**
- * @return Rebalance on nodes.
- */
- public Map getRebalance() {
- return rebalance;
- }
-
- /**
- * @return Baseline.
- */
- public Map getBaseline() {
- return baseline;
- }
-
- /**
- * Add specified results.
- *
- * @param res Results to add.
- */
- public void add(VisorCacheRebalanceCollectorTaskResult res) {
- assert res != null;
-
- rebalance.putAll(res.getRebalance());
- baseline.putAll(res.getBaseline());
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeMap(out, rebalance);
- U.writeMap(out, baseline);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- rebalance = U.readMap(in);
- baseline = U.readMap(in);
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorCacheRebalanceCollectorTaskResult.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorClientConnectorConfiguration.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorClientConnectorConfiguration.java
deleted file mode 100644
index 22704ab1fd071..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorClientConnectorConfiguration.java
+++ /dev/null
@@ -1,281 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.node;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import org.apache.ignite.configuration.ClientConnectorConfiguration;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-import org.jetbrains.annotations.Nullable;
-
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.compactClass;
-
-/**
- * Data transfer object for client connector configuration.
- */
-public class VisorClientConnectorConfiguration extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Host. */
- private String host;
-
- /** Port. */
- private int port;
-
- /** Port range. */
- private int portRange;
-
- /** Max number of opened cursors per connection. */
- private int maxOpenCursorsPerConn;
-
- /** Socket send buffer size. */
- private int sockSndBufSize;
-
- /** Socket receive buffer size. */
- private int sockRcvBufSize;
-
- /** TCP no delay. */
- private boolean tcpNoDelay;
-
- /** Thread pool size. */
- private int threadPoolSize;
-
- /** Idle timeout. */
- private long idleTimeout;
-
- /** JDBC connections enabled flag. */
- private boolean jdbcEnabled;
-
- /** ODBC connections enabled flag. */
- private boolean odbcEnabled;
-
- /** JDBC connections enabled flag. */
- private boolean thinCliEnabled;
-
- /** SSL enable flag, default is disabled. */
- private boolean sslEnabled;
-
- /** If to use SSL context factory from Ignite configuration. */
- private boolean useIgniteSslCtxFactory;
-
- /** SSL need client auth flag. */
- private boolean sslClientAuth;
-
- /** SSL connection factory class name. */
- private String sslCtxFactory;
-
- /**
- * Default constructor.
- */
- public VisorClientConnectorConfiguration() {
- // No-op.
- }
-
- /**
- * Create data transfer object for Sql connector configuration.
- *
- * @param cfg Sql connector configuration.
- */
- public VisorClientConnectorConfiguration(ClientConnectorConfiguration cfg) {
- host = cfg.getHost();
- port = cfg.getPort();
- portRange = cfg.getPortRange();
- maxOpenCursorsPerConn = cfg.getMaxOpenCursorsPerConnection();
- sockSndBufSize = cfg.getSocketSendBufferSize();
- sockRcvBufSize = cfg.getSocketReceiveBufferSize();
- tcpNoDelay = cfg.isTcpNoDelay();
- threadPoolSize = cfg.getThreadPoolSize();
- idleTimeout = cfg.getIdleTimeout();
- jdbcEnabled = cfg.isJdbcEnabled();
- odbcEnabled = cfg.isOdbcEnabled();
- thinCliEnabled = cfg.isThinClientEnabled();
- sslEnabled = cfg.isSslEnabled();
- useIgniteSslCtxFactory = cfg.isUseIgniteSslContextFactory();
- sslClientAuth = cfg.isSslClientAuth();
- sslCtxFactory = compactClass(cfg.getSslContextFactory());
- }
-
- /**
- * @return Host.
- */
- @Nullable public String getHost() {
- return host;
- }
-
- /**
- * @return Port.
- */
- public int getPort() {
- return port;
- }
-
- /**
- * @return Port range.
- */
- public int getPortRange() {
- return portRange;
- }
-
- /**
- * @return Maximum number of opened cursors.
- */
- public int getMaxOpenCursorsPerConnection() {
- return maxOpenCursorsPerConn;
- }
-
- /**
- * @return Socket send buffer size in bytes.
- */
- public int getSocketSendBufferSize() {
- return sockSndBufSize;
- }
-
- /**
- * @return Socket receive buffer size in bytes.
- */
- public int getSocketReceiveBufferSize() {
- return sockRcvBufSize;
- }
-
- /**
- * @return TCP NO_DELAY flag.
- */
- public boolean isTcpNoDelay() {
- return tcpNoDelay;
- }
-
- /**
- * @return Thread pool that is in charge of processing SQL requests.
- */
- public int getThreadPoolSize() {
- return threadPoolSize;
- }
-
- /**
- * @return Idle timeout.
- */
- public long getIdleTimeout() {
- return idleTimeout;
- }
-
- /**
- * @return JDBC connections enabled flag.
- */
- public boolean isJdbcEnabled() {
- return jdbcEnabled;
- }
-
- /**
- * @return ODBC connections enabled flag.
- */
- public boolean isOdbcEnabled() {
- return odbcEnabled;
- }
-
- /**
- * @return JDBC connections enabled flag.
- */
- public boolean isThinClientEnabled() {
- return thinCliEnabled;
- }
-
- /**
- * @return SSL enable flag, default is disabled.
- */
- public boolean isSslEnabled() {
- return sslEnabled;
- }
-
- /**
- * @return If to use SSL context factory from Ignite configuration.
- */
- public boolean isUseIgniteSslContextFactory() {
- return useIgniteSslCtxFactory;
- }
-
- /**
- * @return SSL need client auth flag.
- */
- public boolean isSslClientAuth() {
- return sslClientAuth;
- }
-
- /**
- * @return SSL connection factory.
- */
- public String getSslContextFactory() {
- return sslCtxFactory;
- }
-
- /** {@inheritDoc} */
- @Override public byte getProtocolVersion() {
- return V2;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeString(out, host);
- out.writeInt(port);
- out.writeInt(portRange);
- out.writeInt(maxOpenCursorsPerConn);
- out.writeInt(sockSndBufSize);
- out.writeInt(sockRcvBufSize);
- out.writeBoolean(tcpNoDelay);
- out.writeInt(threadPoolSize);
- out.writeLong(idleTimeout);
- out.writeBoolean(jdbcEnabled);
- out.writeBoolean(odbcEnabled);
- out.writeBoolean(thinCliEnabled);
- out.writeBoolean(sslEnabled);
- out.writeBoolean(useIgniteSslCtxFactory);
- out.writeBoolean(sslClientAuth);
- U.writeString(out, sslCtxFactory);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- host = U.readString(in);
- port = in.readInt();
- portRange = in.readInt();
- maxOpenCursorsPerConn = in.readInt();
- sockSndBufSize = in.readInt();
- sockRcvBufSize = in.readInt();
- tcpNoDelay = in.readBoolean();
- threadPoolSize = in.readInt();
-
- if (protoVer > V1) {
- idleTimeout = in.readLong();
- jdbcEnabled = in.readBoolean();
- odbcEnabled = in.readBoolean();
- thinCliEnabled = in.readBoolean();
- sslEnabled = in.readBoolean();
- useIgniteSslCtxFactory = in.readBoolean();
- sslClientAuth = in.readBoolean();
- sslCtxFactory = U.readString(in);
- }
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorClientConnectorConfiguration.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorDataRegionConfiguration.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorDataRegionConfiguration.java
deleted file mode 100644
index 179e7894fc0b8..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorDataRegionConfiguration.java
+++ /dev/null
@@ -1,238 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.node;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import java.util.ArrayList;
-import java.util.List;
-import org.apache.ignite.configuration.DataPageEvictionMode;
-import org.apache.ignite.configuration.DataRegionConfiguration;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Data transfer object for data region configuration.
- */
-public class VisorDataRegionConfiguration extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Unique name of DataRegion. */
- private String name;
-
- /** Initial memory region size defined by this memory policy. */
- private long initSize;
-
- /** Maximum memory region size defined by this memory policy. */
- private long maxSize;
-
- /** Path for memory mapped file. */
- private String swapPath;
-
- /** An algorithm for memory pages eviction. */
- private DataPageEvictionMode pageEvictionMode;
-
- /** A threshold for memory pages eviction initiation. */
- private double evictionThreshold;
-
- /** Minimum number of empty pages in reuse lists. */
- private int emptyPagesPoolSize;
-
- /** Enable memory metrics collection for this data region. */
- private boolean metricsEnabled;
-
- /** Number of sub-intervals. */
- private int metricsSubIntervalCount;
-
- /** Time interval over which allocation rate is calculated. */
- private long metricsRateTimeInterval;
-
- /** Enable Ignite Native Persistence. */
- private boolean persistenceEnabled;
-
- /** Temporary buffer size for checkpoints in bytes. */
- private long checkpointPageBufSize;
-
- /**
- * Default constructor.
- */
- public VisorDataRegionConfiguration() {
- // No-op.
- }
-
- /**
- * Constructor.
- *
- * @param plc Data region configuration.
- */
- public VisorDataRegionConfiguration(DataRegionConfiguration plc) {
- assert plc != null;
-
- name = plc.getName();
- initSize = plc.getInitialSize();
- maxSize = plc.getMaxSize();
- swapPath = plc.getSwapPath();
- pageEvictionMode = plc.getPageEvictionMode();
- evictionThreshold = plc.getEvictionThreshold();
- emptyPagesPoolSize = plc.getEmptyPagesPoolSize();
- metricsEnabled = plc.isMetricsEnabled();
- metricsSubIntervalCount = plc.getMetricsSubIntervalCount();
- metricsRateTimeInterval = plc.getMetricsRateTimeInterval();
- persistenceEnabled = plc.isPersistenceEnabled();
- checkpointPageBufSize = plc.getCheckpointPageBufferSize();
- }
-
- /**
- * @param regCfgs Array of data region configurations.
- * @return Collection of DTO objects.
- */
- public static List from(DataRegionConfiguration[] regCfgs) {
- List res = new ArrayList<>();
-
- if (regCfgs != null) {
- for (DataRegionConfiguration plc: regCfgs)
- res.add(new VisorDataRegionConfiguration(plc));
- }
-
- return res;
- }
-
- /**
- * @return Unique name of DataRegion.
- */
- public String getName() {
- return name;
- }
-
- /**
- * @return Maximum memory region size defined by this memory policy.
- */
- public long getMaxSize() {
- return maxSize;
- }
-
- /**
- * @return Initial memory region size defined by this memory policy.
- */
- public long getInitialSize() {
- return initSize;
- }
-
- /**
- * @return Path for memory mapped file.
- */
- public String getSwapPath() {
- return swapPath;
- }
-
- /**
- * @return Memory pages eviction algorithm. {@link DataPageEvictionMode#DISABLED} used by default.
- */
- public DataPageEvictionMode getPageEvictionMode() {
- return pageEvictionMode;
- }
-
- /**
- * @return Memory pages eviction threshold.
- */
- public double getEvictionThreshold() {
- return evictionThreshold;
- }
-
- /**
- * @return Minimum number of empty pages in reuse list.
- */
- public int getEmptyPagesPoolSize() {
- return emptyPagesPoolSize;
- }
-
- /**
- * @return Metrics enabled flag.
- */
- public boolean isMetricsEnabled() {
- return metricsEnabled;
- }
-
- /**
- * @return Number of sub intervals.
- */
- public int getMetricsSubIntervalCount() {
- return metricsSubIntervalCount;
- }
-
- /**
- * @return Time interval over which allocation rate is calculated.
- */
- public long getMetricsRateTimeInterval() {
- return metricsRateTimeInterval;
- }
-
- /**
- * @return Persistence enabled flag.
- */
- public boolean isPersistenceEnabled() {
- return persistenceEnabled;
- }
-
- /**
- * @return Amount of memory allocated for a checkpoint temporary buffer in bytes.
- */
- public long getCheckpointPageBufferSize() {
- return checkpointPageBufSize;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeString(out, name);
- out.writeLong(initSize);
- out.writeLong(maxSize);
- U.writeString(out, swapPath);
- U.writeEnum(out, pageEvictionMode);
- out.writeDouble(evictionThreshold);
- out.writeInt(emptyPagesPoolSize);
- out.writeBoolean(metricsEnabled);
- out.writeInt(metricsSubIntervalCount);
- out.writeLong(metricsRateTimeInterval);
- out.writeBoolean(persistenceEnabled);
- out.writeLong(checkpointPageBufSize);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- name = U.readString(in);
- initSize = in.readLong();
- maxSize = in.readLong();
- swapPath = U.readString(in);
- pageEvictionMode = DataPageEvictionMode.fromOrdinal(in.readByte());
- evictionThreshold = in.readDouble();
- emptyPagesPoolSize = in.readInt();
- metricsEnabled = in.readBoolean();
- metricsSubIntervalCount = in.readInt();
- metricsRateTimeInterval = in.readLong();
- persistenceEnabled = in.readBoolean();
- checkpointPageBufSize = in.readLong();
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorDataRegionConfiguration.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorDataStorageConfiguration.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorDataStorageConfiguration.java
deleted file mode 100644
index 8dad47ce54430..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorDataStorageConfiguration.java
+++ /dev/null
@@ -1,491 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.node;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import java.util.List;
-import org.apache.ignite.configuration.CheckpointWriteOrder;
-import org.apache.ignite.configuration.DataRegionConfiguration;
-import org.apache.ignite.configuration.DataStorageConfiguration;
-import org.apache.ignite.configuration.WALMode;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.compactClass;
-
-/**
- * Data transfer object for data store configuration.
- */
-public class VisorDataStorageConfiguration extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Size of a memory chunk reserved for system cache initially. */
- private long sysRegionInitSize;
-
- /** Size of memory for system cache. */
- private long sysRegionMaxSize;
-
- /** Page size. */
- private int pageSize;
-
- /** Concurrency level. */
- private int concLvl;
-
- /** Configuration of default data region. */
- private VisorDataRegionConfiguration dfltDataRegCfg;
-
- /** Memory policies. */
- private List dataRegCfgs;
-
- /** */
- private String storagePath;
-
- /** Checkpointing frequency. */
- private long checkpointFreq;
-
- /** Lock wait time. */
- private long lockWaitTime;
-
- /** */
- private int checkpointThreads;
-
- /** Checkpoint write order. */
- private CheckpointWriteOrder checkpointWriteOrder;
-
- /** */
- private int walHistSize;
-
- /** Number of work WAL segments. */
- private int walSegments;
-
- /** Number of WAL segments to keep. */
- private int walSegmentSize;
-
- /** WAL persistence path. */
- private String walPath;
-
- /** WAL archive path. */
- private String walArchivePath;
-
- /** Metrics enabled flag. */
- private boolean metricsEnabled;
-
- /** Wal mode. */
- private WALMode walMode;
-
- /** WAl thread local buffer size. */
- private int walTlbSize;
-
- /** Wal flush frequency. */
- private long walFlushFreq;
-
- /** Wal fsync delay in nanoseconds. */
- private long walFsyncDelay;
-
- /** Wal record iterator buffer size. */
- private int walRecordIterBuffSize;
-
- /** Always write full pages. */
- private boolean alwaysWriteFullPages;
-
- /** Factory to provide I/O interface for files */
- private String fileIOFactory;
-
- /** Number of sub-intervals. */
- private int metricsSubIntervalCount;
-
- /** Time interval (in milliseconds) for rate-based metrics. */
- private long metricsRateTimeInterval;
-
- /** Time interval of inactivity (in milliseconds) for running auto archiving for incompletely WAL segment. */
- private long walAutoArchiveAfterInactivity;
-
- /** Time interval (in milliseconds) for running auto archiving for incompletely WAL segment. */
- private long walForceArchiveTimeout;
-
- /** If true, threads that generate dirty pages too fast during ongoing checkpoint will be throttled. */
- private boolean writeThrottlingEnabled;
-
- /** Size of WAL buffer. */
- private int walBufSize;
-
- /** If true, system filters and compresses WAL archive in background. */
- private boolean walCompactionEnabled;
-
- /**
- * Default constructor.
- */
- public VisorDataStorageConfiguration() {
- // No-op.
- }
-
- /**
- * Constructor.
- *
- * @param cfg Data storage configuration.
- */
- public VisorDataStorageConfiguration(DataStorageConfiguration cfg) {
- assert cfg != null;
-
- sysRegionInitSize = cfg.getSystemDataRegionConfiguration().getInitialSize();
- sysRegionMaxSize = cfg.getSystemDataRegionConfiguration().getMaxSize();
- pageSize = cfg.getPageSize();
- concLvl = cfg.getConcurrencyLevel();
-
- DataRegionConfiguration dfltRegion = cfg.getDefaultDataRegionConfiguration();
-
- if (dfltRegion != null)
- dfltDataRegCfg = new VisorDataRegionConfiguration(dfltRegion);
-
- dataRegCfgs = VisorDataRegionConfiguration.from(cfg.getDataRegionConfigurations());
-
- storagePath = cfg.getStoragePath();
- checkpointFreq = cfg.getCheckpointFrequency();
- lockWaitTime = cfg.getLockWaitTime();
- checkpointThreads = cfg.getCheckpointThreads();
- checkpointWriteOrder = cfg.getCheckpointWriteOrder();
- walHistSize = cfg.getWalHistorySize();
- walSegments = cfg.getWalSegments();
- walSegmentSize = cfg.getWalSegmentSize();
- walPath = cfg.getWalPath();
- walArchivePath = cfg.getWalArchivePath();
- metricsEnabled = cfg.isMetricsEnabled();
- walMode = cfg.getWalMode();
- walTlbSize = cfg.getWalThreadLocalBufferSize();
- walBufSize = cfg.getWalBufferSize();
- walFlushFreq = cfg.getWalFlushFrequency();
- walFsyncDelay = cfg.getWalFsyncDelayNanos();
- walRecordIterBuffSize = cfg.getWalRecordIteratorBufferSize();
- alwaysWriteFullPages = cfg.isAlwaysWriteFullPages();
- fileIOFactory = compactClass(cfg.getFileIOFactory());
- metricsSubIntervalCount = cfg.getMetricsSubIntervalCount();
- metricsRateTimeInterval = cfg.getMetricsRateTimeInterval();
- walAutoArchiveAfterInactivity = cfg.getWalAutoArchiveAfterInactivity();
- walForceArchiveTimeout = cfg.getWalForceArchiveTimeout();
- writeThrottlingEnabled = cfg.isWriteThrottlingEnabled();
- walCompactionEnabled = cfg.isWalCompactionEnabled();
- }
-
- /**
- * @return Initial size in bytes.
- */
- public long getSystemRegionInitialSize() {
- return sysRegionInitSize;
- }
-
- /**
- * @return Maximum in bytes.
- */
- public long getSystemRegionMaxSize() {
- return sysRegionMaxSize;
- }
-
- /**
- * @return Page size in bytes.
- */
- public int getPageSize() {
- return pageSize;
- }
-
- /**
- * @return Mapping table concurrency level.
- */
- public int getConcurrencyLevel() {
- return concLvl;
- }
-
- /**
- * @return Configuration of default data region.
- */
- public VisorDataRegionConfiguration getDefaultDataRegionConfiguration() {
- return dfltDataRegCfg;
- }
-
- /**
- * @return Array of configured data regions.
- */
- public List getDataRegionConfigurations() {
- return dataRegCfgs;
- }
-
- /**
- * @return Path the root directory where the Persistent Store will persist data and indexes.
- */
- public String getStoragePath() {
- return storagePath;
- }
-
- /**
- * @return Checkpointing frequency in milliseconds.
- */
- public long getCheckpointFrequency() {
- return checkpointFreq;
- }
-
- /**
- * @return Number of checkpointing threads.
- */
- public int getCheckpointThreads() {
- return checkpointThreads;
- }
-
- /**
- * @return Checkpoint write order.
- */
- public CheckpointWriteOrder getCheckpointWriteOrder() {
- return checkpointWriteOrder;
- }
-
- /**
- * @return Time for wait.
- */
- public long getLockWaitTime() {
- return lockWaitTime;
- }
-
- /**
- * @return Number of WAL segments to keep after a checkpoint is finished.
- */
- public int getWalHistorySize() {
- return walHistSize;
- }
-
- /**
- * @return Number of work WAL segments.
- */
- public int getWalSegments() {
- return walSegments;
- }
-
- /**
- * @return WAL segment size.
- */
- public int getWalSegmentSize() {
- return walSegmentSize;
- }
-
- /**
- * @return WAL persistence path, absolute or relative to Ignite work directory.
- */
- public String getWalPath() {
- return walPath;
- }
-
- /**
- * @return WAL archive directory.
- */
- public String getWalArchivePath() {
- return walArchivePath;
- }
-
- /**
- * @return Metrics enabled flag.
- */
- public boolean isMetricsEnabled() {
- return metricsEnabled;
- }
-
- /**
- * @return Time interval in milliseconds.
- */
- public long getMetricsRateTimeInterval() {
- return metricsRateTimeInterval;
- }
-
- /**
- * @return The number of sub-intervals for history tracking.
- */
- public int getMetricsSubIntervalCount() {
- return metricsSubIntervalCount;
- }
-
- /**
- * @return WAL mode.
- */
- public WALMode getWalMode() {
- return walMode;
- }
-
- /**
- * @return Thread local buffer size.
- */
- public int getWalThreadLocalBufferSize() {
- return walTlbSize;
- }
-
- /**
- * @return Flush frequency.
- */
- public long getWalFlushFrequency() {
- return walFlushFreq;
- }
-
- /**
- * @return Gets the fsync delay, in nanoseconds.
- */
- public long getWalFsyncDelayNanos() {
- return walFsyncDelay;
- }
-
- /**
- * @return Record iterator buffer size.
- */
- public int getWalRecordIteratorBufferSize() {
- return walRecordIterBuffSize;
- }
-
- /**
- * @return Flag indicating whether full pages should be always written.
- */
- public boolean isAlwaysWriteFullPages() {
- return alwaysWriteFullPages;
- }
-
- /**
- * @return File I/O factory class name.
- */
- public String getFileIOFactory() {
- return fileIOFactory;
- }
-
- /**
- * @return Time in millis.
- */
- public long getWalAutoArchiveAfterInactivity() {
- return walAutoArchiveAfterInactivity;
- }
-
- /**
- * @return Time in millis.
- */
- public long getWalForceArchiveTimeout() {
- return walForceArchiveTimeout;
- }
-
- /**
- * @return Flag indicating whether write throttling is enabled.
- */
- public boolean isWriteThrottlingEnabled() {
- return writeThrottlingEnabled;
- }
-
- /**
- * @return Size of WAL buffer.
- */
- public int getWalBufferSize() {
- return walBufSize;
- }
-
- /**
- * @return If true, system filters and compresses WAL archive in background
- */
- public boolean isWalCompactionEnabled() {
- return walCompactionEnabled;
- }
-
- /** {@inheritDoc} */
- @Override public byte getProtocolVersion() {
- return V2;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- out.writeLong(sysRegionInitSize);
- out.writeLong(sysRegionMaxSize);
- out.writeInt(pageSize);
- out.writeInt(concLvl);
- out.writeObject(dfltDataRegCfg);
- U.writeCollection(out, dataRegCfgs);
- U.writeString(out, storagePath);
- out.writeLong(checkpointFreq);
- out.writeLong(lockWaitTime);
- out.writeLong(0); // Write stub for removed checkpointPageBufSize.
- out.writeInt(checkpointThreads);
- U.writeEnum(out, checkpointWriteOrder);
- out.writeInt(walHistSize);
- out.writeInt(walSegments);
- out.writeInt(walSegmentSize);
- U.writeString(out, walPath);
- U.writeString(out, walArchivePath);
- out.writeBoolean(metricsEnabled);
- U.writeEnum(out, walMode);
- out.writeInt(walTlbSize);
- out.writeLong(walFlushFreq);
- out.writeLong(walFsyncDelay);
- out.writeInt(walRecordIterBuffSize);
- out.writeBoolean(alwaysWriteFullPages);
- U.writeString(out, fileIOFactory);
- out.writeInt(metricsSubIntervalCount);
- out.writeLong(metricsRateTimeInterval);
- out.writeLong(walAutoArchiveAfterInactivity);
- out.writeBoolean(writeThrottlingEnabled);
- out.writeInt(walBufSize);
- out.writeBoolean(walCompactionEnabled);
- out.writeLong(walForceArchiveTimeout);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- sysRegionInitSize = in.readLong();
- sysRegionMaxSize = in.readLong();
- pageSize = in.readInt();
- concLvl = in.readInt();
- dfltDataRegCfg = (VisorDataRegionConfiguration)in.readObject();
- dataRegCfgs = U.readList(in);
- storagePath = U.readString(in);
- checkpointFreq = in.readLong();
- lockWaitTime = in.readLong();
- in.readLong(); // Read stub for removed checkpointPageBufSize.
- checkpointThreads = in.readInt();
- checkpointWriteOrder = CheckpointWriteOrder.fromOrdinal(in.readByte());
- walHistSize = in.readInt();
- walSegments = in.readInt();
- walSegmentSize = in.readInt();
- walPath = U.readString(in);
- walArchivePath = U.readString(in);
- metricsEnabled = in.readBoolean();
- walMode = WALMode.fromOrdinal(in.readByte());
- walTlbSize = in.readInt();
- walFlushFreq = in.readLong();
- walFsyncDelay = in.readLong();
- walRecordIterBuffSize = in.readInt();
- alwaysWriteFullPages = in.readBoolean();
- fileIOFactory = U.readString(in);
- metricsSubIntervalCount = in.readInt();
- metricsRateTimeInterval = in.readLong();
- walAutoArchiveAfterInactivity = in.readLong();
- writeThrottlingEnabled = in.readBoolean();
-
- if (protoVer > V1) {
- walBufSize = in.readInt();
- walCompactionEnabled = in.readBoolean();
- }
-
- if (protoVer >= V5)
- walForceArchiveTimeout = in.readLong();
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorDataStorageConfiguration.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorExecutorConfiguration.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorExecutorConfiguration.java
deleted file mode 100644
index 82eaf0b937ebb..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorExecutorConfiguration.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.node;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import java.util.ArrayList;
-import java.util.List;
-import org.apache.ignite.configuration.ExecutorConfiguration;
-import org.apache.ignite.internal.util.typedef.F;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Data transfer object for configuration of executor data structures.
- */
-public class VisorExecutorConfiguration extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Thread pool name. */
- private String name;
-
- /** Thread pool size. */
- private int size;
-
- /**
- * Construct data transfer object for Executor configurations properties.
- *
- * @param cfgs Executor configurations.
- * @return Executor configurations properties.
- */
- public static List list(ExecutorConfiguration[] cfgs) {
- List res = new ArrayList<>();
-
- if (!F.isEmpty(cfgs)) {
- for (ExecutorConfiguration cfg : cfgs)
- res.add(new VisorExecutorConfiguration(cfg));
- }
-
- return res;
- }
-
- /**
- * Default constructor.
- */
- public VisorExecutorConfiguration() {
- // No-op.
- }
-
- /**
- * Create data transfer object for executor configuration.
- *
- * @param src Executor configuration.
- */
- public VisorExecutorConfiguration(ExecutorConfiguration src) {
- name = src.getName();
- size = src.getSize();
- }
-
- /**
- * @return Executor name.
- */
- public String getName() {
- return name;
- }
-
- /**
- * @return Thread pool size.
- */
- public int getSize() {
- return size;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- U.writeString(out, name);
- out.writeInt(size);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- name = U.readString(in);
- size = in.readInt();
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorExecutorConfiguration.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorExecutorServiceConfiguration.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorExecutorServiceConfiguration.java
deleted file mode 100644
index 8fa023f6ba7a1..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorExecutorServiceConfiguration.java
+++ /dev/null
@@ -1,269 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.node;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import java.util.List;
-import org.apache.ignite.configuration.ClientConnectorConfiguration;
-import org.apache.ignite.configuration.ConnectorConfiguration;
-import org.apache.ignite.configuration.IgniteConfiguration;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-/**
- * Data transfer object for node executors configuration properties.
- */
-public class VisorExecutorServiceConfiguration extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Public pool size. */
- private int pubPoolSize;
-
- /** System pool size. */
- private int sysPoolSz;
-
- /** Management pool size. */
- private int mgmtPoolSize;
-
- /** IGFS pool size. */
- private int igfsPoolSize;
-
- /** Peer-to-peer pool size. */
- private int p2pPoolSz;
-
- /** Rebalance thread pool size. */
- private int rebalanceThreadPoolSize;
-
- /** REST requests pool size. */
- private int restPoolSz;
-
- /** Async Callback pool size. */
- private int cbPoolSize;
-
- /** Data stream pool size. */
- private int dataStreamerPoolSize;
-
- /** Query pool size. */
- private int qryPoolSize;
-
- /** Use striped pool for internal requests processing when possible */
- private int stripedPoolSize;
-
- /** Service pool size. */
- private int svcPoolSize;
-
- /** Utility cache pool size. */
- private int utilityCachePoolSize;
-
- /** Client connector configuration pool size. */
- private int cliConnCfgPoolSize;
-
- /** List of executor configurations. */
- private List executors;
-
- /**
- * Default constructor.
- */
- public VisorExecutorServiceConfiguration() {
- // No-op.
- }
-
- /**
- * Create data transfer object for node executors configuration properties.
- *
- * @param c Grid configuration.
- */
- public VisorExecutorServiceConfiguration(IgniteConfiguration c) {
- pubPoolSize = c.getPublicThreadPoolSize();
- sysPoolSz = c.getSystemThreadPoolSize();
- mgmtPoolSize = c.getManagementThreadPoolSize();
- p2pPoolSz = c.getPeerClassLoadingThreadPoolSize();
- rebalanceThreadPoolSize = c.getRebalanceThreadPoolSize();
-
- ConnectorConfiguration cc = c.getConnectorConfiguration();
-
- if (cc != null)
- restPoolSz = cc.getThreadPoolSize();
-
- cbPoolSize = c.getAsyncCallbackPoolSize();
- dataStreamerPoolSize = c.getDataStreamerThreadPoolSize();
- qryPoolSize = c.getQueryThreadPoolSize();
- stripedPoolSize = c.getStripedPoolSize();
- svcPoolSize = c.getServiceThreadPoolSize();
- utilityCachePoolSize = c.getUtilityCacheThreadPoolSize();
-
- ClientConnectorConfiguration scc = c.getClientConnectorConfiguration();
-
- if (scc != null)
- cliConnCfgPoolSize = scc.getThreadPoolSize();
-
- executors = VisorExecutorConfiguration.list(c.getExecutorConfiguration());
- }
-
- /**
- * @return Public pool size.
- */
- public int getPublicThreadPoolSize() {
- return pubPoolSize;
- }
-
- /**
- * @return System pool size.
- */
- public int getSystemThreadPoolSize() {
- return sysPoolSz;
- }
-
- /**
- * @return Management pool size.
- */
- public int getManagementThreadPoolSize() {
- return mgmtPoolSize;
- }
-
- /**
- * @return IGFS pool size.
- */
- public int getIgfsThreadPoolSize() {
- return igfsPoolSize;
- }
-
- /**
- * @return Peer-to-peer pool size.
- */
- public int getPeerClassLoadingThreadPoolSize() {
- return p2pPoolSz;
- }
-
- /**
- * @return Rebalance thread pool size.
- */
- public int getRebalanceThreadPoolSize() {
- return rebalanceThreadPoolSize;
- }
-
- /**
- * @return REST requests pool size.
- */
- public int getRestThreadPoolSize() {
- return restPoolSz;
- }
-
- /**
- * @return Thread pool size to be used for processing of asynchronous callbacks.
- */
- public int getCallbackPoolSize() {
- return cbPoolSize;
- }
-
- /**
- * @return Thread pool size to be used for data stream messages.
- */
- public int getDataStreamerPoolSize() {
- return dataStreamerPoolSize;
- }
-
- /**
- * @return Thread pool size to be used in grid for query messages.
- */
- public int getQueryThreadPoolSize() {
- return qryPoolSize;
- }
-
- /**
- * @return The number of threads (stripes) to be used for requests processing.
- */
- public int getStripedPoolSize() {
- return stripedPoolSize;
- }
-
- /**
- * @return Thread pool size to be used in grid to process service proxy invocations.
- */
- public int getServiceThreadPoolSize() {
- return svcPoolSize;
- }
-
- /**
- * @return Thread pool size to be used in grid for utility cache messages.
- */
- public int getUtilityCacheThreadPoolSize() {
- return utilityCachePoolSize;
- }
-
- /**
- * @return Thread pool that is in charge of processing ODBC tasks.
- */
- public int getClientConnectorConfigurationThreadPoolSize() {
- return cliConnCfgPoolSize;
- }
-
- /**
- * @return List of executor configurations.
- */
- public List getExecutors() {
- return executors;
- }
-
- /** {@inheritDoc} */
- @Override protected void writeExternalData(ObjectOutput out) throws IOException {
- out.writeInt(pubPoolSize);
- out.writeInt(sysPoolSz);
- out.writeInt(mgmtPoolSize);
- out.writeInt(igfsPoolSize);
- out.writeInt(p2pPoolSz);
- out.writeInt(rebalanceThreadPoolSize);
- out.writeInt(restPoolSz);
- out.writeInt(cbPoolSize);
- out.writeInt(dataStreamerPoolSize);
- out.writeInt(qryPoolSize);
- out.writeInt(stripedPoolSize);
- out.writeInt(svcPoolSize);
- out.writeInt(utilityCachePoolSize);
- out.writeInt(cliConnCfgPoolSize);
- U.writeCollection(out, executors);
- }
-
- /** {@inheritDoc} */
- @Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
- pubPoolSize = in.readInt();
- sysPoolSz = in.readInt();
- mgmtPoolSize = in.readInt();
- igfsPoolSize = in.readInt();
- p2pPoolSz = in.readInt();
- rebalanceThreadPoolSize = in.readInt();
- restPoolSz = in.readInt();
- cbPoolSize = in.readInt();
- dataStreamerPoolSize = in.readInt();
- qryPoolSize = in.readInt();
- stripedPoolSize = in.readInt();
- svcPoolSize = in.readInt();
- utilityCachePoolSize = in.readInt();
- cliConnCfgPoolSize = in.readInt();
- executors = U.readList(in);
- }
-
- /** {@inheritDoc} */
- @Override public String toString() {
- return S.toString(VisorExecutorServiceConfiguration.class, this);
- }
-}
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorGridConfiguration.java b/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorGridConfiguration.java
deleted file mode 100644
index 17997aa57345d..0000000000000
--- a/modules/core/src/main/java/org/apache/ignite/internal/visor/node/VisorGridConfiguration.java
+++ /dev/null
@@ -1,470 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.ignite.internal.visor.node;
-
-import java.io.IOException;
-import java.io.ObjectInput;
-import java.io.ObjectOutput;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Properties;
-import org.apache.ignite.IgniteSystemProperties;
-import org.apache.ignite.configuration.BinaryConfiguration;
-import org.apache.ignite.configuration.ClientConnectorConfiguration;
-import org.apache.ignite.configuration.DataStorageConfiguration;
-import org.apache.ignite.configuration.IgniteConfiguration;
-import org.apache.ignite.internal.IgniteEx;
-import org.apache.ignite.internal.util.typedef.internal.S;
-import org.apache.ignite.internal.util.typedef.internal.U;
-import org.apache.ignite.internal.visor.VisorDataTransferObject;
-
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.compactArray;
-import static org.apache.ignite.internal.visor.util.VisorTaskUtils.compactClass;
-
-/**
- * Data transfer object for node configuration data.
- */
-public class VisorGridConfiguration extends VisorDataTransferObject {
- /** */
- private static final long serialVersionUID = 0L;
-
- /** Basic. */
- private VisorBasicConfiguration basic;
-
- /** Metrics. */
- private VisorMetricsConfiguration metrics;
-
- /** SPIs. */
- private VisorSpisConfiguration spis;
-
- /** P2P. */
- private VisorPeerToPeerConfiguration p2p;
-
- /** Lifecycle. */
- private VisorLifecycleConfiguration lifecycle;
-
- /** Executors service configuration. */
- private VisorExecutorServiceConfiguration execSvc;
-
- /** Segmentation. */
- private VisorSegmentationConfiguration seg;
-
- /** Include properties. */
- private String inclProps;
-
- /** Include events types. */
- private int[] inclEvtTypes;
-
- /** REST configuration. */
- private VisorRestConfiguration rest;
-
- /** User attributes. */
- private Map userAttrs;
-
- /** IGFSs. */
- private List igfss;
-
- /** Environment. */
- private Map env;
-
- /** System properties. */
- private Properties sysProps;
-
- /** Configuration of atomic data structures. */
- private VisorAtomicConfiguration atomic;
-
- /** Transactions configuration. */
- private VisorTransactionConfiguration txCfg;
-
- /** Memory configuration. */
- private VisorMemoryConfiguration memCfg;
-
- /** Persistence configuration. */
- private VisorPersistentStoreConfiguration psCfg;
-
- /** Cache store session listeners. */
- private String storeSesLsnrs;
-
- /** Warmup closure. Will be invoked before actual grid start. */
- private String warmupClos;
-
- /** Binary configuration. */
- private VisorBinaryConfiguration binaryCfg;
-
- /** List of cache key configurations. */
- private List