public class Hub extends Object implements OntologyListener, ModuleActivator
Modifier and Type | Class and Description |
---|---|
static class |
Hub.Log
helper class to simplify the calls to LogUtils of MW.
|
Modifier and Type | Field and Description |
---|---|
static String |
COMMENTS
This is prepended to the above file.
|
static String |
PROPS_FILE
Name of the config properties file.
|
Constructor and Description |
---|
Hub(File configHome)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static File |
getConfigHome() |
static Hub.Log |
getLog(Class cl)
Gets a Log helper class.
|
static Properties |
getProperties()
Gets the properties of the CHe.
|
void |
ontologyAdded(String ontURI)
Notification when a new ontology is added.
|
void |
ontologyRemoved(String ontURI)
Notification when an existing ontology is removed.
|
static void |
setProperties(Properties prop)
Sets the properties of the CHe.
|
void |
setSerializer(MessageContentSerializer service)
Set the turtle parser.
|
void |
start(ModuleContext context)
To be called when application starts.
|
void |
stop(ModuleContext mc)
To be called when application stops.
|
public static final String PROPS_FILE
public static final String COMMENTS
public Hub(File configHome)
public void start(ModuleContext context)
start
in interface ModuleActivator
context
- universAAL module contextpublic final void stop(ModuleContext mc) throws Exception
stop
in interface ModuleActivator
Exception
public void setSerializer(MessageContentSerializer service)
service
- The parserpublic static void setProperties(Properties prop)
prop
- The Properties object containing ALL of the properties of the
CHegetProperties()
public static Properties getProperties()
setProperties(Properties)
public static Hub.Log getLog(Class cl)
cl
- Class that asks for a loggerpublic void ontologyAdded(String ontURI)
OntologyListener
ontologyAdded
in interface OntologyListener
ontURI
- the URI of the new ontology.public void ontologyRemoved(String ontURI)
OntologyListener
ontologyRemoved
in interface OntologyListener
ontURI
- the URI of the ontology.public static File getConfigHome()
Copyright © 2018 universAAL Consortium. All rights reserved.