public void pause() throws Exception { if (managementSupport != null) { managementSupport.pause(); } }
public void pause() throws Exception { if (managementSupport != null) { managementSupport.pause(); } }
/** * Pauses all Axis2 senders which support this operation. */ public void pauseSenders() { if ((configurationContext != null) && (configurationContext.getAxisConfiguration() != null)) { Map<String, TransportOutDescription> trpOuts = configurationContext.getAxisConfiguration().getTransportsOut(); for (TransportOutDescription trpOut : trpOuts.values()) { TransportSender trpSnd = trpOut.getSender(); if (trpSnd instanceof ManagementSupport) { try { ((ManagementSupport) trpSnd).pause(); } catch (AxisFault axisFault) { log.error(new StringBuilder("Error pausing transport sender: ") .append(trpOut.getName()).toString()); } } } } }
/** * Pauses all Axis2 listeners which support this operation. */ public void pauseListeners() { if ((configurationContext != null) && (configurationContext.getAxisConfiguration() != null)) { Map<String, TransportInDescription> trpIns = configurationContext.getAxisConfiguration().getTransportsIn(); for (TransportInDescription trpIn : trpIns.values()) { TransportListener trpLst = trpIn.getReceiver(); if (trpLst instanceof ManagementSupport) { try { ((ManagementSupport) trpLst).pause(); } catch (AxisFault axisFault) { log.error(new StringBuilder("Error putting transport listener for: ") .append(trpIn.getName()).append(" into maintenence").toString()); } } } } }
/** * Pauses all Axis2 senders which support this operation. */ public void pauseSenders() { if ((configurationContext != null) && (configurationContext.getAxisConfiguration() != null)) { Map<String, TransportOutDescription> trpOuts = configurationContext.getAxisConfiguration().getTransportsOut(); for (TransportOutDescription trpOut : trpOuts.values()) { TransportSender trpSnd = trpOut.getSender(); if (trpSnd instanceof ManagementSupport) { try { ((ManagementSupport) trpSnd).pause(); } catch (AxisFault axisFault) { log.error(new StringBuilder("Error pausing transport sender: ") .append(trpOut.getName()).toString()); } } } } }
/** * Pauses all Axis2 listeners which support this operation. */ public void pauseListeners() { if ((configurationContext != null) && (configurationContext.getAxisConfiguration() != null)) { Map<String, TransportInDescription> trpIns = configurationContext.getAxisConfiguration().getTransportsIn(); for (TransportInDescription trpIn : trpIns.values()) { TransportListener trpLst = trpIn.getReceiver(); try { if (trpLst instanceof ManagementSupport) { ((ManagementSupport) trpLst).pause(); } else if (trpLst instanceof PassThroughHttpListener) { ((PassThroughHttpListener) trpLst).pause(); } else if (trpLst instanceof PassThroughHttpSSLListener) { ((PassThroughHttpSSLListener) trpLst).pause(); } } catch (AxisFault axisFault) { log.error(new StringBuilder("Error putting transport listener for: ").append(trpIn.getName()) .append(" into maintenence") .toString()); } } } }