GrammarScope  4.0.0
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
grammarscope.browser.Client Class Referenceabstract
Inheritance diagram for grammarscope.browser.Client:
Inheritance graph
[legend]
Collaboration diagram for grammarscope.browser.Client:
Collaboration graph
[legend]

Public Member Functions

 Client ()
 
void onServerBound (final boolean success)
 
- Public Member Functions inherited from grammarscope.queue.ServerLock
boolean getState ()
 
void lock (final Observable observable)
 

Protected Member Functions

void initClient (final Properties clientProperties, final String[] args)
 
void clearClient ()
 
void updateClient (final Properties clientProperties)
 
void bindToServer ()
 
void setup (final Properties properties)
 
void checkCoreNlp ()
 
- Protected Member Functions inherited from grammarscope.queue.ServerLock
void resetLock ()
 

Protected Attributes

IServer server
 
IBuilder builder
 
boolean useNullServer
 
boolean loadServer
 
Properties clientProperties
 

Private Member Functions

String getServerClass ()
 
void setup (final String[] args)
 

Private Attributes

boolean useCoreNlp
 
boolean useJBoss
 
boolean useGlassfish
 
boolean useArtifacts
 

Static Private Attributes

static final String NULL_SERVER_CLASS = "grammarscope.server.NullServer"
 
static final String PARSER_SERVER_CLASS = "grammarscope.glue.parser.Server"
 
static final String CORENLP_SERVER = "grammarscope.glue.corenlp.Server"
 
static final String EJB_PARSER_SERVER = "grammarscope.ejb.client.parser.Server"
 
static final String EJB_CORENLP_SERVER = "grammarscope.ejb.client.corenlp.Server"
 
static final String EJB_PARSER_ARTIFACTS_SERVER = "grammarscope.artifacts.ejb.client.parser.Server"
 
static final String EJB_CORENLP_ARTIFACTS_SERVER = "grammarscope.artifacts.ejb.client.corenlp.Server"
 

Detailed Description

Client

Author
Bernard Bou

Constructor & Destructor Documentation

◆ Client()

grammarscope.browser.Client.Client ( )

Constructor

Member Function Documentation

◆ bindToServer()

void grammarscope.browser.Client.bindToServer ( )
protected

Bind asynchronously

◆ checkCoreNlp()

void grammarscope.browser.Client.checkCoreNlp ( )
protected

CoreNLP check

◆ clearClient()

void grammarscope.browser.Client.clearClient ( )
protected

◆ getServerClass()

String grammarscope.browser.Client.getServerClass ( )
private

Select server class as per switches

Returns
server class name

◆ initClient()

void grammarscope.browser.Client.initClient ( final Properties  clientProperties,
final String[]  args 
)
protected

Initialize

Parameters
clientPropertiesclient properties
argscommand-line arguments

◆ onServerBound()

void grammarscope.browser.Client.onServerBound ( final boolean  success)

Server ready callback

Parameters
successwhether loading was successful

Reimplemented from grammarscope.queue.ServerLock.

Reimplemented in grammarscope.browser.Browser.

◆ setup() [1/2]

void grammarscope.browser.Client.setup ( final Properties  properties)
protected

Update client settings

Parameters
propertiesproperties

◆ setup() [2/2]

void grammarscope.browser.Client.setup ( final String[]  args)
private

Make settings allowing for overrides on command line

Parameters
argscommand line arguments

◆ updateClient()

void grammarscope.browser.Client.updateClient ( final Properties  clientProperties)
protected

Update

Parameters
clientPropertiesclient properties

Member Data Documentation

◆ builder

IBuilder grammarscope.browser.Client.builder
protected

Document factory builder

◆ clientProperties

Properties grammarscope.browser.Client.clientProperties
protected

Server settings

◆ CORENLP_SERVER

final String grammarscope.browser.Client.CORENLP_SERVER = "grammarscope.glue.corenlp.Server"
staticprivate

◆ EJB_CORENLP_ARTIFACTS_SERVER

final String grammarscope.browser.Client.EJB_CORENLP_ARTIFACTS_SERVER = "grammarscope.artifacts.ejb.client.corenlp.Server"
staticprivate

◆ EJB_CORENLP_SERVER

final String grammarscope.browser.Client.EJB_CORENLP_SERVER = "grammarscope.ejb.client.corenlp.Server"
staticprivate

◆ EJB_PARSER_ARTIFACTS_SERVER

final String grammarscope.browser.Client.EJB_PARSER_ARTIFACTS_SERVER = "grammarscope.artifacts.ejb.client.parser.Server"
staticprivate

◆ EJB_PARSER_SERVER

final String grammarscope.browser.Client.EJB_PARSER_SERVER = "grammarscope.ejb.client.parser.Server"
staticprivate

◆ loadServer

boolean grammarscope.browser.Client.loadServer
protected

Load server

◆ NULL_SERVER_CLASS

final String grammarscope.browser.Client.NULL_SERVER_CLASS = "grammarscope.server.NullServer"
staticprivate

◆ PARSER_SERVER_CLASS

final String grammarscope.browser.Client.PARSER_SERVER_CLASS = "grammarscope.glue.parser.Server"
staticprivate

◆ server

IServer grammarscope.browser.Client.server
protected

Server

◆ useArtifacts

boolean grammarscope.browser.Client.useArtifacts
private

Use Artifacts

◆ useCoreNlp

boolean grammarscope.browser.Client.useCoreNlp
private

Use Core NLP

◆ useGlassfish

boolean grammarscope.browser.Client.useGlassfish
private

Use Glassfish

◆ useJBoss

boolean grammarscope.browser.Client.useJBoss
private

Use JBoss

◆ useNullServer

boolean grammarscope.browser.Client.useNullServer
protected

Use no provider


The documentation for this class was generated from the following file: