javax.slee.facilities.Tracer类的使用及代码示例

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

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

Tracer介绍

暂无

代码示例

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

/**
 * MAP Components Events
 */
public void onInvokeTimeout(InvokeTimeout evt, ActivityContextInterface aci) {
  this.logger.severe("\nRx :  onInvokeTimeout" + evt);
}

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

public void raInactive() {
 if(tracer.isFineEnabled()) {
  tracer.fine("Diameter Cx/Dx RA :: raInactive.");
 }
 //synchronized (this.activities) {
 //  activities.clear();
 //}
 activities = null;
 if(tracer.isInfoEnabled()) {
  tracer.info("Diameter Cx/Dx RA :: raInactive completed.");
 }
}

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

@Override
public void updateAccountDataResult(boolean success) {
  if (success) {
    if (tracer.isInfoEnabled()) {
      tracer.info("[><] " + sidString + " Update User Account Data completed with success.");
    }
  }
  else {
    tracer.warning("[><] " + sidString + " Update User Account Data failed.");
  }
}

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

@Override
public void deliverInitialFilterCriteria(String publicIdentity, String serverName, long resultCode, String data) {
 if (tracer.isInfoEnabled()) {
  String dataType = "S-CSCF Name";
  tracer.info(publicIdentity + "/" + serverName + " '" + dataType + "' delivery: Result-Code = '" + resultCode + "'");
  if (data != null) {
   tracer.info("User-Data: " + data);
  }
 }
}

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

@Override
public void activityEnded(ActivityHandle activityHandle) {
  if (this.tracer.isFineEnabled()) {
    this.tracer.fine("Activity with handle " + activityHandle + " ended.");
  }
}

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

public void raConfigure(ConfigProperties properties) {
  try {
    if (tracer.isInfoEnabled()) {
      tracer.info("Configuring CAP RA: " + this.resourceAdaptorContext.getEntityName());
    }
    this.capJndi = (String) properties.getProperty(CONF_CAP_JNDI).getValue();
  } catch (Exception e) {
    tracer.severe("Configuring of CAP RA failed ", e);
  }
}

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

public void timeoutExpired(Request req) {
 if (tracer.isFineEnabled()) {
  tracer.fine("Diameter Base RA :: timeoutExpired :: " + "Request[" + req + "].");
 }
 // Message delivery timed out - we have to remove activity
 try {
  activities.get(getActivityHandle(req.getSessionId())).endActivity();
 }
 catch (Exception e) {
  tracer.severe("Failure processing timeout message.", e);
 }
}

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

protected void fireEvent(FireableEventType eventType, Object activity, Object event) {
  final ActivityHandle handle = this.getActivityHandle(activity);                
  //TODO insert global title.
  //this causes failure
  // final Address address = new Address(AddressPlan.GT, "");
  try {
    sleeEndpoint.fireEvent(handle, eventType, event, null, null, EVENT_FLAGS);
    tracer.info("Fired event: " + eventType);
  } catch (Throwable e) {
    tracer.severe("Failed to fire event", e);
  }
}

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

/**
 * implements javax.slee.Sbb Please refer to JSLEE v1.1 Specification, Early
 * Draft Review Page 67 for further information. <br>
 * The SLEE invokes the sbbRolledBack callback method after a transaction
 * used in a SLEE originated invocation has rolled back.
 */
public void sbbRolledBack(javax.slee.RolledBackContext rolledBackContext) {
  logger.info("CommonSbb: " + this + ": sbbRolledBack() called.");
}

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

private void reconnect() {
  try {
    //logger.warn("Lost connection! Reconnect to SMSC");
    tracer.warning("Lost connection! Reconnect to SMSC");
    unbindSMSC();
    bindSMSC();
  } catch (Exception e) {
    //logger.error("Reconnect error: " + e.getMessage());
    tracer.severe("Reconnect error: " + e.getMessage());
  }
}

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

/**
 * {@inheritDoc}
 */
@Override
public void stopActivityRemoveTimer(DiameterActivityHandle handle) {
 try {
  this.activities.stopActivityRemoveTimer(handle);
 }
 catch (Exception e) {
  tracer.warning("Failed to stop activity remove timer.", e);
 }
}

代码示例来源: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.resources/restcomm-slee-ra-tcap-ra

public void raConfigure(ConfigProperties properties) {
  try {
    if (tracer.isInfoEnabled()) {
      tracer.info("Configuring TCAP RA: " + this.resourceAdaptorContext.getEntityName());
    }
    this.tcapJndi = (String) properties.getProperty(CONF_TCAP_JNDI).getValue();
  } catch (Exception e) {
    tracer.severe("Configuring of MAP RA failed ", e);
  }
}

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

@Override
public void administrativeRemove(ActivityHandle activityHandle) {
  if (this.tracer.isFineEnabled()) {
    this.tracer.fine("Activity administrative remove with handle " + activityHandle + ".");
  }
}

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

public void eventProcessingFailed(ActivityHandle handle, FireableEventType eventType, Object event, Address address, ReceivableService service, int flags, FailureReason reason) {
 if (tracer.isInfoEnabled()) {
  tracer.info("Diameter S6a RA :: eventProcessingFailed :: handle[" + handle + "], eventType[" + eventType + "], event[" + event + "], address[" + address + "], flags[" + flags + "], reason[" + reason + "].");
 }
}

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

public void timeoutExpired(Request req) {
 if (tracer.isFineEnabled()) {
  tracer.fine("Diameter Base RA :: timeoutExpired :: " + "Request[" + req + "].");
 }
 // Message delivery timed out - we have to remove activity
 try {
  activities.get(getActivityHandle(req.getSessionId())).endActivity();
 }
 catch (Exception e) {
  tracer.severe("Failure processing timeout message.", e);
 }
}

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

public void queryLiveness(ActivityHandle handle) {
 tracer.info("Diameter Ro RA :: queryLiveness :: handle[" + handle + "].");
 DiameterActivityImpl activity = (DiameterActivityImpl) activities.get((DiameterActivityHandle)handle);
 if (activity != null && !activity.isValid()) {
  try {
   sleeEndpoint.endActivity(handle);
  }
  catch (Exception e) {
   tracer.severe("Failure ending non-live activity.", e);
  }
 }
}

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

/**
 * implements javax.slee.Sbb Please refer to JSLEE v1.1 Specification, Early
 * Draft Review Page 65 for further information. <br>
 * The SLEE invokes this method after a SLEE originated invocation of a
 * transactional method of the SBB object returns by throwing a
 * RuntimeException.
 */
public void sbbExceptionThrown(Exception exception, Object obj, javax.slee.ActivityContextInterface activityContextInterface) {
  logger.info("CommonSbb: " + this + ": sbbExceptionThrown() called.");
}

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

public void stopActivityRemoveTimer(DiameterActivityHandle handle) {
 try {
  this.activities.stopActivityRemoveTimer(handle);
 }
 catch (Exception e) {
  tracer.warning("Failed to stop activity remove timer.", e);
 }
}

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

public void raInactive() {
 if(tracer.isFineEnabled()) {
  tracer.fine("Diameter Base RA :: raInactive.");
 }
 //    synchronized (this.activities) {
 //      activities.clear();
 //    }
 activities = null;
 if(tracer.isInfoEnabled()) {
  tracer.info("Diameter Base RA :: INACTIVE completed.");
 }
}

相关文章