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

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

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

Tracer.isWarningEnabled介绍

暂无

代码示例

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

public void onDialogNotice(DialogNotice evt, ActivityContextInterface aci) {
  if (logger.isWarningEnabled()) {
    this.logger.warning("\nRx :  onDialogNotice" + evt);
  }
}

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

public void onDialogTimeout(DialogTimeout evt, ActivityContextInterface aci) {
  if (this.logger.isWarningEnabled()) {
    this.logger.warning("\nHome routing: Rx :  onDialogTimeout" + evt);
  }
}

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

public void onDialogNotice(DialogNotice evt, ActivityContextInterface aci) {
  if (logger.isWarningEnabled()) {
    this.logger.warning("\nHome routing: Rx :  onDialogNotice" + evt);
  }
}

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

if (tracer.isWarningEnabled()) {
  tracer.warning("Cant get Usage parameter value", e);

代码示例来源:origin: org.mobicents.applications/charging-server-sbb

/**
 * Event handler for {@link JdbcTaskExecutionThrowableEvent}.
 * 
 * @param event
 * @param aci
 */
public void onJdbcTaskExecutionThrowableEvent(JdbcTaskExecutionThrowableEvent event, ActivityContextInterface aci) {
  if (tracer.isWarningEnabled()) {
    tracer.warning("Received a JdbcTaskExecutionThrowableEvent, as result of executed task " + event.getTask(), event.getThrowable());
  }
  // end jdbc activity
  ((JdbcActivity) aci.getActivity()).endActivity();
  // call back parent
  final SbbLocalObject parent = sbbContextExt.getSbbLocalObject().getParent();
  final DataSourceJdbcTask jdbcTask = (DataSourceJdbcTask) event.getTask();
  jdbcTask.callBackParentOnException(parent);
}

代码示例来源:origin: org.mobicents.examples/mobicents-slee-example-sip-jdbc-registrar-sbb

/**
 * Event handler for {@link JdbcTaskExecutionThrowableEvent}.
 * 
 * @param event
 * @param aci
 */
public void onJdbcTaskExecutionThrowableEvent(
    JdbcTaskExecutionThrowableEvent event, ActivityContextInterface aci) {
  if (tracer.isWarningEnabled()) {
    tracer.warning(
        "Received a JdbcTaskExecutionThrowableEvent, as result of executed task "
            + event.getTask(), event.getThrowable());
  }
  // end jdbc activity
  final JdbcActivity activity = (JdbcActivity) aci.getActivity();
  activity.endActivity();
  // call back parent
  final DataSourceParentSbbLocalInterface parent = (DataSourceParentSbbLocalInterface) sbbContextExt
      .getSbbLocalObject().getParent();
  final DataSourceJdbcTask jdbcTask = (DataSourceJdbcTask) event
      .getTask();
  jdbcTask.callBackParentOnException(parent);
}

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

public void setResourceAdaptorContext(javax.slee.resource.ResourceAdaptorContext raContext) {
  this.raContext = raContext; 
  this.tracer = raContext.getTracer("XCAPClientResourceAdaptor");
  sbbInterface = new XCAPClientResourceAdaptorSbbInterfaceImpl(this);
  this.sleeEndpoint = raContext.getSleeEndpoint();
  this.eventLookupFacility = raContext.getEventLookupFacility();
  try {
    this.getResponseEvent = eventLookupFacility.getFireableEventType(new EventTypeID("GetResponseEvent", "org.restcomm", "2.0"));
    this.putResponseEvent = eventLookupFacility.getFireableEventType(new EventTypeID("PutResponseEvent", "org.restcomm", "2.0"));
    this.deleteResponseEvent = eventLookupFacility.getFireableEventType(new EventTypeID("DeleteResponseEvent", "org.restcomm", "2.0"));
  }
  catch(Exception e) {
    if(tracer.isWarningEnabled())
      tracer.warning("Could not look up Response Event",e);
  }    
}

代码示例来源:origin: org.mobicents.resources/mobicents-slee-ra-xcap-client-ra

public void setResourceAdaptorContext(javax.slee.resource.ResourceAdaptorContext raContext) {
  this.raContext = raContext; 
  this.tracer = raContext.getTracer("XCAPClientResourceAdaptor");
  sbbInterface = new XCAPClientResourceAdaptorSbbInterfaceImpl(this);
  this.sleeEndpoint = raContext.getSleeEndpoint();
  this.eventLookupFacility = raContext.getEventLookupFacility();
  try {
    this.getResponseEvent = eventLookupFacility.getFireableEventType(new EventTypeID("GetResponseEvent", "org.mobicents", "2.0"));
    this.putResponseEvent = eventLookupFacility.getFireableEventType(new EventTypeID("PutResponseEvent", "org.mobicents", "2.0"));
    this.deleteResponseEvent = eventLookupFacility.getFireableEventType(new EventTypeID("DeleteResponseEvent", "org.mobicents", "2.0"));
  }
  catch(Exception e) {
    if(tracer.isWarningEnabled())
      tracer.warning("Could not look up Response Event",e);
  }    
}

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

if (logger.isWarningEnabled()) {
  this.logger.warning("Home routing: Rx : Sri (home routing) onDialogReject / PotentialVersionIncompatibility=" + evt);
if (logger.isWarningEnabled()) {
  this.logger.warning("Home routing: Rx : Sri (home routing) onDialogReject / ApplicationContextNotSupported=" + evt);

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

private void endActivity(MAPDialogWrapper mapDialog) {
  if (tracer.isFineEnabled())
    tracer.fine("endActivity:" + mapDialog);
  MAPDialogActivityHandle mapDialogActHndl = mapDialog.getActivityHandle();
  if (mapDialogActHndl == null) {
    if (this.tracer.isWarningEnabled()) {
      this.tracer.warning("Activity ended but no MAPDialogActivityHandle found for Dialog ID, ignoring "
          + mapDialog.getLocalDialogId());
    }
  } else {
    try {
      MAPUserAbortChoice ach = this.realProvider.getMAPParameterFactory().createMAPUserAbortChoice();
      ach.setUserSpecificReason();
      mapDialog.abort(ach);
    } catch (MAPException e) {
      tracer.warning("Cannot abort dialog ", e);
    }
    this.sleeEndpoint.endActivity(mapDialogActHndl);
    if (tracer.isFineEnabled())
      this.tracer.fine("Activity marked to be ended:" + mapDialog.getLocalDialogId());
  }
}

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

private void endActivity(MAPDialogWrapper mapDialog) {
  if (tracer.isFineEnabled())
    tracer.fine("endActivity:" + mapDialog);
  MAPDialogActivityHandle mapDialogActHndl = mapDialog.getActivityHandle();
  if (mapDialogActHndl == null) {
    if (this.tracer.isWarningEnabled()) {
      this.tracer.warning("Activity ended but no MAPDialogActivityHandle found for Dialog ID, ignoring "
          + mapDialog.getLocalDialogId());
    }
  } else {
    try {
      MAPUserAbortChoice ach = this.realProvider.getMAPParameterFactory().createMAPUserAbortChoice();
      ach.setUserSpecificReason();
      mapDialog.abort(ach);
    } catch (MAPException e) {
      tracer.warning("Cannot abort dialog ", e);
    }
    this.sleeEndpoint.endActivity(mapDialogActHndl);
    if (tracer.isFineEnabled())
      this.tracer.fine("Activity marked to be ended:" + mapDialog.getLocalDialogId());
  }
}

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

if (tracer.isWarningEnabled())
  tracer.warning("Connection lost! for RA " + raContext.getEntityName() + "Reconnecting...", nbe);
reconnect();

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

if (this.tracer.isWarningEnabled()) {
  org.mobicents.protocols.smpp.event.ReceiverExceptionEvent recExcepEvent = (org.mobicents.protocols.smpp.event.ReceiverExceptionEvent) smppEvent;
  this.tracer.warning("The Receiver Thread for SMPP RA " + this.raContext.getEntityName() + " throws recovrable Exception ",

相关文章