code: public List<ScheduledJob> listAllJobs( String appName, String cmdName ) {
  
  		StringBuilder sb = new StringBuilder( "Listing all the jobs." );
  		if( appName != null ) {
  			sb.append( " Application name: " );
  			sb.append( appName );
  			if( cmdName != null ) {
  				sb.append( ". Command name: " );
  				sb.append( cmdName );
  			}
  
  			sb.append( "." );
  		}
  
  		this.logger.finer( sb.toString());
  		WebResource path = this.resource.path( UrlConstants.SCHEDULER );
  		if( appName != null )
  			path = path.queryParam( "app-name", appName );
  
  		if( cmdName != null )
  			path = path.queryParam( "cmd-name", cmdName );
  
  		List<ScheduledJob> result =
  				this.wsClient.createBuilder( path )
  				.accept( MediaType.APPLICATION_JSON )
  				.type( MediaType.APPLICATION_JSON )
  				.get( new GenericType<List<ScheduledJob>> () {});
  
  		if( result != null ) {
  			this.logger.finer( result.size() + " jobs were found." );
  		} else {
  			this.logger.finer( "No scheduled job was found." );
  			result = new ArrayList<>( 0 );
  		}
  
  		return result;
  	}
docs: Lists all the jobs.
  <p>
  When no parameter is supplied, all the jobs are returned.
  When <code>appName</code> is supplied, only the jobs associated with
  this application are returned.  When <code>cmdName</code> is also supplied,
  only the jobs associated with this application and this command are returned.
  </p>
  <p>
  When <code>cmdName</code> is supplied but not <code>appName</code>, then no job
  is returned.
  </p>
  
  @return a non-null list of scheduled jobs