本文整理了Java中javax.slee.facilities.Tracer.info()
方法的一些代码示例,展示了Tracer.info()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tracer.info()
方法的具体详情如下:
包路径:javax.slee.facilities.Tracer
类名称:Tracer
方法名:info
暂无
代码示例来源: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.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.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.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.smsc/mproc-ra
/**
* Finest.
*
* @param aMessageParts the a message parts
*/
protected final void info(final Object... aMessageParts) {
if (itsTracer == null) {
return;
}
itsTracer.info(compose(aMessageParts));
}
代码示例来源:origin: org.mobicents.resources/mobicents-slee-ra-diameter-s6a-ra
public void activityEnded(ActivityHandle handle) {
tracer.info("Diameter S6a RA :: activityEnded :: handle[" + handle + ".");
if (this.activities != null) {
synchronized (this.activities) {
this.activities.remove((DiameterActivityHandle) handle);
}
}
}
代码示例来源: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.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.smsc/alert-sbb
public void onActivityEndEvent(ActivityEndEvent event, ActivityContextInterface aci, EventContext eventContext) {
boolean isServiceActivity = (aci.getActivity() instanceof ServiceActivity);
if (isServiceActivity) {
this.logger.info("Rx: onActivityEndEvent: event=" + event + ", isServiceActivity=" + isServiceActivity);
SbbStates.setAlertServiceState(false);
}
}
代码示例来源:origin: org.mobicents.smsc/homerouting-sbb
public void onActivityEndEvent(ActivityEndEvent event, ActivityContextInterface aci, EventContext eventContext) {
boolean isServiceActivity = (aci.getActivity() instanceof ServiceActivity);
if (isServiceActivity) {
this.logger.info("Rx: onActivityEndEvent: event=" + event + ", isServiceActivity=" + isServiceActivity);
SbbStates.setHomeRoutingServiceState(false);
}
}
代码示例来源: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.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.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.");
}
}
内容来源于网络,如有侵权,请联系作者删除!