GroupData(Thread thread) { id = thread.getId(); content = thread.toString(); } }
@Override public void onCreate (final SurfaceHolder surfaceHolder) { if (DEBUG) Log.d(TAG, " > AndroidWallpaperEngine - onCreate() " + hashCode() + " running: " + engines + ", linked: " + (linkedEngine == this) + ", thread: " + Thread.currentThread().toString()); super.onCreate(surfaceHolder); }
@Override public void onCreate (final SurfaceHolder surfaceHolder) { if (DEBUG) Log.d(TAG, " > AndroidWallpaperEngine - onCreate() " + hashCode() + " running: " + engines + ", linked: " + (linkedEngine == this) + ", thread: " + Thread.currentThread().toString()); super.onCreate(surfaceHolder); }
static public String stringDoubleCheck() { if (s == null) { synchronized (lock) { if (s == null) s = Thread.currentThread().toString(); } } return s; }
public LogRecord() { super(); _millis = System.currentTimeMillis(); _category = "Debug"; _message = ""; _level = LogLevel.INFO; _sequenceNumber = getNextId(); _thread = Thread.currentThread().toString(); _ndc = ""; _location = ""; }
/** * The Constructor. * @param thread The Thread to capture. */ BasicThreadInformation(final Thread thread) { this.id = thread.getId(); this.name = thread.getName(); this.longName = thread.toString(); this.state = thread.getState(); this.priority = thread.getPriority(); this.isAlive = thread.isAlive(); this.isDaemon = thread.isDaemon(); final ThreadGroup group = thread.getThreadGroup(); threadGroupName = group == null ? null : group.getName(); }
public void run() { if (log != null) { log.debug("[{}] scanning {}", Thread.currentThread().toString(), url); } scan(url); } }));
@ManagedOperation(description="Lists the in-flight threads") protected String printInFlightThreads() { StringBuilder sb=new StringBuilder(); for(Thread thread: in_flight_threads.keySet()) sb.append(thread.toString()).append("\n"); return sb.toString(); }
@Override public String toString() { return "ReqContext{" + "realPrincipal=" + ((realPrincipal != null) ? realPrincipal.getName() : "null") + ", reqID=" + reqID + ", remoteAddr=" + remoteAddr + ", authZPrincipal=" + ((principal() != null) ? principal().getName() : "null") + ", ThreadId=" + Thread.currentThread().toString() + '}'; }
public void run() { if (log != null && log.isDebugEnabled()) log.debug("[" + Thread.currentThread().toString() + "] scanning " + url); scan(url); } }));
public void uncaughtException(Thread thread, Throwable thrown) { listener.handleError("Uncaught exception thrown in "+thread.toString(), thrown); } });
public void uncaughtException(Thread thread, Throwable thrown) { listener.handleError("Exception thrown in " + thread.toString(), thrown); } });
public void uncaughtException(Thread thread, Throwable thrown) { listener.handleError("Uncaught exception thrown in "+thread.toString(), thrown); } });
private static String stackTraceAllStr(int numFrames, boolean printWarning) { Set<Map.Entry<Thread, StackTraceElement[]>> traces = Thread.getAllStackTraces().entrySet(); StringBuilder buf = new StringBuilder(); for (Map.Entry<Thread, StackTraceElement[]> t : traces) { buf.append(t.getKey().toString()); buf.append(LINE_SEPARATOR); buf.append(LINE_SEPARATOR); StackTraceElement[] st = t.getValue(); buf.append(stackTraceStr("\t", st, 0, numFrames, printWarning)); buf.append(LINE_SEPARATOR); } return buf.toString(); }
@Override public String format(LogRecord record) { String message = super.format(record); return THREAD_PATTERN.matcher(message).replaceAll(Thread.currentThread().toString()); } }
@Override public void uncaughtException(Thread thread, Throwable thrown) { listener.handleError("Uncaught exception thrown in " + thread.toString(), thrown); if (needClose.get()) { // listener.handleError() has requested the // context to close. Satisfy request. deinitInThread(); } } });
public void uncaughtException(Thread thread, Throwable thrown) { listener.handleError("Uncaught exception thrown in "+thread.toString(), thrown); if (needClose.get()){ // listener.handleError() has requested the // context to close. Satisfy request. deinitInThread(); } } });
}).toString(); //indent:4 exp:4
listener.handleError("Uncaught exception thrown in " + thread.toString(), thrown); if (needClose.get()) {
assertTrue(unsubscribeThread.toString(), unsubscribeThread == uiEventLoop.getThread());