public ODocument status ( ) { synchronized ( listener ) { ODocument status = new ODocument ( ) ; status . field ( "cfg" , cfg ) ; status . field ( "status" , this . status ) ; String lastBatchLog = "" ; if ( this . messageHandler != null ) { lastBatchLog = extractBatchLog ( ) ; } status . field ( "log" , lastBatchLog ) ; if ( this . status == Status . FINISHED ) { listener . notifyAll ( ) ; } return status ; } }
Single Job Status