public synchronized void pauseDeployment ( final String deployment , ServerActivityCallback listener ) { final List < ControlPoint > eps = new ArrayList < ControlPoint > ( ) ; for ( ControlPoint ep : entryPoints . values ( ) ) { if ( ep . getDeployment ( ) . equals ( deployment ) ) { if ( ! ep . isPaused ( ) ) { eps . add ( ep ) ; } } } CountingRequestCountCallback realListener = new CountingRequestCountCallback ( eps . size ( ) , listener ) ; for ( ControlPoint ep : eps ) { ep . pause ( realListener ) ; } }
Pauses a given deployment