javax.slee.facilities.Tracer.isSevereEnabled()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(6.5k)|赞(0)|评价(0)|浏览(86)

本文整理了Java中javax.slee.facilities.Tracer.isSevereEnabled()方法的一些代码示例,展示了Tracer.isSevereEnabled()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tracer.isSevereEnabled()方法的具体详情如下:
包路径:javax.slee.facilities.Tracer
类名称:Tracer
方法名:isSevereEnabled

Tracer.isSevereEnabled介绍

暂无

代码示例

代码示例来源:origin: org.mobicents.resources/smpp5-ra

/**
 * reconnect() is called from LinkMonitor when connectivity between RA and
 * SMSC fails. lets set isBound to true so while loop of LinkMonitor keeps
 * trying to establish link again
 */
private void reconnect() {
  try {
    unbindSMSC();
    this.protoSmppSession.closeLink();
  } catch (Exception e) {
    // ignore all errors during unbinding
  }
  try {
    bindSMSC();
  } catch (Exception e) {
    if (tracer.isSevereEnabled())
      tracer.severe("Reconnect error: " + e.getMessage());
  }
}

代码示例来源:origin: org.mobicents.smsc/homerouting-sbb

private HrSriClientSbbLocalObject getHrSriClientSbbLocalObject() {
  ChildRelationExt relation = getHrSriClientSbb();
  HrSriClientSbbLocalObject ret = (HrSriClientSbbLocalObject) relation.get(ChildRelationExt.DEFAULT_CHILD_NAME);
  if (ret == null) {
    try {
      ret = (HrSriClientSbbLocalObject) relation.create(ChildRelationExt.DEFAULT_CHILD_NAME);
    } catch (Exception e) {
      if (this.logger.isSevereEnabled()) {
        this.logger.severe("Exception while trying to creat HrSriClientSbb child", e);
      }
    }
  }
  return ret;
}

代码示例来源:origin: org.mobicents.resources/smpp5-ra

private void unbindSMSC() {
  this.smppSession.setIsAlive(false);
  try {
    protoSmppSession.unbind();
    semaphore.drainPermits();
    semaphore.tryAcquire(5, TimeUnit.SECONDS);
    if (tracer.isInfoEnabled())
      tracer.info(raContext.getEntityName() + ": unbinding from SMSC");
  } catch (Exception e) {
    if (tracer.isSevereEnabled())
      tracer.severe("There was an error unbinding. ", e);
  }
}

代码示例来源:origin: org.mobicents.servers.jainslee.enablers/sip-subscription-client-sbb

public void onTimerEvent(TimerEvent event, ActivityContextInterface aci) {
  // time to refresh :)
  
  if (getSubscribeRequestTypeCMP() != null) {
    return;
  }
  try {
    DialogActivity da = (DialogActivity) aci.getActivity();
    Request refreshSubscribe = createRefresh(da, getSubscriptionData());
    setSubscribeRequestTypeCMP(SubscribeRequestType.REFRESH);
    da.sendRequest(refreshSubscribe);
  } catch (Exception e) {
    if (tracer.isSevereEnabled()) {
      tracer.severe("Failed to send unSUBSCRIBE for forked dialog.", e);
    }
  }
}

代码示例来源:origin: org.restcomm.resources/restcomm-slee-ra-cap-ra

