/*
* 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;importjava.util.Date;/**
* execute task request command
*/publicclassExecuteTaskAckCommandimplementsSerializable{privateinttaskInstanceId;privateDatestartTime;privateStringhost;privateintstatus;privateStringlogPath;privateStringexecutePath;publicDategetStartTime(){returnstartTime;}publicvoidsetStartTime(DatestartTime){this.startTime=startTime;}publicStringgetHost(){returnhost;}publicvoidsetHost(Stringhost){this.host=host;}publicintgetStatus(){returnstatus;}publicvoidsetStatus(intstatus){this.status=status;}publicintgetTaskInstanceId(){returntaskInstanceId;}publicvoidsetTaskInstanceId(inttaskInstanceId){this.taskInstanceId=taskInstanceId;}publicStringgetLogPath(){returnlogPath;}publicvoidsetLogPath(StringlogPath){this.logPath=logPath;}publicStringgetExecutePath(){returnexecutePath;}publicvoidsetExecutePath(StringexecutePath){this.executePath=executePath;}/**
* package request command
*
* @return command
*/publicCommandconvert2Command(longopaque){Commandcommand=newCommand(opaque);command.setType(CommandType.EXECUTE_TASK_ACK);byte[]body=FastJsonSerializer.serialize(this);command.setBody(body);returncommand;}}
\ 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;importorg.apache.dolphinscheduler.remote.utils.FastJsonSerializer;importjava.io.Serializable;importjava.util.Date;/**
* execute task request command
*/publicclassExecuteTaskAckCommandimplementsSerializable{privateinttaskInstanceId;privateDatestartTime;privateStringhost;privateintstatus;privateStringlogPath;privateStringexecutePath;publicDategetStartTime(){returnstartTime;}publicvoidsetStartTime(DatestartTime){this.startTime=startTime;}publicStringgetHost(){returnhost;}publicvoidsetHost(Stringhost){this.host=host;}publicintgetStatus(){returnstatus;}publicvoidsetStatus(intstatus){this.status=status;}publicintgetTaskInstanceId(){returntaskInstanceId;}publicvoidsetTaskInstanceId(inttaskInstanceId){this.taskInstanceId=taskInstanceId;}publicStringgetLogPath(){returnlogPath;}publicvoidsetLogPath(StringlogPath){this.logPath=logPath;}publicStringgetExecutePath(){returnexecutePath;}publicvoidsetExecutePath(StringexecutePath){this.executePath=executePath;}/**
* package request command
*
* @return command
*/publicCommandconvert2Command(longopaque){Commandcommand=newCommand(opaque);command.setType(CommandType.EXECUTE_TASK_ACK);byte[]body=FastJsonSerializer.serialize(this);command.setBody(body);returncommand;}@OverridepublicStringtoString(){return"ExecuteTaskAckCommand{"+"taskInstanceId="+taskInstanceId+", startTime="+startTime+", host='"+host+'\''+", status="+status+", logPath='"+logPath+'\''+", executePath='"+executePath+'\''+'}';}}
/*
* 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;/**
* execute task request command
*/publicclassExecuteTaskRequestCommandimplementsSerializable{/**
* package request command
*
* @return command
*/publicCommandconvert2Command(){Commandcommand=newCommand();command.setType(CommandType.EXECUTE_TASK_REQUEST);byte[]body=FastJsonSerializer.serialize(this);command.setBody(body);returncommand;}}
\ 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;importorg.apache.dolphinscheduler.remote.utils.FastJsonSerializer;importjava.io.Serializable;/**
* execute task request command
*/publicclassExecuteTaskRequestCommandimplementsSerializable{/**
* task instance json
*/privateStringtaskInstanceJson;publicStringgetTaskInstanceJson(){returntaskInstanceJson;}publicvoidsetTaskInstanceJson(StringtaskInstanceJson){this.taskInstanceJson=taskInstanceJson;}publicExecuteTaskRequestCommand(){}publicExecuteTaskRequestCommand(StringtaskInstanceJson){this.taskInstanceJson=taskInstanceJson;}/**
* package request command
*
* @return command
*/publicCommandconvert2Command(){Commandcommand=newCommand();command.setType(CommandType.EXECUTE_TASK_REQUEST);byte[]body=FastJsonSerializer.serialize(this);command.setBody(body);returncommand;}@OverridepublicStringtoString(){return"ExecuteTaskRequestCommand{"+"taskInstanceJson='"+taskInstanceJson+'\''+'}';}}
/*
* 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;importjava.util.Date;/**
* execute task response command
*/publicclassExecuteTaskResponseCommandimplementsSerializable{publicExecuteTaskResponseCommand(){}publicExecuteTaskResponseCommand(inttaskInstanceId){this.taskInstanceId=taskInstanceId;}/**
* task instance id
*/privateinttaskInstanceId;/**
* status
*/privateintstatus;/**
* end time
*/privateDateendTime;publicintgetTaskInstanceId(){returntaskInstanceId;}publicvoidsetTaskInstanceId(inttaskInstanceId){this.taskInstanceId=taskInstanceId;}publicintgetStatus(){returnstatus;}publicvoidsetStatus(intstatus){this.status=status;}publicDategetEndTime(){returnendTime;}publicvoidsetEndTime(DateendTime){this.endTime=endTime;}publicCommandconvert2Command(){Commandcommand=newCommand();command.setType(CommandType.EXECUTE_TASK_RESPONSE);byte[]body=FastJsonSerializer.serialize(this);command.setBody(body);returncommand;}}
\ 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;importorg.apache.dolphinscheduler.remote.utils.FastJsonSerializer;importjava.io.Serializable;importjava.util.Date;/**
* execute task response command
*/publicclassExecuteTaskResponseCommandimplementsSerializable{publicExecuteTaskResponseCommand(){}publicExecuteTaskResponseCommand(inttaskInstanceId){this.taskInstanceId=taskInstanceId;}/**
* task instance id
*/privateinttaskInstanceId;/**
* status
*/privateintstatus;/**
* end time
*/privateDateendTime;publicintgetTaskInstanceId(){returntaskInstanceId;}publicvoidsetTaskInstanceId(inttaskInstanceId){this.taskInstanceId=taskInstanceId;}publicintgetStatus(){returnstatus;}publicvoidsetStatus(intstatus){this.status=status;}publicDategetEndTime(){returnendTime;}publicvoidsetEndTime(DateendTime){this.endTime=endTime;}/**
* package response command
*
* @param opaque request unique identification
* @return command
*/publicCommandconvert2Command(longopaque){Commandcommand=newCommand(opaque);command.setType(CommandType.EXECUTE_TASK_RESPONSE);byte[]body=FastJsonSerializer.serialize(this);command.setBody(body);returncommand;}}