Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for appendException (0.14 sec)

  1. src/test/java/org/codelibs/fess/timer/MonitorTargetTest.java

            assertTrue(result.length() > "\"timestamp\":\"\"".length());
        }
    
        // Test appendException method with simple exception
        public void test_appendException_simpleException() {
            StringBuilder buf = new StringBuilder();
            Exception exception = new RuntimeException("Test error message");
    
            monitorTarget.appendException(buf, exception);
            assertTrue(buf.toString().startsWith("\"exception\":\""));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/fess/timer/SystemMonitorTargetTest.java

                    break;
                case "appendException":
                    appendExceptionMethod = method;
                    break;
                }
            }
    
            assertNotNull("Should inherit append method", appendMethod);
            assertNotNull("Should inherit appendTimestamp method", appendTimestampMethod);
            assertNotNull("Should inherit appendException method", appendExceptionMethod);
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sun Aug 31 08:19:00 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/timer/HotThreadMonitorTarget.java

                    return tempBuf.toString();
                }).collect(Collectors.joining(","));
                buf.append(hotThreads).append(',');
            } catch (final Exception e) {
                appendException(buf, e).append(',');
            }
    
            appendTimestamp(buf);
            buf.append('}');
    
            if (logger.isInfoEnabled()) {
                logger.info(buf.toString());
            }
        }
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/timer/MonitorTarget.java

         *
         * @param buf the string buffer to append to
         * @param exception the exception to append
         * @return the updated buffer
         */
        protected StringBuilder appendException(final StringBuilder buf, final Exception exception) {
            try (ByteArrayOutputStream baos = new ByteArrayOutputStream();
                    PrintWriter writer = new PrintWriter(baos, false, Constants.CHARSET_UTF_8)) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/timer/SystemMonitorTarget.java

                try (OutputStream out = builder.getOutputStream()) {
                    stats = ((ByteArrayOutputStream) out).toString(Constants.UTF_8);
                }
            } catch (final Exception e) {
                appendException(buf, e).append(',');
            }
            buf.append("\"search_engine\":").append(stats).append(',');
        }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 7.8K bytes
    - Viewed (0)
Back to top