本文整理了Java中javax.slee.facilities.Tracer.severe()
方法的一些代码示例,展示了Tracer.severe()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tracer.severe()
方法的具体详情如下:
包路径:javax.slee.facilities.Tracer
类名称:Tracer
方法名:severe
暂无
代码示例来源: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.smsc/smpp-server-ra-ra
@Override
public void fireUnrecoverablePduException(UnrecoverablePduException unrecoverablePduException) {
tracer.severe("Received fireUnrecoverablePduException", unrecoverablePduException);
// TODO : recommendation is to close session
}
代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-tftp-server-ra
private void endActivity(ActivityHandle handle) {
try {
sleeEndpoint.endActivity(handle);
} catch (Throwable e) {
trc.severe("Failed to end activity " + handle, e);
}
}
代码示例来源:origin: org.mobicents.smsc/homerouting-sbb
public void onErrorComponent(ErrorComponent event,
ActivityContextInterface aci) {
this.logger.severe("\nHome routing: Rx : onErrorComponent " + event + " Dialog="
+ event.getMAPDialog());
}
代码示例来源:origin: org.mobicents.smsc/homerouting-sbb
public void onDialogDelimiter(DialogDelimiter evt,
ActivityContextInterface aci) {
super.onDialogDelimiter(evt, aci);
try {
this.onSriFullResponse();
} catch (Throwable e1) {
logger.severe("Exception in HrSriClientSbb.onDialogDelimiter (home routing) when fetching records and issuing events: " + e1.getMessage(), e1);
}
}
代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-gx-ra
public void sessionDestroyed(final String sessionId, final Object appSession) {
try {
this.sleeEndpoint.endActivity(getActivityHandle(sessionId));
} catch (Exception e) {
tracer.severe("Failure Ending Activity with Session-Id[" + sessionId + "]", e);
}
}
代码示例来源:origin: org.mobicents.resources/mobicents-slee-ra-diameter-base-ra
public RawSession getNewRawSession() throws InternalException {
try {
return stack.getSessionFactory().getNewRawSession();
}
catch ( IllegalDiameterStateException e ) {
tracer.severe( "Failure while obtaining Session Factory for new Raw Session.", e );
return null;
}
}
代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-diameter-base-ra
public RawSession getNewRawSession() throws InternalException {
try {
return stack.getSessionFactory().getNewRawSession();
}
catch ( IllegalDiameterStateException e ) {
tracer.severe( "Failure while obtaining Session Factory for new Raw Session.", e );
return null;
}
}
代码示例来源:origin: org.mobicents.resources/mobicents-slee-ra-diameter-rf-ra
public void sessionDestroyed(String sessionId, Object appSession) {
try {
this.sleeEndpoint.endActivity(getActivityHandle(sessionId));
}
catch (Exception e) {
tracer.severe("Failure Ending Activity with Session-Id[" + sessionId + "]", e);
}
}
代码示例来源:origin: org.mobicents.resources/restcomm-slee-ra-tcap-ra
@Override
public void onDialogReleased(Dialog dialog) {
try {
TCAPDialogWrapper mapDialogWrapper = (TCAPDialogWrapper) dialog.getUserObject();
TCAPDialogActivityHandle handle = onEvent(TCAPEvent.EVENT_TYPE_NAME_DIALOG_RELEASED, mapDialogWrapper, mapDialogWrapper);
// End Activity
this.sleeEndpoint.endActivity(handle);
} catch (Exception e) {
this.tracer.severe(String.format("onDialogRelease : Exception while trying to end activity for TCAP Dialog=%s", dialog), 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.servers.xdm/xdms-appusages-xcap-caps-sbb
public void onAppUsageRemovedEvent(AppUsageRemovedEvent event, ActivityContextInterface aci) {
aci.detach(sbbContext.getSbbLocalObject());
if (!event.getAuid().equals(XCAPCapsAppUsage.ID)) {
// update xcap caps global doc
try {
updateXCAPCapsGlobalDoc();
} catch (InternalServerErrorException e) {
tracer.severe("failed to update xcap caps global doc", e);
}
}
}
代码示例来源:origin: org.mobicents.resources/sbbs
public void setSbbContext(SbbContext sbbContext) {
this.sbbContext = (SbbContextExt) sbbContext;
this.logger = sbbContext.getTracer(this.loggerName);
try {
mapAcif = (MAPContextInterfaceFactory) this.sbbContext.getActivityContextInterfaceFactory(mapRATypeID);
mapProvider = (MAPProvider) this.sbbContext.getResourceAdaptorInterface(mapRATypeID, mapRaLink);
mapParameterFactory = mapProvider.getMAPParameterFactory();
} catch (Exception ne) {
logger.severe("Could not set SBB context:", ne);
}
}
代码示例来源: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.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.examples/restcomm-slee-example-sip11-b2b-sbb
private void processMidDialogRequest(RequestEvent event,
ActivityContextInterface dialogACI) {
try {
// Find the dialog to forward the request on
ActivityContextInterface peerACI = getPeerDialog(dialogACI);
forwardRequest(event,
(DialogActivity) peerACI.getActivity());
} catch (SipException e) {
tracer.severe(e.getMessage(), e);
replyToRequestEvent(event, Response.SERVICE_UNAVAILABLE);
}
}
代码示例来源: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.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/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/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);
}
}
内容来源于网络,如有侵权,请联系作者删除!