@Override public void removeAssociation(String assocName) throws Exception { this.wrappedSctpManagement.removeAssociation(assocName); }
public void release() throws Exception { logger.debug("Releasing SCTP Server"); // Note we never release the server association as it is always listening - we only stop the remote client association this.stop(); if (remoteClientAssociation != null) { this.management.removeAssociation(remoteClientAssociationName); remoteClientAssociation = null; } // destAddress = null; }
@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); } }
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; } }
this.sctpManagement.removeAssociation(assocName); return String.format(SCTPOAMMessages.REMOVE_ASSOCIATION_SUCCESS, assocName, this.sctpManagement.getName());
this.sctpManagement.removeAssociation(assocName); return String.format(SCTPOAMMessages.REMOVE_ASSOCIATION_SUCCESS, assocName, this.sctpManagement.getName());