Interface Dumpable

All Known Subinterfaces:
Dumpable.DumpableContainer
All Known Implementing Classes:
AbstractConnectionFactory, AbstractConnectionPool, AbstractConnector, AbstractConnectorHttpClientTransport, AbstractFlowControlStrategy, AbstractHandler, AbstractHandler.ErrorDispatchHandler, AbstractHandlerContainer, AbstractHTTP2ServerConnectionFactory, AbstractHTTP2ServerConnectionFactory.HTTP2SessionContainer, AbstractHTTP3ServerConnectionFactory, AbstractHttpClientTransport, AbstractLoginService, AbstractNetworkConnector, AbstractSessionCache, AbstractSessionDataStore, AdaptiveExecutionStrategy, ALPNServerConnectionFactory, AnnotationConfiguration.DiscoveredServletContainerInitializerHolder, AntWebAppContext, AntWebAppContext.AntServletHandler, AntWebAppContext.AntServletHolder, ArrayByteBufferPool, ArrayByteBufferPool.Retained, ArrayRetainableByteBufferPool, AsyncDelayHandler, AttributeContainerMap, AttributesMap, BaseHolder, BufferedResponseHandler, BufferingFlowControlStrategy, CachingSessionDataStore, ClassLoaderDump, ClientConnectionFactory.Info, ClientConnectionFactoryOverHTTP2, ClientConnectionFactoryOverHTTP2.HTTP2, ClientConnectionFactoryOverHTTP3, ClientConnectionFactoryOverHTTP3.HTTP3, ClientConnector, ClientConnector.ClientSelectorManager, ClientProtocolSession, ClientQuicSession, CompressionPool, ConfigurableSpnegoLoginService, Configurations, ConnectHandler, ConnectHandler.ConnectManager, ConnectionStatistics, ConnectionStatistics.Stats, ConstraintSecurityHandler, ContainerLifeCycle, ContextHandler, ContextHandler.Context, ContextHandler.StaticContext, ContextHandlerCollection, CustomRequestLog, DataSourceLoginService, DebugHandler, DefaultHandler, DefaultSessionCache, DefaultSessionIdManager, DeflaterPool, DelegatingThreadPool, DeploymentManager, DetectorConnectionFactory, DumpableCollection, DuplexConnectionPool, DuplexHttpDestination, EatWhatYouKill, ErrorHandler, ErrorPageErrorHandler, ExecutorThreadPool, ExtensionStack, FileBufferedResponseHandler, FileSessionDataStore, FilterHolder, FilterMapping, GCloudSessionDataStore, GzipHandler, HandlerCollection, HandlerList, HandlerWrapper, HashLoginService, Holder, HotSwapHandler, HTTP2Client, HTTP2ClientSession, HTTP2CServerConnectionFactory, HTTP2Flusher, HTTP2ServerConnectionFactory, HTTP2ServerSession, HTTP2Session, HTTP2Stream, HTTP3Client, HTTP3ServerConnectionFactory, HTTP3ServerConnector, HttpClient, HttpClientTransportDynamic, HttpClientTransportOverFCGI, HttpClientTransportOverHTTP, HttpClientTransportOverHTTP2, HttpClientTransportOverHTTP3, HttpClientTransportOverUnixSockets, HttpConfiguration, HttpConnectionFactory, HttpConversation, HttpDestination, HttpSpiContextHandler, IdleTimeoutHandler, IncludeExcludeConnectionStatistics, InetAccessHandler, InfinispanSessionDataStore, InflaterPool, JAASLoginService, JakartaWebSocketClientContainer, JakartaWebSocketContainer, JakartaWebSocketServerContainer, JakartaWebSocketShutdownContainer, JDBCLoginService, JDBCSessionDataStore, JettyServerFrameHandlerFactory, JettyWebSocketFrameHandlerFactory, JettyWebSocketServerContainer, KeyStoreScanner, LeakTrackingByteBufferPool, LeakTrackingConnectionPool, ListenerHolder, LocalConnector, LogarithmicArrayByteBufferPool, LogarithmicArrayByteBufferPool.LogarithmicRetainablePool, LowResourceMonitor, ManagedSelector, MappedByteBufferPool, MappedByteBufferPool.Retained, MappedByteBufferPool.Tagged, MavenServerConnector, MavenWebAppContext, MBeanContainer, MongoSessionDataStore, MonitoredQueuedThreadPool, MovedContextHandler, MultiplexConnectionPool, MultiplexHttpDestination, NamingContext, NamingDump, NegotiatingServerConnectionFactory, NetworkTrafficServerConnector, NoSqlSessionDataStore, NullSessionCache, NullSessionDataStore, OpenIdConfiguration, OpenIdLoginService, OptionalSslConnectionFactory, PathMappings, Pool, PropertiesConfigurationManager, ProtocolHandlers, ProtocolSession, ProxyConnectionFactory, ProxyConnectionFactory.ProxyEndPoint, QpackDecoder, QpackEncoder, QueuedThreadPool, QuicServerConnector, QuicSession, QuicSessionContainer, RandomConnectionPool, RawHTTP2ServerConnectionFactory, RawHTTP3ServerConnectionFactory, RequestLogHandler, ReservedThreadExecutor, ResourceHandler, RewriteCustomizer, RewriteHandler, RoundRobinConnectionPool, RuleContainer, Scanner, ScanningAppProvider, ScheduledExecutorScheduler, ScopedHandler, SecuredRedirectHandler, SecurityHandler, SelectorManager, Server, ServerConnectionStatistics, ServerConnector, ServerConnector.ServerConnectorManager, ServerFCGIConnectionFactory, ServerProtocolSession, ServerQuicSession, ServletContainerInitializerHolder, ServletContextHandler, ServletContextHandler.Context, ServletContextHandler.ServletContainerInitializerStarter, ServletHandler, ServletHolder, ServletTester, SessionHandler, SessionTracker, SessionTracker, ShutdownHandler, SimpleFlowControlStrategy, SslConnectionFactory, SslContextFactory, SslContextFactory.Client, SslContextFactory.Server, StatisticsHandler, ThreadLimitHandler, UnixSocketConnector, UnixSocketConnector.UnixSocketConnectorManager, ValidatingConnectionPool, VirtualHostRuleContainer, WebAppContext, WebAppContext.Context, WebAppProvider, WebSocketClient, WebSocketComponents, WebSocketConnection, WebSocketCoreClient, WebSocketCoreSession, WebSocketMappings, WebSocketServerComponents, WebSocketSession, WebSocketUpgradeFilter, WebSocketUpgradeHandler

