@Override public void stopAssociation(String assocName) throws Exception { this.wrappedSctpManagement.stopAssociation(assocName); }
public void stop() throws Exception { logger.debug("Stopping SCTP Server"); // Note we never stop the server association as it is always listening - we only stop the remote client association if (remoteClientAssociation != null) { this.management.stopAssociation(remoteClientAssociationName); } }
@Override public void onCommunicationRestart(Association association) { logger.warn(String.format("Communication channel restart for AspFactroy=%s Association=%s", this.name, association.getName())); //TODO : Is this correct way to handle? try { this.transportManagement.stopAssociation(this.associationName); } catch (Exception e) { logger.warn(String.format("Error while trying to stop underlying Association for AspFactpry=%s", this.getName()), e); } try { this.transportManagement.startAssociation(this.associationName); } catch (Exception e) { logger.error(String.format("Error while trying to start underlying Association for AspFactpry=%s", this.getName()), e); } }
@Override public void onCommunicationShutdown(Association association) { logger.debug("onCommunicationShutdown called for [{}]", this); try { getParent().onDisconnect(); if (remoteClientAssociation != null) { management.stopAssociation(remoteClientAssociationName); management.removeAssociation(remoteClientAssociationName); remoteClientAssociation = null; } } catch (Exception e) { logger.debug("Error", e); } }
@Override public void onCommunicationRestart(Association association) { logger.warn(String.format("Communication channel restart for AspFactroy=%s Association=%s", this.name, association.getName())); //TODO : Is this correct way to handle? try { this.transportManagement.stopAssociation(this.associationName); } catch (Exception e) { logger.warn(String.format("Error while trying to stop underlying Association for AspFactpry=%s", this.getName()), e); } try { this.transportManagement.startAssociation(this.associationName); } catch (Exception e) { logger.error(String.format("Error while trying to start underlying Association for AspFactpry=%s", this.getName()), e); } }
public void destroy() throws Exception { // Stop the SCTP logger.debug("Destroying SCTP Server"); if (remoteClientAssociation != null) { this.management.stopAssociation(remoteClientAssociationName); this.management.removeAssociation(remoteClientAssociationName); remoteClientAssociation = null; } if (serverAssociation != null) { this.management.stopAssociation(serverAssociationName); this.management.removeAssociation(serverAssociationName); this.management.stopServer(serverName); this.management.removeServer(serverName); this.management.stop(); serverAssociation = null; } }
@Override public void tick(long now) { if (now - this.initiatedTime >= STOP_TIMER_TIMEOUT) { if (this.aspFactoryImpl.association.isConnected()) { logger.warn(String .format("Asp=%s was stopped but underlying Association=%s was not stopped after TIMEOUT=%d ms. Forcing stop now", this.aspFactoryImpl.getName(), this.aspFactoryImpl.association.getName(), STOP_TIMER_TIMEOUT)); try { this.aspFactoryImpl.transportManagement.stopAssociation(this.aspFactoryImpl.association.getName()); } catch (Exception e) { logger.error(String.format("Exception while trying to stop Association=%s", this.aspFactoryImpl.association.getName())); } } // Finally cancel this.cancel(); }// if(now-this.initiatedTime >= STOP_TIMER_TIMEOUT) }
this.heartBeatAckMissed, HEART_BEAT_ACK_MISSED_ALLOWED, this.aspFactoryImpl.getName())); try { this.aspFactoryImpl.transportManagement.stopAssociation(this.aspFactoryImpl.associationName); } catch (Exception e) { logger.warn(String.format("Error while trying to stop underlying Association for AspFactpry=%s",
@Override public void tick(long now) { if (now - this.initiatedTime >= STOP_TIMER_TIMEOUT) { if (this.aspFactoryImpl.association.isConnected()) { logger.warn(String .format("Asp=%s was stopped but underlying Association=%s was not stopped after TIMEOUT=%d ms. Forcing stop now", this.aspFactoryImpl.getName(), this.aspFactoryImpl.association.getName(), STOP_TIMER_TIMEOUT)); try { this.aspFactoryImpl.transportManagement.stopAssociation(this.aspFactoryImpl.association.getName()); } catch (Exception e) { logger.error(String.format("Exception while trying to stop Association=%s", this.aspFactoryImpl.association.getName())); } } // Finally cancel this.cancel(); }// if(now-this.initiatedTime >= STOP_TIMER_TIMEOUT) }
this.heartBeatAckMissed, HEART_BEAT_ACK_MISSED_ALLOWED, this.aspFactoryImpl.getName())); try { this.aspFactoryImpl.transportManagement.stopAssociation(this.aspFactoryImpl.associationName); } catch (Exception e) { logger.warn(String.format("Error while trying to stop underlying Association for AspFactpry=%s",
this.aspFactoryImpl.aspFactoryStopTimer.cancel(); this.aspFactoryImpl.transportManagement.stopAssociation(this.aspFactoryImpl.association.getName()); } catch (Exception e) { logger.error(
this.aspFactoryImpl.aspFactoryStopTimer.cancel(); this.aspFactoryImpl.transportManagement.stopAssociation(this.aspFactoryImpl.association.getName()); } catch (Exception e) { logger.error(
this.transportManagement.stopAssociation(this.association.getName()); this.transportManagement.stopAssociation(this.association.getName());
this.transportManagement.stopAssociation(this.association.getName()); this.transportManagement.stopAssociation(this.association.getName());