Examples of logDebug()


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(), 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()

//                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()

                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()

                          Semaphore newSemaphore = new Semaphore(1, true);
                          semaphore = messagesOrderingMap.putIfAbsent(callId, newSemaphore);
                          if(semaphore == null) {
                            semaphore = newSemaphore;      
                            if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
                              stackLogger.logDebug("semaphore added for message " + message);
                            }
                          }
                        }
                        final Semaphore callIdSemaphore = semaphore;    
                        if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
View Full Code Here

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

                            }
                          }
                        }
                        final Semaphore callIdSemaphore = semaphore;    
                        if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
                          stackLogger.logDebug("trying to acquiring semaphore for message " + message);
                        }
                        // we try to acquire here so that if the result if false because it is already acquired
                        // we acquire it in the thread to avoid blocking other messages with a different call id
                        // that could be processed in parallel
                        final boolean acquired = callIdSemaphore.tryAcquire(0, TimeUnit.SECONDS);                                               
View Full Code Here

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

                          public void run() {
                            // if it was not acquired above
                            // we acquire it in the thread to avoid blocking other messages with a different call id
                                // that could be processed in parallel
                            if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
                        stackLogger.logDebug("semaphore acquired " + acquired +  " for message " + message);
                      }
                            if(!acquired) {
                              try {
                                if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
                                          stackLogger.logDebug("trying to acquiring semaphore for message " + message);
View Full Code Here

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

                        stackLogger.logDebug("semaphore acquired " + acquired +  " for message " + message);
                      }
                            if(!acquired) {
                              try {
                                if (stackLogger.isLoggingEnabled(StackLogger.TRACE_DEBUG)) {
                                          stackLogger.logDebug("trying to acquiring semaphore for message " + message);
                                        }
                      callIdSemaphore.acquire();
                    } catch (InterruptedException e) {
                      stackLogger.logError("Semaphore acquisition for message " + message + " interrupted", e);
                    }
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.