Back to project page couchdroid.
The source code is released under:
Apache License
If you think the Android project couchdroid listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
/** * Copyright (c) 2011 Cummings Engineering Consultants, Inc. * /*ww w .j a va 2s. co m*/ * Licensed 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 census.couchdroid; /** * This class encapsulates the data for a task running on a couch server (as returned from the query to "_active_tasks") * * @author anthony.payne * */ public class CouchTask { /** Key of JSON field for the task type */ public static final String TASK_TYPE_KEY = "type"; /** Key of the JSON field for the task */ public static final String TASK_TASK_KEY = "task"; /** Key for the JSON field for the status of the task */ public static final String TASK_STATUS_KEY = "status"; /** Key for the JSON field for the pid field of the task */ public static final String TASK_PID_KEY = "pid"; /** Type of task */ protected String type; /** Details of the task */ protected String task; /** Status of the task */ protected String status; /** PID of the task */ protected String pid; /** * @param type Type of task * @param task Task details * @param status Status of task * @param pid PID of task */ public CouchTask(final String type, final String task, final String status, final String pid) { this.type = type; this.task = task; this.status = status; this.pid = pid; } /** * @return the type */ public String getType() { return type; } /** * @return the task */ public String getTask() { return task; } /** * @return the status */ public String getStatus() { return status; } /** * @return the pid */ public String getPid() { return pid; } }