use of com.navercorp.pinpoint.plugin.activemq.client.field.getter.TransportGetter in project pinpoint by naver.
the class ActiveMQMessageConsumerDispatchInterceptor method validateTransport.
private boolean validateTransport(ActiveMQSession session) {
if (session == null) {
return false;
}
ActiveMQConnection connection = session.getConnection();
if (!(connection instanceof TransportGetter)) {
if (isDebug) {
logger.debug("Invalid connection object. Need field accessor({}).", TransportGetter.class.getName());
}
return false;
}
Transport transport = getRootTransport(((TransportGetter) connection)._$PINPOINT$_getTransport());
if (!(transport instanceof SocketGetter)) {
if (isDebug) {
logger.debug("Transport not traceable({}).", transport.getClass().getName());
}
return false;
}
return true;
}
use of com.navercorp.pinpoint.plugin.activemq.client.field.getter.TransportGetter in project pinpoint by naver.
the class ActiveMQMessageProducerSendInterceptor method validateTransport.
private boolean validateTransport(ActiveMQSession session) {
if (session == null) {
return false;
}
ActiveMQConnection connection = session.getConnection();
if (!(connection instanceof TransportGetter)) {
if (isDebug) {
logger.debug("Invalid connection object. Need field accessor({}).", TransportGetter.class.getName());
}
return false;
}
Transport transport = getRootTransport(((TransportGetter) connection)._$PINPOINT$_getTransport());
if (!(transport instanceof SocketGetter)) {
if (isDebug) {
logger.debug("Transport not traceable({}).", transport.getClass().getName());
}
return false;
}
return true;
}
Aggregations