public void resume() throws Exception { if (managementSupport != null) { managementSupport.resume(); } }
public void resume() throws Exception { if (managementSupport != null) { managementSupport.resume(); } }
/** * Resumes all paused Axis2 senders. */ public void resumeSenders() { 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).resume(); } catch (AxisFault axisFault) { log.error(new StringBuilder("Error resuming transport sender for : ") .append(trpOut.getName()).append(" from maintenence").toString()); } } } } }
/** * Resumes all paused Axis2 listeners. */ public void resumeListeners() { 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).resume(); } catch (AxisFault axisFault) { log.error(new StringBuilder("Error resuming transport listener for: ") .append(trpIn.getName()).append(" from maintenence").toString()); } } } } }
/** * Resumes all paused Axis2 senders. */ public void resumeSenders() { 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).resume(); } catch (AxisFault axisFault) { log.error(new StringBuilder("Error resuming transport sender for : ") .append(trpOut.getName()).append(" from maintenence").toString()); } } } } }
/** * Resumes all paused Axis2 listeners. */ public void resumeListeners() { 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).resume(); } else if (trpLst instanceof PassThroughHttpListener) { ((PassThroughHttpListener) trpLst).resume(); } else if (trpLst instanceof PassThroughHttpSSLListener) { ((PassThroughHttpSSLListener) trpLst).resume(); } } catch (AxisFault axisFault) { log.error(new StringBuilder("Error resuming transport listener for: ").append(trpIn.getName()) .append(" from maintenence") .toString()); } } } }