private void handleWanPausePublisher ( HttpPostCommand command ) throws UnsupportedEncodingException { String res ; String [ ] params = decodeParams ( command , 2 ) ; String wanReplicationName = params [ 0 ] ; String publisherId = params [ 1 ] ; WanReplicationService service = textCommandService . getNode ( ) . getNodeEngine ( ) . getWanReplicationService ( ) ; try { service . pause ( wanReplicationName , publisherId ) ; res = response ( ResponseType . SUCCESS , "message" , "WAN publisher paused" ) ; } catch ( Exception ex ) { logger . warning ( "Error occurred while pausing WAN publisher" , ex ) ; res = exceptionResponse ( ex ) ; } sendResponse ( command , res ) ; }
Pauses a WAN publisher on this member only . The publisher is identified by the WAN replication name and publisher ID passed as parameters to the HTTP command .