NSAmelchev commented on code in PR #13420: URL: https://github.com/apache/ignite/pull/13420#discussion_r3720147309
########## modules/core/src/main/java/org/apache/ignite/internal/management/kill/KillAllCommandArg.java: ########## @@ -0,0 +1,122 @@ +/* + * 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.management.kill; + +import java.util.UUID; +import org.apache.ignite.internal.Order; +import org.apache.ignite.internal.dto.IgniteDataTransferObject; +import org.apache.ignite.internal.management.api.Argument; +import org.apache.ignite.internal.management.api.EnumDescription; +import org.apache.ignite.internal.management.api.Positional; +import org.apache.ignite.internal.util.typedef.internal.A; + +/** + * Argument for --kill all command. + */ +public class KillAllCommandArg extends IgniteDataTransferObject { + /** */ + private static final long serialVersionUID = 0L; + + /** Target type. */ + @Order(0) + @Positional + @Argument() + @EnumDescription( + names = { + "SQL", + "SCAN", + "CONTUNUOUS" + }, + descriptions = { + "SQL queries", + "SCAN queries", + "CONTUNUOUS queries" + } + ) + TargetType target; + + /** Node ID to filter targets. */ + @Order(1) + @Argument(description = "Originating node ID to filter targets", optional = true) + UUID nodeId; + + /** Minimum duration in seconds. */ + @Order(2) + @Argument(description = "Minimum duration in seconds", example = "60", optional = true) + Long minDuration; + + /** + * Target type enum. + */ + public enum TargetType { Review Comment: QueryType? -- 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]
