Examples of logDebug()


Examples of gov.nist.core.StackLogger.logDebug()

                      callIdSemaphore.acquire();
                    } catch (InterruptedException e) {
                      stackLogger.logError("Semaphore acquisition for message " + message + " interrupted", e);
                    }
                    if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
                      stackLogger.logDebug("semaphore acquired for message " + message);
                    }
                            }
                               
                            try {
                              sipMessageListener.processMessage(message);
View Full Code Here

Examples of gov.nist.core.StackLogger.logDebug()

                            } catch (Exception e) {
                              stackLogger.logError("Error occured processing message", e)
                              // We do not break the TCP connection because other calls use the same socket here
                            } finally {
                              if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
                                stackLogger.logDebug("releasing semaphore for message " + message);
                              }
                              callIdSemaphore.release();                           
                              if(!callIdSemaphore.hasQueuedThreads()) {
                                messagesOrderingMap.remove(callId);
                                if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
View Full Code Here

Examples of gov.nist.core.StackLogger.logDebug()

                              }
                              callIdSemaphore.release();                           
                              if(!callIdSemaphore.hasQueuedThreads()) {
                                messagesOrderingMap.remove(callId);
                                if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
                                  stackLogger.logDebug("semaphore removed for message " + message);
                                }
                              }
                            }
                          }
                        };
View Full Code Here

Examples of gov.nist.core.StackLogger.logDebug()

                smp.setReadBody(false);
                SIPMessage sipMessage = null;

                try {
                    if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
                      stackLogger.logDebug("About to parse : " + inputBuffer.toString());
                    }
                    sipMessage = smp.parseSIPMessage(inputBuffer.toString().getBytes());
                    if (sipMessage == null) {
                        this.rawInputStream.stopTimer();
                        continue;
View Full Code Here

Examples of gov.nist.core.StackLogger.logDebug()

                                CallIDOrderingStructure newCallIDOrderingStructure = new CallIDOrderingStructure();
                                orderingStructure = messagesOrderingMap.putIfAbsent(callId, newCallIDOrderingStructure);
                                if(orderingStructure == null) {
                                    orderingStructure = newCallIDOrderingStructure;      
                                    if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
                                        stackLogger.logDebug("new CallIDOrderingStructure added for message " + sipMessage);
                                    }
                                }
                            }
                            final CallIDOrderingStructure callIDOrderingStructure = orderingStructure;                                
                            // we add the message to the pending queue of messages to be processed for that call id here
View Full Code Here

Examples of gov.nist.core.StackLogger.logDebug()

//                smp.setReadBody(false);
                SIPMessage sipMessage = null;

                try {
                    if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
                        stackLogger.logDebug("About to parse : " + inputBuffer.toString());
                    }
                    sipMessage = smp.parseSIPMessage(inputBuffer.toString().getBytes(), false, false, sipMessageListener);
                    if (sipMessage == null) {
                        this.rawInputStream.stopTimer();
                        continue;
View Full Code Here

Examples of gov.nist.core.StackLogger.logDebug()

                                CallIDOrderingStructure newCallIDOrderingStructure = new CallIDOrderingStructure();
                                orderingStructure = messagesOrderingMap.putIfAbsent(callId, newCallIDOrderingStructure);
                                if(orderingStructure == null) {
                                    orderingStructure = newCallIDOrderingStructure;      
                                    if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
                                        stackLogger.logDebug("new CallIDOrderingStructure added for message " + sipMessage);
                                    }
                                }
                            }
                            final CallIDOrderingStructure callIDOrderingStructure = orderingStructure;                                
                            // we add the message to the pending queue of messages to be processed for that call id here
View Full Code Here

Examples of gov.nist.core.StackLogger.logDebug()

                                        stackLogger.logError("Semaphore acquisition for callId " + callId + " interrupted", e);
                                    }
                                    // once acquired we get the first message to process
                                    SIPMessage message = messagesForCallID.poll();
                                    if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
                                        stackLogger.logDebug("semaphore acquired for message " + message);
                                    }
                                   
                                    try {
                                        sipMessageListener.processMessage(message);
                                    } catch (Exception e) {
View Full Code Here

Examples of gov.nist.core.StackLogger.logDebug()

                                        // We do not break the TCP connection because other calls use the same socket here
                                    } finally {                                       
                                        if(callIDOrderingStructure.getMessagesForCallID().size() <= 0) {
                                            messagesOrderingMap.remove(callId);
                                            if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
                                                stackLogger.logDebug("CallIDOrderingStructure removed for message " + callId);
                                            }
                                        }
                                        if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
                                            stackLogger.logDebug("releasing semaphore for message " + message);
                                        }
View Full Code Here

Examples of gov.nist.core.StackLogger.logDebug()

                                            if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
                                                stackLogger.logDebug("CallIDOrderingStructure removed for message " + callId);
                                            }
                                        }
                                        if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
                                            stackLogger.logDebug("releasing semaphore for message " + message);
                                        }
                                        //release the semaphore so that another thread can process another message from the call id queue in the correct order
                                        // or a new message from another call id queue
                                        semaphore.release();
                                        if(messagesOrderingMap.isEmpty()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.