func (as *AgentServer) handleStatus(getStatusRequest *cmd.GetStatusRequest) *cmd.GetStatusResponse { requestId := getStatusRequest.GetStartRequestHash() stat := as.localExecutorManager.getExecutorStatus(requestId) reply := &cmd.GetStatusResponse{ StartRequestHash: proto.Int32(requestId), RequestTime: proto.Int64(stat.RequestTime.Unix()), StartTime: proto.Int64(stat.StartTime.Unix()), StopTime: proto.Int64(stat.StopTime.Unix()), } return reply }
func (as *AgentServer) handleGetStatusRequest(getStatusRequest *cmd.GetStatusRequest) *cmd.GetStatusResponse { requestId := getStatusRequest.GetStartRequestHash() stat := as.localExecutorManager.getExecutorStatus(requestId) reply := &cmd.GetStatusResponse{ StartRequestHash: proto.Uint32(requestId), InputStatuses: driver.ToProto(stat.InputChannelStatuses), OutputStatuses: driver.ToProto(stat.OutputChannelStatuses), RequestTime: proto.Int64(stat.RequestTime.Unix()), StartTime: proto.Int64(stat.StartTime.Unix()), StopTime: proto.Int64(stat.StopTime.Unix()), } return reply }