+ Start a Discussion
ckellieckellie 

Scheduled Apex Jobs

I am studying Quinton Wall's post "Using Scheduled Apex jobs to retrieve stock quotes"  but am having trouble replicating the example. Quinton uses three different code snippets, but I am not sure how theey relate to each other. Are all three snippets suppose to be one class, or three separate classes? How dooes the code correlate? This is my first project in scheduing apex.

 

Thanks,

Best Answer chosen by Admin (Salesforce Developers) 
sbbsbb

They are three separate class files.

 

Class 'StockPriceJobScheduler' invokes 'getStockPrice' which in turn calls the 'getQuotes()' method in 'CallYahooQuotes' class.