Package io.deephaven.server.jetty
Class CommunityComponentFactory
java.lang.Object
io.deephaven.server.runner.ComponentFactoryBase<CommunityComponentFactory.CommunityComponent>
io.deephaven.server.jetty.CommunityComponentFactory
public final class CommunityComponentFactory
extends ComponentFactoryBase<CommunityComponentFactory.CommunityComponent>
The out-of-the-box
CommunityComponentFactory.CommunityComponent
factory for the Deephaven community server.
To use this directly, a main class can be configured as follows:
public final class MyMainClass { public static void main(String[] args) throws IOException, InterruptedException, ClassNotFoundException, TimeoutException { final Configuration configuration = MainHelper.init(args, MyMainClass.class); new CommunityComponentFactory() .build(configuration) .getServer() .run() .join(); } }Advanced integrators should prefer to create their own component factory that extends
ComponentFactoryBase
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
The out-of-the-box communityComponent
.static interface
The out-of-the-box communityModule
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(Configuration configuration, PrintStream out, PrintStream err) Constructs a component according to theconfiguration
, invokingDeephavenApiServerComponent.Builder.withOut(PrintStream)
without
andDeephavenApiServerComponent.Builder.withErr(PrintStream)
witherr
.Methods inherited from class io.deephaven.server.runner.ComponentFactoryBase
build
-
Constructor Details
-
CommunityComponentFactory
public CommunityComponentFactory()
-
-
Method Details
-
build
public CommunityComponentFactory.CommunityComponent build(Configuration configuration, PrintStream out, PrintStream err) Description copied from class:ComponentFactoryBase
Constructs a component according to theconfiguration
, invokingDeephavenApiServerComponent.Builder.withOut(PrintStream)
without
andDeephavenApiServerComponent.Builder.withErr(PrintStream)
witherr
.- Specified by:
build
in classComponentFactoryBase<CommunityComponentFactory.CommunityComponent>
- Parameters:
configuration
- the configurationout
- the outerr
- the err- Returns:
- the component
-