public class Server extends java.lang.Object implements IServer, IBuilder
Modifier and Type | Field and Description |
---|---|
private Pipeline |
pipeline
Pipeline
|
private java.util.Properties |
settings
Settings reference
|
Constructor and Description |
---|
Server()
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
bind()
Load all submodules (segmenter, parser, analyzer, ...)
|
long |
getCapabilities()
Get server capabilities
|
java.util.Properties |
getDefaultConfig(Language lang)
Get server config
|
java.lang.String |
getDescription()
Get server description
|
Options |
getOptions()
Get server options
|
IDocumentFactory |
makeDocumentFactory()
Make document factory
|
private static Pipeline |
makePipeline(java.util.Properties properties)
Make pipeline
|
RelationModel |
makeRelationModel()
Make relation model
|
void |
reset()
Reset
|
void |
setup(java.util.Properties settings)
Pass config
|
void |
unbind()
Unbind
|
private Pipeline pipeline
private java.util.Properties settings
public void setup(java.util.Properties settings)
IServer
public void reset()
IServer
public boolean bind()
IServer
public void unbind()
IServer
private static Pipeline makePipeline(java.util.Properties properties)
properties
- properties to build pipeline frompublic long getCapabilities()
IServer
getCapabilities
in interface IServer
public java.lang.String getDescription()
IServer
getDescription
in interface IServer
public Options getOptions()
IServer
getOptions
in interface IServer
public IDocumentFactory makeDocumentFactory()
IBuilder
makeDocumentFactory
in interface IBuilder
public RelationModel makeRelationModel()
IBuilder
makeRelationModel
in interface IBuilder
public java.util.Properties getDefaultConfig(Language lang)
IServer
getDefaultConfig
in interface IServer