boolean isConnected() { if (remoteClientAssociation == null) { return false; } return this.remoteClientAssociation.isConnected(); } }
@Override public boolean isConnected() { return this.wrappedAssociation.isConnected(); }
@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) }
@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) }
private void stopFactories() throws Exception { // Stopping asp factories boolean someFactoriesIsStopped = false; for (AspFactory aspFact : this.aspfactories) { AspFactoryImpl aspFactImpl = (AspFactoryImpl) aspFact; if (aspFactImpl.started) { someFactoriesIsStopped = true; this.doStopAsp(aspFact.getName(), false); } } // waiting 5 seconds till stopping factories if (someFactoriesIsStopped) { for (int step = 1; step < 50; step++) { boolean allStopped = true; for (AspFactory aspFact : this.aspfactories) { if (aspFact.getAssociation() != null && aspFact.getAssociation().isConnected()) { allStopped = false; break; } } if (allStopped) break; Thread.sleep(100); } } }
private void stopFactories() throws Exception { // Stopping asp factories boolean someFactoriesIsStopped = false; for (AspFactory aspFact : this.aspfactories) { AspFactoryImpl aspFactImpl = (AspFactoryImpl) aspFact; if (aspFactImpl.started) { someFactoriesIsStopped = true; this.doStopAsp(aspFact.getName(), false); } } // waiting 5 seconds till stopping factories if (someFactoriesIsStopped) { for (int step = 1; step < 50; step++) { boolean allStopped = true; for (AspFactory aspFact : this.aspfactories) { if (aspFact.getAssociation() != null && aspFact.getAssociation().isConnected()) { allStopped = false; break; } } if (allStopped) break; Thread.sleep(100); } } }
serverAssociation.getPeerPort() }); logger.debug("Server Association Status: Started[{}] Connected[{}] Up[{}] ", new Object[]{serverAssociation.isStarted(), serverAssociation.isConnected(), serverAssociation.isUp()}); logger.trace("Server Association [{}]", serverAssociation);
for (FastMap.Entry<String, Association> n = this.associations.head(), end = this.associations.tail(); (n = n.getNext()) != end;) { Association associationTemp = n.getValue(); if (associationTemp.isConnected()) { assConnected = true; break;
.getNext()) != end;) { Association associationTemp = n.getValue(); if (associationTemp.isConnected()) { assConnected = true; break;
@Override public void execute() { if (this.assoc != null) { boolean conn = this.assoc.isConnected(); if (this.isSctpConnectionUp != conn) { this.isSctpConnectionUp = conn; boolean conn = this.assoc2.isConnected(); if (this.isSctpConnectionUp2 != conn) { this.isSctpConnectionUp2 = conn;
@Override public CurrentAlarmList getCurrentAlarmList() { CurrentAlarmListImpl al = new CurrentAlarmListImpl(); if (wrappedSctpManagement.isStarted()) { Map<String, Association> lstAss = wrappedSctpManagement.getAssociations(); for (Association ass : lstAss.values()) { if (ass.isStarted()) { if (!ass.isConnected()) { AlarmMessage alm = this.generateAssociationAlarm(ass, false, true, ""); this.alc.prepareAlarm(alm); al.addAlarm(alm); } int congLevel = ass.getCongestionLevel(); if (congLevel > 0) { AlarmMessage alm = this.generateCongestionAlarm(ass, congLevel, false, true, ""); this.alc.prepareAlarm(alm); al.addAlarm(alm); } } } } return al; }
|| (this.functionality == Functionality.IPSP && this.exchangeType == ExchangeType.SE && this.ipspType == IPSPType.CLIENT)) { if (this.association.isConnected()) { ASPDown aspDown = (ASPDown) this.messageFactory.createMessage(MessageClass.ASP_STATE_MAINTENANCE, MessageType.ASP_DOWN);
|| (this.functionality == Functionality.IPSP && this.exchangeType == ExchangeType.SE && this.ipspType == IPSPType.CLIENT)) { if (this.association.isConnected()) { ASPDown aspDown = (ASPDown) this.messageFactory.createMessage(MessageClass.ASP_STATE_MAINTENANCE, MessageType.ASP_DOWN);