@ Override public < T > TaskStatus < T > getStatus ( long taskId ) { String owner = getOwner ( ) ; if ( owner == null ) return null ; TransactionController tranController = new TransactionController ( ) ; TaskRecord taskRecord = null ; try { tranController . preInvoke ( ) ; taskRecord = taskStore . findById ( taskId , owner , false ) ; } catch ( Throwable x ) { tranController . setFailure ( x ) ; } finally { PersistentStoreException x = tranController . postInvoke ( PersistentStoreException . class ) ; // TODO proposed spec class if ( x != null ) throw x ; } return taskRecord == null ? null : new TaskStatusImpl < T > ( taskRecord , this ) ; }
Returns status for the persistent task with the specified id .