if (tracer.isSevereEnabled()) {
  tracer.severe("Failed of connecting to CAP service[org.restcomm.ss7:service=CAPSS7Service]");

代码示例来源:origin: org.mobicents.servers.jainslee.enablers/sip-subscription-client-sbb

((SubscriptionClientParentSbbLocalObject)sbbLocalObject.getParent()).subscribeFailed(errorCode, sbbLocalObject);
} catch (Exception e) {
  if (tracer.isSevereEnabled()) {
    tracer.severe("Received exception from parent on subscribe callback", e);
  ((SubscriptionClientParentSbbLocalObject)sbbLocalObject.getParent()).resubscribeFailed(errorCode, sbbLocalObject);
} catch (Exception e) {
  if (tracer.isSevereEnabled()) {
    tracer.severe("Received exception from parent on subscribe callback", e);
  ((SubscriptionClientParentSbbLocalObject)sbbLocalObject.getParent()).unsubscribeFailed(errorCode, sbbLocalObject);
} catch (Exception e) {
  if (tracer.isSevereEnabled()) {
    tracer.severe("Received exception from parent on subscribe callback", e);

代码示例来源:origin: org.mobicents.resources/smpp5-ra

reconnect();
} catch (IOException ie) {
  if (tracer.isSevereEnabled())
    tracer.severe("Connection lost! for RA " + raContext.getEntityName() + " 	Communication failed", ie);
  reconnect();
  tracer.severe("BadCommandIDException. Failed to enquire link ", ex);
} catch (VersionException ex) {
  if (tracer.isSevereEnabled())
    tracer.severe("Failed to enquire link due to wrong Version ", ex);

代码示例来源:origin: org.restcomm.resources/restcomm-slee-ra-map-ra

if (tracer.isSevereEnabled()) {
  tracer.severe("Failed of connecting to MAP service[org.restcomm.ss7:service=MAPSS7Service]");

代码示例来源:origin: org.mobicents.servers.jainslee.enablers/sip-subscription-client-sbb

if (tracer.isSevereEnabled()) {
    tracer.severe("Failed to create client transaction", e);
} catch (Exception e) {
  if (tracer.isSevereEnabled()) {
    tracer.severe("Failed to create dialog or send SUBSRIBE", e);

代码示例来源:origin: org.mobicents.servers.jainslee.enablers/sip-subscription-client-sbb

public void onDialogForked(DialogForkedEvent event, ActivityContextInterface aci) {
  if (tracer.isFineEnabled())
    tracer.fine("Received fork, on activity: " + aci.getActivity() + "\nResponse:\n" + event.getResponse());
  // kill dialog & subscription, its killed with Expires: 0, not BYE
  Response response = event.getResponse();
  int responseCode = response.getStatusCode();
  // TODO: add headers?
  DialogActivity forkedDialog = (DialogActivity) event.getForkedDialog();
  if (responseCode < 200) {
    // Well?
  } else if (responseCode < 300) {
    try {
      Request unSubscribe = createUnSubscribe(forkedDialog);
      forkedDialog.sendRequest(unSubscribe);
      // we are not attached to forkedDialog, we dont care about resp.
    } catch (Exception e) {
      if (tracer.isSevereEnabled()) {
        tracer.severe("Failed to send unSUBSCRIBE for forked dialog.", e);
      }
    } finally {
      forkedDialog.delete();
    }
  } else {
    // Well?
  }
}

代码示例来源:origin: org.mobicents.servers.jainslee.enablers/sip-subscription-client-sbb

@Override
public void unsubscribe() throws SubscriptionException {
  
  if (getSubscribeRequestTypeCMP() != null) {
    throw new SubscriptionException("Enabler is " + getSubscribeRequestTypeCMP() + ", cannot unsubscribe.");
  }
  try {
    ActivityContextInterface aci = sbbContext.getActivities()[0];
    cancelExpiresTimer(aci);
    DialogActivity da = (DialogActivity) aci.getActivity();
    Request unsubscribeRequest = createUnSubscribe(da);
    setSubscribeRequestTypeCMP(SubscribeRequestType.REMOVE);
    da.sendRequest(unsubscribeRequest);
  } catch (Exception e) {
    if (tracer.isSevereEnabled()) {
      tracer.severe("Failed to send unsubscribe", e);
    }
    this.setSubscribeRequestTypeCMP(null);
    throw new SubscriptionException("Failed to send unSUBSRIBE", e);
  }
}

代码示例来源:origin: org.mobicents.servers.jainslee.enablers/sip-subscription-client-sbb

if (tracer.isSevereEnabled()) {
    tracer.severe("Failed to create 489 answer to NOTIFY", e);
  event.getServerTransaction().sendResponse(okResponse);                
} catch (Exception e) {
  if (tracer.isSevereEnabled()) {
    tracer.severe("Failed to create 200 answer to NOTIFY", e);
if (tracer.isSevereEnabled()) {
  tracer.severe("Received exception from parent on notify callback", e);

代码示例来源:origin: org.mobicents.smsc/scheduler-ra

this.sleeEndpoint.fireEventTransacted(activity.getActivityHandle(), eventTypeId, event, null, null);
} catch (Exception e) {
  if (this.tracer.isSevereEnabled()) {
    this.tracer.severe("Failed to fire SmsSet event Class=: " + eventTypeId.getEventClassName(), e);

相关文章