/*
* 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;importcom.fasterxml.jackson.annotation.JsonFormat;importorg.apache.dolphinscheduler.remote.utils.JsonSerializer;importjava.io.Serializable;importjava.util.Date;/**
* execute task request command
*/publicclassTaskExecuteAckCommandimplementsSerializable{/**
* taskInstanceId
*/privateinttaskInstanceId;/**
* startTime
*/@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")privateDatestartTime;/**
* host
*/privateStringhost;/**
* status
*/privateintstatus;/**
* logPath
*/privateStringlogPath;/**
* executePath
*/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(){Commandcommand=newCommand();command.setType(CommandType.TASK_EXECUTE_ACK);byte[]body=JsonSerializer.serialize(this);command.setBody(body);returncommand;}@OverridepublicStringtoString(){return"TaskExecuteAckCommand{"+"taskInstanceId="+taskInstanceId+", startTime="+startTime+", host='"+host+'\''+", status="+status+", logPath='"+logPath+'\''+", executePath='"+executePath+'\''+'}';}}
\ 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
/*
* 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.JsonSerializer;importjava.io.Serializable;/**
* execute task request command
*/publicclassTaskExecuteRequestCommandimplementsSerializable{/**
* task execution context
*/privateStringtaskExecutionContext;publicStringgetTaskExecutionContext(){returntaskExecutionContext;}publicvoidsetTaskExecutionContext(StringtaskExecutionContext){this.taskExecutionContext=taskExecutionContext;}publicTaskExecuteRequestCommand(){}publicTaskExecuteRequestCommand(StringtaskExecutionContext){this.taskExecutionContext=taskExecutionContext;}/**
* package request command
*
* @return command
*/publicCommandconvert2Command(){Commandcommand=newCommand();command.setType(CommandType.TASK_EXECUTE_REQUEST);byte[]body=JsonSerializer.serialize(this);command.setBody(body);returncommand;}@OverridepublicStringtoString(){return"TaskExecuteRequestCommand{"+"taskExecutionContext='"+taskExecutionContext+'\''+'}';}}
\ 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
/*
* 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;importcom.fasterxml.jackson.annotation.JsonFormat;importorg.apache.dolphinscheduler.remote.utils.JsonSerializer;importjava.io.Serializable;importjava.util.Date;/**
* execute task response command
*/publicclassTaskExecuteResponseCommandimplementsSerializable{publicTaskExecuteResponseCommand(){}publicTaskExecuteResponseCommand(inttaskInstanceId){this.taskInstanceId=taskInstanceId;}/**
* task instance id
*/privateinttaskInstanceId;/**
* status
*/privateintstatus;/**
* end time
*/@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")privateDateendTime;/**
* processId
*/privateintprocessId;/**
* appIds
*/privateStringappIds;publicintgetTaskInstanceId(){returntaskInstanceId;}publicvoidsetTaskInstanceId(inttaskInstanceId){this.taskInstanceId=taskInstanceId;}publicintgetStatus(){returnstatus;}publicvoidsetStatus(intstatus){this.status=status;}publicDategetEndTime(){returnendTime;}publicvoidsetEndTime(DateendTime){this.endTime=endTime;}publicintgetProcessId(){returnprocessId;}publicvoidsetProcessId(intprocessId){this.processId=processId;}publicStringgetAppIds(){returnappIds;}publicvoidsetAppIds(StringappIds){this.appIds=appIds;}/**
* package response command
* @return command
*/publicCommandconvert2Command(){Commandcommand=newCommand();command.setType(CommandType.TASK_EXECUTE_RESPONSE);byte[]body=JsonSerializer.serialize(this);command.setBody(body);returncommand;}@OverridepublicStringtoString(){return"TaskExecuteResponseCommand{"+"taskInstanceId="+taskInstanceId+", status="+status+", endTime="+endTime+", processId="+processId+", appIds='"+appIds+'\''+'}';}}
\ 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