public abstract class Client extends ServerLock
Modifier and Type | Field and Description |
---|---|
protected IBuilder |
builder
Document factory builder
|
protected java.util.Properties |
clientProperties
Server settings
|
private static java.lang.String |
CORENLP_SERVER |
private static java.lang.String |
EJB_CORENLP_ARTIFACTS_SERVER |
private static java.lang.String |
EJB_CORENLP_SERVER |
private static java.lang.String |
EJB_PARSER_ARTIFACTS_SERVER |
private static java.lang.String |
EJB_PARSER_SERVER |
protected boolean |
loadServer
Load server
|
private static java.lang.String |
NULL_SERVER_CLASS |
private static java.lang.String |
PARSER_SERVER_CLASS |
protected IServer |
server
Server
|
private boolean |
useArtifacts
Use Artifacts
|
private boolean |
useCoreNlp
Use Core NLP
|
private boolean |
useGlassfish
Use Glassfish
|
private boolean |
useJBoss
Use JBoss
|
protected boolean |
useNullServer
Use no provider
|
Constructor and Description |
---|
Client()
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
bindToServer()
Bind asynchronously
|
protected void |
checkCoreNlp()
CoreNLP check
|
protected void |
clearClient() |
private java.lang.String |
getServerClass()
Select server class as per switches
|
protected void |
initClient(java.util.Properties clientProperties,
java.lang.String[] args)
Initialize
|
void |
onServerBound(boolean success)
Server ready callback
|
protected void |
setup(java.util.Properties properties)
Update client settings
|
private void |
setup(java.lang.String[] args)
Make settings allowing for overrides on command line
|
protected void |
updateClient(java.util.Properties clientProperties)
Update
|
getState, lock, resetLock
private static final java.lang.String NULL_SERVER_CLASS
private static final java.lang.String PARSER_SERVER_CLASS
private static final java.lang.String CORENLP_SERVER
private static final java.lang.String EJB_PARSER_SERVER
private static final java.lang.String EJB_CORENLP_SERVER
private static final java.lang.String EJB_PARSER_ARTIFACTS_SERVER
private static final java.lang.String EJB_CORENLP_ARTIFACTS_SERVER
protected IServer server
protected IBuilder builder
protected boolean useNullServer
protected boolean loadServer
private boolean useCoreNlp
private boolean useJBoss
private boolean useGlassfish
private boolean useArtifacts
protected java.util.Properties clientProperties
protected void initClient(java.util.Properties clientProperties, java.lang.String[] args)
clientProperties
- client propertiesargs
- command-line argumentsprotected void clearClient()
protected void updateClient(java.util.Properties clientProperties)
clientProperties
- client propertiesprotected void bindToServer()
private java.lang.String getServerClass()
private void setup(java.lang.String[] args)
args
- command line argumentsprotected void setup(java.util.Properties properties)
properties
- propertiesprotected void checkCoreNlp()
public void onServerBound(boolean success)
onServerBound
in interface IServerListener
onServerBound
in class ServerLock
success
- whether loading was successful