public class ConfigurationFile extends UpdatedPropertiesFile implements Configuration, PropertiesFileKeys
Configuration.ConnectionModepropertiesFiledefaultsCHIPER_CLASS, CONNECTION_MODE, EXPORT_ATTEMPTS, PRE_CONN_CACHE, QUEUES, REMOTE_HOST, SECURITY_DEFINITION, SERVER_THREADS, SOCKET_PORT, TIMEOUT| Constructor and Description |
|---|
ConfigurationFile(File propFile) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDefaults(Properties defaults)
to be implemented to add the default values at the start if there is no
file.
|
boolean |
getCacheBeforeConnect()
Get the configuration that states that the gateway should cache messages
before actual connection.
|
SocketCipher |
getCipher()
Get the encryption cipher to be used for the communication link.
|
String |
getComments()
Get the comments for the Property file.
|
String |
getConnectionHost()
Get the Host the Session should connect to.
|
Configuration.ConnectionMode |
getConnectionMode()
Get the Connection mode intended for the
Session represented by
this configuration. |
int |
getConnectionPort()
Get the port to connect to.
|
ParameterCheckOpertaionChain |
getExportOperationChain()
The security checks that a
BusMember has to pass in order to be
allowed to be exported. |
ParameterCheckOpertaionChain |
getImportOperationChain()
The security checks that a
ImportRequest has to
pass in order to be allowed to create a proxy for it. |
MessageOperationChain |
getIncomingMessageOperationChain()
The security checks that an incoming
WrappedBusMessage has to
pass in order to be allowed to interpreted by the proxy. |
int |
getMaxExportAttempts()
Get the max Export Attempts.
|
long |
getMaxQueueSize()
Get the max message queue size.
|
MessageOperationChain |
getOutgoingMessageOperationChain()
The security checks that an outgoing
WrappedBusMessage has to
pass in order to be allowed to transmitted to peer. |
int |
getServerThreads()
Get the configuration of threads for the server.
|
long |
getTimeout()
Get the configured maximum time for timeouts.
|
String |
toString() |
checkPropertiesVersion, getProperty, getProperty, loadProperties, setProperty, storePropertieslist, list, load, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNamesclear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keys, keySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, size, valuespublic ConfigurationFile(File propFile)
public String getComments()
UpdatedPropertiesFilegetComments in class UpdatedPropertiesFileprotected void addDefaults(Properties defaults)
UpdatedPropertiesFileaddDefaults in class UpdatedPropertiesFilepublic Configuration.ConnectionMode getConnectionMode()
Session represented by
this configuration.getConnectionMode in interface Configurationpublic String getConnectionHost()
clients this is the hostname of the
server. servers this is the interface they have
to listen to (default should be 0.0.0.0, i.e: all).getConnectionHost in interface Configurationpublic int getConnectionPort()
clients this is the port which the
server is set up at. servers this is the port which they
have to listen to.getConnectionPort in interface Configurationpublic ParameterCheckOpertaionChain getImportOperationChain()
ImportRequest has to
pass in order to be allowed to create a proxy for it.getImportOperationChain in interface OperationChainManagerpublic ParameterCheckOpertaionChain getExportOperationChain()
BusMember has to pass in order to be
allowed to be exported.getExportOperationChain in interface OperationChainManagerpublic MessageOperationChain getIncomingMessageOperationChain()
WrappedBusMessage has to
pass in order to be allowed to interpreted by the proxy.getIncomingMessageOperationChain in interface OperationChainManagerpublic MessageOperationChain getOutgoingMessageOperationChain()
WrappedBusMessage has to
pass in order to be allowed to transmitted to peer.getOutgoingMessageOperationChain in interface OperationChainManagerpublic SocketCipher getCipher()
getCipher in interface ConfigurationSocketCipher implementation configured for this link.public long getTimeout()
getTimeout in interface Configurationpublic boolean getCacheBeforeConnect()
getCacheBeforeConnect in interface Configurationpublic long getMaxQueueSize()
getMaxQueueSize in interface Configurationpublic int getMaxExportAttempts()
getMaxExportAttempts in interface Configurationpublic int getServerThreads()
getServerThreads in interface ConfigurationCopyright © 2018 universAAL Consortium. All rights reserved.