public class AisBusConfiguration extends AisBusComponentConfiguration
| Constructor and Description |
|---|
AisBusConfiguration()
Instantiates a new Ais bus configuration.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBusPullMaxElements()
Gets bus pull max elements.
|
int |
getBusQueueSize()
Gets bus queue size.
|
List<AisBusConsumerConfiguration> |
getConsumers()
Gets consumers.
|
AisBus |
getInstance()
Gets instance.
|
List<AisBusProviderConfiguration> |
getProviders()
Gets providers.
|
static AisBusConfiguration |
load(InputStream in)
Load ais bus configuration.
|
static AisBusConfiguration |
load(String filename)
Load ais bus configuration.
|
static void |
save(OutputStream out,
AisBusConfiguration conf)
Save.
|
static void |
save(String filename,
AisBusConfiguration conf)
Save.
|
void |
setBusPullMaxElements(int busPullMaxElements)
Sets bus pull max elements.
|
void |
setBusQueueSize(int busQueueSize)
Sets bus queue size.
|
void |
setConsumers(List<AisBusConsumerConfiguration> consumers)
Sets consumers.
|
void |
setProviders(List<AisBusProviderConfiguration> providers)
Sets providers.
|
configure, getFilters, getTransformers, setFilters, setTransformerspublic AisBusConfiguration()
public int getBusPullMaxElements()
public void setBusPullMaxElements(int busPullMaxElements)
busPullMaxElements - the bus pull max elementspublic int getBusQueueSize()
public void setBusQueueSize(int busQueueSize)
busQueueSize - the bus queue sizepublic List<AisBusProviderConfiguration> getProviders()
public void setProviders(List<AisBusProviderConfiguration> providers)
providers - the providerspublic List<AisBusConsumerConfiguration> getConsumers()
public void setConsumers(List<AisBusConsumerConfiguration> consumers)
consumers - the consumerspublic AisBus getInstance()
AisBusComponentConfigurationgetInstance in class AisBusComponentConfigurationpublic static void save(OutputStream out, AisBusConfiguration conf) throws JAXBException
out - the outconf - the confJAXBException - the jaxb exceptionpublic static AisBusConfiguration load(InputStream in) throws JAXBException
in - the inJAXBException - the jaxb exceptionpublic static void save(String filename, AisBusConfiguration conf) throws JAXBException, FileNotFoundException
filename - the filenameconf - the confJAXBException - the jaxb exceptionFileNotFoundException - the file not found exceptionpublic static AisBusConfiguration load(String filename) throws FileNotFoundException, JAXBException
filename - the filenameFileNotFoundException - the file not found exceptionJAXBException - the jaxb exceptionCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.