content: /*
   * 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.
   */
  
  //
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 
  // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2012.04.20 at 02:14:09 ���� CST 
  //
  
  
  package com.aliyun.odps.task;
  
  import com.aliyun.odps.Instance;
  import com.aliyun.odps.Odps;
  import com.aliyun.odps.OdpsException;
  import com.aliyun.odps.Task;
  import com.aliyun.odps.simpleframework.xml.Element;
  import com.aliyun.odps.simpleframework.xml.Root;
  
  /**
   * <p>Java class for GraphType complex type.
   *
   * <p>The following schema fragment specifies the expected content contained within this class.
   *
   * <pre>
   * &lt;complexType name="GraphType">
   *   &lt;complexContent>
   *     &lt;extension base="{}TaskBase">
   *       &lt;sequence>
   *         &lt;element name="JobConf" type="{}propertiesType"/>
   *       &lt;/sequence>
   *     &lt;/extension>
   *   &lt;/complexContent>
   * &lt;/complexType>
   * </pre>
   */
  
  @Root(name = "Graph", strict = false)
  public class GraphTask extends Task {
  
    @Element(name = "JobConf")
    protected Properties jobConf;
  
    GraphTask() {
    }
  
    public GraphTask(String taskName) {
      super();
      this.setName(taskName);
    }
  
    /**
     * Gets the value of the jobConf property.
     *
     * @return possible object is
     * {@link Properties }
     */
    public Properties getJobConf() {
      return jobConf;
    }
  
    /**
     * Sets the value of the jobConf property.
     *
     * @param value
     *     allowed object is
     *     {@link Properties }
     */
    public void setJobConf(Properties value) {
      this.jobConf = value;
    }
  
    public static Instance run(Odps odps, String project, GraphTask graphTask, int priority, String runningCluster)
        throws OdpsException {
      return odps.instances().create(project, graphTask, priority, runningCluster);
    }
  
  }
  