@ManagedObject("Dumpable Object") public interface Dumpable
  • Field Details

  • Method Details

    • dump

      @ManagedOperation(value="Dump the nested Object state as a String", impact="INFO") default String dump()
    • dump

      void dump(Appendable out, String indent) throws IOException
      Dump this object (and children) into an Appendable using the provided indent after any new lines. The indent should not be applied to the first object dumped.
      Parameters:
      out - The appendable to dump to
      indent - The indent to apply after any new lines.
      Throws:
      IOException - if unable to write to Appendable
    • dump

      static String dump(Dumpable dumpable)
      Utility method to implement dump() by calling dump(Appendable, String)
      Parameters:
      dumpable - The dumpable to dump
      Returns:
      The dumped string
    • dumpSelf

      default String dumpSelf()
      The description of this/self found in the dump. Allows for alternative representation of Object other then .toString() where the long form output of toString() is represented in a cleaner way within the dump infrastructure.
      Returns:
      the representation of self
    • dumpObject

      static void dumpObject(Appendable out, Object o) throws IOException
      Dump just an Object (but not it's contained items) to an Appendable.
      Parameters:
      out - The Appendable to dump to
      o - The object to dump.
      Throws:
      IOException - May be thrown by the Appendable
    • dumpObjects

      static void dumpObjects(Appendable out, String indent, Object object, Object... extraChildren) throws IOException
      Dump an Object, it's contained items and additional items to an Appendable. If the object in an Iterable or an Array, then its contained items are also dumped.
      Parameters:
      out - the Appendable to dump to
      indent - The indent to apply after any new lines
      object - The object to dump. If the object is an instance of Container, Stream, Iterable, Array or Map, then children of the object a recursively dumped.
      extraChildren - Items to be dumped as children of the object, in addition to any discovered children of object
      Throws:
      IOException - May be thrown by the Appendable
    • dumpContainer

      static void dumpContainer(Appendable out, String indent, Container object, boolean last) throws IOException
      Throws:
      IOException
    • dumpIterable

      static void dumpIterable(Appendable out, String indent, Iterable<?> iterable, boolean last) throws IOException
      Throws:
      IOException
    • dumpMapEntries

      static void dumpMapEntries(Appendable out, String indent, Map<?,?> map, boolean last) throws IOException
      Throws:
      IOException
    • named

      static Dumpable named(String name, Object object)