/*
* 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.
*/packageorg.apache.dolphinscheduler.remote.command;publicenumCommandType{/**
* roll view log request
*/ROLL_VIEW_LOG_REQUEST,/**
* roll view log response
*/ROLL_VIEW_LOG_RESPONSE,/**
* view whole log request
*/VIEW_WHOLE_LOG_REQUEST,/**
* view whole log response
*/VIEW_WHOLE_LOG_RESPONSE,/**
* get log bytes request
*/GET_LOG_BYTES_REQUEST,/**
* get log bytes response
*/GET_LOG_BYTES_RESPONSE,WORKER_REQUEST,MASTER_RESPONSE,/**
* execute task request
*/EXECUTE_TASK_REQUEST,/**
* execute task ack
*/EXECUTE_TASK_ACK,/**
* execute task response
*/EXECUTE_TASK_RESPONSE,/**
* ping
*/PING,/**
* pong
*/PONG;}
\ No newline at end of file
/*
* 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.
*/packageorg.apache.dolphinscheduler.remote.command;publicenumCommandType{/**
* roll view log request
*/ROLL_VIEW_LOG_REQUEST,/**
* roll view log response
*/ROLL_VIEW_LOG_RESPONSE,/**
* view whole log request
*/VIEW_WHOLE_LOG_REQUEST,/**
* view whole log response
*/VIEW_WHOLE_LOG_RESPONSE,/**
* get log bytes request
*/GET_LOG_BYTES_REQUEST,/**
* get log bytes response
*/GET_LOG_BYTES_RESPONSE,WORKER_REQUEST,MASTER_RESPONSE,/**
* execute task request
*/EXECUTE_TASK_REQUEST,/**
* execute task ack
*/EXECUTE_TASK_ACK,/**
* execute task response
*/EXECUTE_TASK_RESPONSE,/**
* kill task
*/KILL_TASK_REQUEST,/**
* kill task response
*/KILL_TASK_RESPONSE,/**
* ping
*/PING,/**
* pong
*/PONG;}
/*
* 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.
*/packageorg.apache.dolphinscheduler.remote.command;importorg.apache.dolphinscheduler.remote.utils.FastJsonSerializer;importjava.io.Serializable;/**
* kill task request command
*/publicclassKillTaskRequestCommandimplementsSerializable{privateinttaskInstanceId;privateintprocessId;privateStringhost;privateStringtenantCode;privateStringlogPath;privateStringexecutePath;publicStringgetLogPath(){returnlogPath;}publicvoidsetLogPath(StringlogPath){this.logPath=logPath;}publicintgetTaskInstanceId(){returntaskInstanceId;}publicvoidsetTaskInstanceId(inttaskInstanceId){this.taskInstanceId=taskInstanceId;}publicintgetProcessId(){returnprocessId;}publicvoidsetProcessId(intprocessId){this.processId=processId;}publicStringgetHost(){returnhost;}publicvoidsetHost(Stringhost){this.host=host;}publicStringgetTenantCode(){returntenantCode;}publicvoidsetTenantCode(StringtenantCode){this.tenantCode=tenantCode;}publicStringgetExecutePath(){returnexecutePath;}publicvoidsetExecutePath(StringexecutePath){this.executePath=executePath;}/**
* package request command
*
* @return command
*/publicCommandconvert2Command(){Commandcommand=newCommand();command.setType(CommandType.KILL_TASK_REQUEST);byte[]body=FastJsonSerializer.serialize(this);command.setBody(body);returncommand;}}