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

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

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

Tracer.isInfoEnabled介绍

暂无

代码示例

代码示例来源: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.servers.jainslee.enablers/hss-client-example-sbb

@Override
public void receivedProfileUpdate(String userIdentity, byte[] msisdn, String data, String originRealm, String originHost) {
 if (tracer.isInfoEnabled()) {
  tracer.info("Received updated User Profile for " + (userIdentity != null ? userIdentity : new String(msisdn)) + " from " + originRealm + "/" + originHost);
  if (data != null) {
   tracer.info("User-Data: " + data);
  }
 }
 if (tracer.isInfoEnabled()) {
  tracer.info("###### STEP 9 # Received profile update for '" + PUBLIC_IDENTITY_IMS_USER_STATE + "'. EXAMPLE COMPLETED SUCCESSFULY!");
 }
}

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

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

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

public void activityEnded(ActivityHandle handle) {
 if(tracer.isInfoEnabled()) {
  tracer.info("Diameter Ro RA :: activityEnded :: handle[" + handle + "].");
 }
 if(this.activities != null) {
  synchronized (this.activities) {
   this.activities.remove((DiameterActivityHandle)handle);
  }
 }
}

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

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

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

public void eventProcessingSuccessful(ActivityHandle handle, FireableEventType eventType, Object event, Address address, ReceivableService service, int flags) {
 if(tracer.isInfoEnabled()) {
  tracer.info("Diameter Cx/Dx RA :: eventProcessingSuccessful :: handle[" + handle + "], eventType[" + eventType + "], event[" + event + "], address[" + address + "], flags[" + flags + "].");
 }
 if(!(handle instanceof DiameterActivityHandle)) {
  return;
 }
 processAfterEventDelivery(handle, eventType, event, address, service, flags);
}

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

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

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

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

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

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

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

@Override
public void eventProcessingFailed(ActivityHandle handle, FireableEventType eventType, Object event, Address address,
  ReceivableService service, int flags, FailureReason reason) {
 if (tracer.isInfoEnabled()) {
  tracer.info("Diameter Gq RA :: eventProcessingFailed :: handle[" + handle + "], eventType[" + eventType + "], event[" + event
    + "], address[" + address + "], flags[" + flags + "], reason[" + reason + "].");
 }
 if(!(handle instanceof DiameterActivityHandle)) {
  return;
 }
 processAfterEventDelivery(handle, eventType, event, address, service, flags);
}

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

public void eventProcessingSuccessful(ActivityHandle handle, FireableEventType eventType, Object event, Address address, ReceivableService service, int flags) {
 if(tracer.isInfoEnabled()) {
  tracer.info("Diameter Rf RA :: eventProcessingSuccessful :: handle[" + handle + "], eventType[" + eventType + "], event[" + event + "], address[" + address + "], flags[" + flags + "].");
 }
 if(!(handle instanceof DiameterActivityHandle)) {
  return;
 }
 processAfterEventDelivery(handle, eventType, event, address, service, flags);
}

代码示例来源: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 getAccountDataResult(List<UserAccountData> result) {
  if (tracer.isInfoEnabled()) {
    tracer.info(String.format("%20s | %10s |", "User ID", "Balance"));
    tracer.info("---------------------+------------+");
    for (UserAccountData uad : result) {
      tracer.info(String.format("%20s | %10s |", uad.getMsisdn(), uad.getBalance()));
    }            
  }
}

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

@Override
public void getUserAccountData(String msisdn) {
  if (tracer.isInfoEnabled()) {
    tracer.info("[><] Calling getUserAccountData(" + msisdn + ")");
  }
  executeTask(new GetAccountDataJdbcTask(msisdn, tracer));
}

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

@Override
public void directDebitUnits(CreditControlInfo ccInfo) {
  if (tracer.isInfoEnabled()) {
    tracer.info("[><] Debiting Units: " + ccInfo);
  }
  executeTask(new DirectDebitUnitsJdbcTask(ccInfo, tracer));
}

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

public void eventRequest(CreditControlInfo ccInfo){
  if (tracer.isInfoEnabled()) {
    tracer.info("[>>] Received an Event Request to Account and Balance Management SBB. SessionId="+ccInfo.getSessionId()+", userId="+ccInfo.getSubscriptionId());
  }
  handleRequest(ccInfo);
}

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

public void raInactive() {
  if (tracer.isFineEnabled()) {
    tracer.fine("MAP Resource Adaptor - inactivating");
  }
  this.realProvider.removeTCListener(this);
  if (tracer.isInfoEnabled()) {
    tracer.info("TCAP Resource Adaptor entity inactive.");
  }
}

代码示例来源: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/restcomm-slee-ra-diameter-cx-dx-ra

public void timeoutExpired(Request request) {
 if(tracer.isInfoEnabled()) {
  tracer.info("Diameter Cx/Dx RA :: timeoutExpired :: " + "Request[" + request + "].");
 }
 try {
  // Message delivery timed out - we have to remove activity
  ((DiameterActivity) getActivity(getActivityHandle(request.getSessionId()))).endActivity();
 }
 catch (Exception e) {
  tracer.severe("Failure processing timeout message.", e);
 }
}

相关文章