Sega76 commented on a change in pull request #9422: URL: https://github.com/apache/ignite/pull/9422#discussion_r795394916
########## File path: modules/core/src/main/java/org/apache/ignite/spi/systemview/view/SnapshotView.java ########## @@ -0,0 +1,112 @@ +/* + * 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.spi.systemview.view; + +import java.util.Objects; +import org.apache.ignite.internal.managers.systemview.walker.Filtrable; +import org.apache.ignite.internal.managers.systemview.walker.Order; + +/** + * Snapshot representation for a {@link SystemView}. + */ +public class SnapshotView { + /** Snapshot name. */ + private final String name; + + /** Node consistent id. */ + private final String nodeId; + + /** Baseline nodes affected by snapshots. */ + private final String baselineNodes; + + /** Cache group names that were included in the snapshot. */ + private final String cacheGrps; + + /** + * @param name Snapshot name. + * @param nodeId Node consistent id. + * @param baselineNodes Baseline nodes affected by snapshots. + * @param cacheGrps Cache group names that were included in the snapshot. + */ + public SnapshotView( + String name, + String nodeId, + String baselineNodes, + String cacheGrps + ) { + this.name = name; + this.nodeId = nodeId; + this.baselineNodes = baselineNodes; + this.cacheGrps = cacheGrps; + } + + /** + * @return Snapshot name. + */ + @Order + @Filtrable + public String snapshotName() { + return name; + } + + /** + * @return Node consistent id. + */ + @Order(1) + @Filtrable + public String nodeId() { + return nodeId; + } + + /** + * @return Baseline nodes affected by snapshots. + */ + @Order(2) + @Filtrable + public String baselineNodes() { + return baselineNodes; + } + + /** + * @return Cache group names that were included in the snapshot. + */ + @Order(3) + public String cacheGroups() { + return cacheGrps; + } + + /** {@inheritDoc} */ + @Override public boolean equals(Object o) { Review comment: removed it -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
