Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8533

Re: getExpectedRunTime

$
0
0

Hi Dana,

 

I am sorry, there is no ForecastJob() method on Job. However, you want getEstimates() ....

 

 

So try: jcsOut.println("Time: " + j.getEstimates().getEstimatedRunTime().getTimeMillis());

 

 

For your example:

 

{

Iterator it = jcsSession.executeObjectQuery("select j.* from Job j where j.Description like '%Test%' order by j.Description asc", null);

while(it.hasNext()) {

 

      Job j = (Job) it.next();

 

      jcsOut.println("Job: " + j.getDescription());

      jcsOut.println("Time: " + j.getEstimates().getEstimatedRunTime().getTimeMillis());

}

}

 

 

Regards,

 

HP

 

PS: You also forgot the "null" parameter in your executeObjectQuery()....


Viewing all articles
Browse latest Browse all 8533

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>