/*
(non-Javadoc)
@see com.popbill.api.HTCashbillService#listActvieJob(java.lang.String, java.lang.String)
491726
@Override
	public HTCashbillJobState[] listActiveJob(String CorpNum, String UserID)
			throws PopbillException {
		return httpget("/HomeTax/Cashbill/JobList", CorpNum, UserID, HTCashbillJobState[].class);
	}
516395
public Observable<ServiceResponseWithHeaders<Page<CloudJob>, JobListHeaders>> listWithServiceResponseAsync(final JobListOptions jobListOptions) {
        return listSinglePageAsync(jobListOptions)
            .concatMap(new Func1<ServiceResponseWithHeaders<Page<CloudJob>, JobListHeaders>, Observable<ServiceResponseWithHeaders<Page<CloudJob>, JobListHeaders>>>() {
                @Override
                public Observable<ServiceResponseWithHeaders<Page<CloudJob>, JobListHeaders>> call(ServiceResponseWithHeaders<Page<CloudJob>, JobListHeaders> page) {
                    String nextPageLink = page.body().nextPageLink();
                    if (nextPageLink == null) {
                        return Observable.just(page);
                    }
                    JobListNextOptions jobListNextOptions = null;
                    if (jobListOptions != null) {
                        jobListNextOptions = new JobListNextOptions();
                        jobListNextOptions.withClientRequestId(jobListOptions.clientRequestId());
                        jobListNextOptions.withReturnClientRequestId(jobListOptions.returnClientRequestId());
                        jobListNextOptions.withOcpDate(jobListOptions.ocpDate());
                    }
                    return Observable.just(page).concatWith(listNextWithServiceResponseAsync(nextPageLink, jobListNextOptions));
                }
            });
    }
323858
public StatusCode addToWatchList(String sessionId, int accountId, MediaType mediaType, Integer mediaId) throws MovieDbException {
        return tmdbAccount.modifyWatchList(sessionId, accountId, mediaType, mediaId, true);
    }
1345264
public void listfiles(Writer o)
                    throws IOException,
                    EOFException,
                    FileManagerException,
                    ClassNotFoundException,
                    HashtableOnDiskException {
        ListAction act = new ListAction(o);
        walkHash(act, RETRIEVE_KEY, 0, -1);
    }
693933
public List<Map<String, Object>> executeForMapList(int sqlId, Map<String, ? extends Object> bindParams) {
      String sql = context.getResources().getString(sqlId);
      return executeForMapList(sql, bindParams);
   }
407651
public static void forEachMethod( final Object object, Class<?> clazz, final Class<? extends Annotation> annotation,
            final MethodAction action ) {
        forEachSuperClass( clazz, new ClassAction() {
            @Override
            public void act( Class<?> clazz ) throws Exception {
                for( Method method : clazz.getDeclaredMethods() ) {
                    if( method.isAnnotationPresent( annotation ) ) {
                        action.act( object, method );
                    }
                }
            }
        } );
    }
562278
public function listJobs(ListJobsParameters $parameters)
    {
        $requestData = $this->getDefaultRequestData('query', $parameters->exportToArray());
        return $this->sendRequest('jobs', $requestData, self::HTTP_METHOD_GET);
    }
256279
private List<TaskTrackerAction> getJobsForCleanup(String taskTracker) {
    Set<JobID> jobs = null;
    synchronized (trackerToJobsToCleanup) {
      jobs = trackerToJobsToCleanup.remove(taskTracker);
    }
    if (jobs != null) {
      // prepare the actions list
      List<TaskTrackerAction> killList = new ArrayList<TaskTrackerAction>();
      for (JobID killJobId : jobs) {
        killList.add(new KillJobAction(killJobId));
        LOG.debug(taskTracker + " -> KillJobAction: " + killJobId);
      }

      return killList;
    }
    return null;
  }
86203
@Override
	public HTCashbillJobState getJobState(String CorpNum, String JobID)
			throws PopbillException {
		return getJobState(CorpNum, JobID, null);
	}
717087
static public List<Object> toDeprecatedObjectList(List<DisabledJob> disabledJobs) {
    return disabledJobs.stream().map( x -> {
          if (x == null) {
            return null;
          }
          else {
            return x.toDeprecatedObject();
          }
    }
    ).collect(Collectors.toList());
  }
590261
@Override
    public java.util.concurrent.Future<ListJobsResult> listJobsAsync(com.amazonaws.handlers.AsyncHandler<ListJobsRequest, ListJobsResult> asyncHandler) {

        return listJobsAsync(new ListJobsRequest(), asyncHandler);
    }
936978
public List<CarbonJobInfo> getJobList()
	{
		Element statusList = element.getChild("JobStatusList");

		if (statusList != null)
		{
			List<CarbonJobInfo> jobs = new ArrayList<CarbonJobInfo>();

			for (Element job : statusList.getChildren())
			{
				jobs.add(new CarbonJobInfo(job));
			}

			return jobs;
		}
		else if (getJobInfo() != null)
		{
			return Collections.singletonList(getJobInfo());
		}
		else
		{
			return Collections.emptyList();
		}
	}
1365369
@GET
    @Path("jd")
    @Produces(MediaType.APPLICATION_JSON)
    @HttpCache
    public List<JobDefDto> getJobDefs()
    {
        DbConn cnx = null;
        try
        {
            cnx = Helpers.getDbSession();
            return MetaService.getJobDef(cnx);
        }
        finally
        {
            Helpers.closeQuietly(cnx);
        }
    }
153258
def list_file_jobs(cls, offset=None, limit=None, api=None):
        
        api = api or cls._API
        return super(AsyncJob, cls)._query(
            api=api,
            url=cls._URL['list_file_jobs'],
            offset=offset,
            limit=limit,
        )
445155
@Override
    public List<com.enioka.jqm.api.Deliverable> getJobDeliverables(int idJob)
    {
        try
        {
            return target.path("ji/" + idJob + "/files").request().get(new GenericType<List<Deliverable>>()
            {
            });
        }
        catch (BadRequestException e)
        {
            throw new JqmInvalidRequestException(e.getResponse().readEntity(String.class), e);
        }
        catch (Exception e)
        {
            throw new JqmClientException(e);
        }
    }
1077864
private List<String> getCommandList(
      final JobSubmissionEvent jobSubmissionEvent) {

    return new JavaLaunchCommandBuilder()
        .setJavaPath("%JAVA_HOME%/bin/java")
        .setConfigurationFilePaths(Collections.singletonList(this.filenames.getDriverConfigurationPath()))
        .setClassPath(this.classpath.getDriverClasspath())
        .setMemory(jobSubmissionEvent.getDriverMemory().get())
        .setStandardErr(ApplicationConstants.LOG_DIR_EXPANSION_VAR + "/" + this.filenames.getDriverStderrFileName())
        .setStandardOut(ApplicationConstants.LOG_DIR_EXPANSION_VAR + "/" + this.filenames.getDriverStdoutFileName())
        .build();
  }
1136123
@Override
	public ContactInfo[] listContact(String CorpNum, String UserID) 
			throws PopbillException {
			
		return httpget("/IDs", CorpNum, UserID, ContactInfo[].class);
	}