int removePartitionInfo ( String hostName , String userDir , String libertyServerName , String executorIdentifier ) throws Exception { PartitionRecord criteria = new PartitionRecord ( false ) ; if ( hostName != null ) criteria . setHostName ( hostName ) ; if ( userDir != null ) criteria . setUserDir ( userDir ) ; if ( libertyServerName != null ) criteria . setLibertyServer ( libertyServerName ) ; if ( executorIdentifier != null ) criteria . setExecutor ( executorIdentifier ) ; int numRemoved = 0 ; TransactionController tranController = new TransactionController ( ) ; try { tranController . preInvoke ( ) ; numRemoved = taskStore . remove ( criteria ) ; } catch ( Throwable x ) { tranController . setFailure ( x ) ; } finally { Exception x = tranController . postInvoke ( Exception . class ) ; if ( x != null ) throw x ; } return numRemoved ; }
Removes partition information from the persistent store . All of the parameters are optional . If a parameter is specified only entries that match it are removed from the persistent store .