public class ConfigurationFile extends UpdatedPropertiesFile implements Configuration, PropertiesFileKeys
Configuration.ConnectionMode
propertiesFile
defaults
CHIPER_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, storeProperties
list, list, load, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNames
clear, 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, values
public ConfigurationFile(File propFile)
public String getComments()
UpdatedPropertiesFile
getComments
in class UpdatedPropertiesFile
protected void addDefaults(Properties defaults)
UpdatedPropertiesFile
addDefaults
in class UpdatedPropertiesFile
public Configuration.ConnectionMode getConnectionMode()
Session
represented by
this configuration.getConnectionMode
in interface Configuration
public 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 Configuration
public 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 Configuration
public ParameterCheckOpertaionChain getImportOperationChain()
ImportRequest
has to
pass in order to be allowed to create a proxy for it.getImportOperationChain
in interface OperationChainManager
public ParameterCheckOpertaionChain getExportOperationChain()
BusMember
has to pass in order to be
allowed to be exported.getExportOperationChain
in interface OperationChainManager
public MessageOperationChain getIncomingMessageOperationChain()
WrappedBusMessage
has to
pass in order to be allowed to interpreted by the proxy.getIncomingMessageOperationChain
in interface OperationChainManager
public MessageOperationChain getOutgoingMessageOperationChain()
WrappedBusMessage
has to
pass in order to be allowed to transmitted to peer.getOutgoingMessageOperationChain
in interface OperationChainManager
public SocketCipher getCipher()
getCipher
in interface Configuration
SocketCipher
implementation configured for this link.public long getTimeout()
getTimeout
in interface Configuration
public boolean getCacheBeforeConnect()
getCacheBeforeConnect
in interface Configuration
public long getMaxQueueSize()
getMaxQueueSize
in interface Configuration
public int getMaxExportAttempts()
getMaxExportAttempts
in interface Configuration
public int getServerThreads()
getServerThreads
in interface Configuration
Copyright © 2018 universAAL Consortium. All rights reserved.