|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infoservice.Configuration
public final class Configuration
Field Summary | |
---|---|
private static Configuration |
configurationInstance
Stores the instance of Configuration (Singleton). |
private boolean |
m_bRootOfUpdateInformation
Stores, whether we are the "root" of the JAP update information (JNLP-Files + JAPMinVersion). |
private boolean |
m_bStatusStatisticsEnabled
This stores, whether status statistics are enabled (true) or not (false). |
private java.util.Vector |
m_hardwareListenerList
Stores the ListenerInterfaces of all interfaces our infoservice is bound to. |
private boolean |
m_holdForwarderList
Stores whether this infoservice should hold a list with JAP forwarders (true) or not (false). |
private int |
m_iMaxPostContentLength
Maximum size in bytes of HTTP POST data. |
private java.util.Vector |
m_initialNeighbourInfoServices
Stores the ListenerInterfaces of all neighbour infoservices declared in the config file. |
private long |
m_lStatusStatisticsInterval
Stores the interval (in ms, see System.currentTimeMillis()) between two status statistics. |
private java.io.File |
m_messageFile
|
private int |
m_NrOfThreads
Stores how many concurrent connections the InfoService can handle |
private java.util.Date |
m_startupTime
Stores the startup time of the infoservice (time when the configuration instance was created). |
private java.lang.String |
m_strID
The InfoService ID. |
private java.lang.String |
m_strJapDevelopmentJnlpFile
Stores where the japDevelopment.jnlp is located in the local file system (path + filename). |
private java.lang.String |
m_strJapMinVersionFile
Stores where the japMinVersion.xml is located in the local file system (path + filename). |
private java.lang.String |
m_strJapReleaseJnlpFile
Stores where the japRelease.jnlp is located in the local file system (path + filename). |
private java.io.File |
m_strJavaLatestVersionFile
Stores where the information about latest Java versions is located in the local file system (path + filename). |
private java.lang.String |
m_strOwnName
Stores the name of our infoservice. |
private java.lang.String |
m_strProxyAddresses
Stores the addresses of the proxy servers at the end of the cascades. |
private java.lang.String |
m_strStatusStatisticsLogDir
Stores the directory, where to write the status statistics files. |
private java.util.Vector |
m_virtualListenerList
Stores the ListenerInterfaces of all interfaces our infoservice propagates to others. |
private static java.text.SimpleDateFormat |
ms_httpDateFormat
Stores the date format information for HTTP headers. |
Constructor Summary | |
---|---|
Configuration(java.util.Properties a_properties)
|
Method Summary | |
---|---|
java.util.Vector |
getHardwareListeners()
Returns the ListenerInterfaces of all Interfaces our infoservice is locally bound to. |
static java.text.SimpleDateFormat |
getHttpDateFormat()
Returns the HTTP-header date format information. |
java.lang.String |
getID()
|
java.util.Vector |
getInitialNeighbourInfoServices()
Returns the list with ListenerInterfaces of all neighbour infoservices from the config file. |
static Configuration |
getInstance()
Returns the instance of Configuration (Singleton). |
java.lang.String |
getJapDevelopmentJnlpFile()
Returns where the japDevelopment.jnlp is located in the local file system (path + filename). |
java.lang.String |
getJapMinVersionFile()
Returns where the file with JAP minimal version number is located in the local file system (path + filename). |
java.lang.String |
getJapReleaseJnlpFile()
Returns where the japRelease.jnlp is located in the local file system (path + filename). |
java.io.File |
getJavaLatestVersionFile()
Returns where the file with Java latest version information is located in the local file system (path + filename). |
int |
getMaxPostContentLength()
Returns the maximum HTTP POST data size which will be accepted. |
java.io.File |
getMessageFile()
|
int |
getNrOfConcurrentConnections()
Returns how many concurrent connections this IS should handle |
java.lang.String |
getOwnName()
Returns the name of our infoservice. |
java.lang.String |
getProxyAddresses()
Returns the addresses of the proxy servers at the end of the cascades. |
java.util.Date |
getStartupTime()
Returns the startup time of this infoservice. |
long |
getStatusStatisticsInterval()
Returns the interval (in ms, see System.currentTimeMillis()) between two status statistics. |
java.lang.String |
getStatusStatisticsLogDir()
Returns the directory where to log the status statistics. |
java.util.Vector |
getVirtualListeners()
Returns the ListenerInterfaces of all Interfaces our infoservice propagates to others. |
boolean |
holdForwarderList()
Returns whether this infoservice holds a JAP forwarder list or not. |
boolean |
isRootOfUpdateInformation()
Returns, whether we are the root of the JAP update information (JNLP-Files + JAPMinVersion). |
boolean |
isStatusStatisticsEnabled()
This returns, whether status statistics are enabled (true) or not (false). |
private PKCS12 |
loadPkcs12PrivateKey(java.lang.String a_pkcs12FileName,
java.lang.String a_password)
Loads a PKCS12 certificate from a file. |
private JAPCertificate |
loadX509Certificate(java.lang.String a_x509FileName)
Loads a X509 certificate from a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static Configuration configurationInstance
private java.util.Vector m_initialNeighbourInfoServices
private java.util.Vector m_hardwareListenerList
private java.util.Vector m_virtualListenerList
private java.lang.String m_strOwnName
private java.lang.String m_strID
private int m_iMaxPostContentLength
private boolean m_bStatusStatisticsEnabled
private long m_lStatusStatisticsInterval
private java.lang.String m_strStatusStatisticsLogDir
private java.lang.String m_strProxyAddresses
private static java.text.SimpleDateFormat ms_httpDateFormat
private boolean m_bRootOfUpdateInformation
private java.lang.String m_strJapReleaseJnlpFile
private java.lang.String m_strJapDevelopmentJnlpFile
private java.io.File m_strJavaLatestVersionFile
private java.io.File m_messageFile
private java.lang.String m_strJapMinVersionFile
private java.util.Date m_startupTime
private boolean m_holdForwarderList
private int m_NrOfThreads
Constructor Detail |
---|
public Configuration(java.util.Properties a_properties) throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public static Configuration getInstance()
public java.util.Vector getInitialNeighbourInfoServices()
public java.util.Vector getHardwareListeners()
public int getNrOfConcurrentConnections()
public java.util.Vector getVirtualListeners()
public java.lang.String getID()
public java.lang.String getOwnName()
public int getMaxPostContentLength()
public boolean isStatusStatisticsEnabled()
public long getStatusStatisticsInterval()
public java.lang.String getStatusStatisticsLogDir()
public java.lang.String getProxyAddresses()
public static java.text.SimpleDateFormat getHttpDateFormat()
public boolean isRootOfUpdateInformation()
public java.lang.String getJapReleaseJnlpFile()
public java.lang.String getJapDevelopmentJnlpFile()
public java.io.File getJavaLatestVersionFile()
public java.io.File getMessageFile()
public java.lang.String getJapMinVersionFile()
public java.util.Date getStartupTime()
public boolean holdForwarderList()
private PKCS12 loadPkcs12PrivateKey(java.lang.String a_pkcs12FileName, java.lang.String a_password) throws java.io.FileNotFoundException
a_pkcs12FileName
- The filename (with path) of the PKCS12 file.a_password
- The password for the PKCS12 file, if necessary. If no password is necessary,
you can supply null or an empty string.
java.io.FileNotFoundException
- If the file cannot be found in the filesystem.private JAPCertificate loadX509Certificate(java.lang.String a_x509FileName)
a_x509FileName
- The filename (with path) of the X509 file.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |