|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tranche.commons.ConfigurationUtil
org.tranche.ConfigureTranche
public class ConfigureTranche
This is here to load a Tranche network's configuration information, including servers and certificates.
| Field Summary | |
|---|---|
static java.lang.String |
CATEGORY_BANNED_SERVERS
The banned servers category. |
static java.lang.String |
CATEGORY_CERTIFICATES
The certificates category. |
static java.lang.String |
CATEGORY_CORE_SERVERS
The core servers category. |
static java.lang.String |
CATEGORY_GENERAL
The general category. |
static java.lang.String |
CATEGORY_LOGGING
The logging category. |
static java.lang.String |
CATEGORY_NETWORK_TIME_SERVERS
The network time servers category. |
static java.lang.String |
CATEGORY_SERVER
The server category. |
static java.lang.String |
DEFAULT_CONFIG_FILE_LOCATION
|
static java.lang.String |
PROP_ADMIN_EMAIL_ACCOUNTS
A comma-separated list of email addresses to which email notifications will be sent. |
static java.lang.String |
PROP_CONNECTION_FULL_HASH_SPAN_THRESHOLD
The number of servers at which only a single full hash span of servers are connected to. |
static java.lang.String |
PROP_CONNECTION_TIMEOUTS
The number of timeout exceptions to allow in a row before flagging a server offline. |
static java.lang.String |
PROP_CONTACT_EMAIL
The email address for users to contact. |
static java.lang.String |
PROP_CONTACT_URL
The URL where users can contact the administrators. |
static java.lang.String |
PROP_DATA_URL
The URL of the data set's descriptive information. |
static java.lang.String |
PROP_DEFUNCT_SERVER_THRESHOLD
Servers that are offline and do not update within this time get removed from the table. |
static java.lang.String |
PROP_DESCRIPTION
The description of the repository. |
static java.lang.String |
PROP_DOWNLOAD_TOOL_URL
The URL used to launch the Tranche Downloader Java Web Start application. |
static java.lang.String |
PROP_EMAIL_URL
The URL to HTTP POST email requests. |
static java.lang.String |
PROP_HOME_URL
The URL for the repository web site. |
static java.lang.String |
PROP_KEEP_ALIVE_INTERVAL
The number of milliseconds between sending a ping to each connected server to keep the socket alive. |
static java.lang.String |
PROP_LAUNCH_TRANCHE_URL
The URL used to launch the Tranche Java Web Start application. |
static java.lang.String |
PROP_LOG_DOWNLOAD_FAILURE
The URL to which the software will register failed downloads. |
static java.lang.String |
PROP_LOG_DOWNLOAD_URL
The URL to which the software will register downloads. |
static java.lang.String |
PROP_LOG_ERROR_URL
The URL to which the software will submit error logs. |
static java.lang.String |
PROP_LOG_SERVER_URL
The URL to which the software will submit server logs. |
static java.lang.String |
PROP_LOG_UPLOAD_FAILURE_URL
The URL to which the software will register upload failures. |
static java.lang.String |
PROP_LOG_UPLOAD_URL
The URL to which the software will register uploads. |
static java.lang.String |
PROP_NAME
The name of the repository. |
static java.lang.String |
PROP_PROJECT_CACHE_HASH
The Tranche hash of the project cache. |
static java.lang.String |
PROP_PROJECT_CACHE_URL
The URL of the project cache. |
static java.lang.String |
PROP_PUBLISH_PASSPHRASE_URL
The URL where a user can go to publish their data sets. |
static java.lang.String |
PROP_REPLICATIONS
The number of replications required for each chunk of data. |
static java.lang.String |
PROP_SECURITY_CERTIFICATE_ADMIN
The location of the public certificate for the administrator (all priveleges). |
static java.lang.String |
PROP_SECURITY_CERTIFICATE_ANONYMOUS
The location of the public certificate for the anonymous user. |
static java.lang.String |
PROP_SECURITY_CERTIFICATE_AUTOCERT
The location of the public certificate for the auto-certificate user (read, write). |
static java.lang.String |
PROP_SECURITY_CERTIFICATE_EMAIL
The location of the public certificate for the email user. |
static java.lang.String |
PROP_SECURITY_CERTIFICATE_READ
The location of the public certificate for the read-only user. |
static java.lang.String |
PROP_SECURITY_CERTIFICATE_USER
The location of the public certificate for the standard user (read, write, delete). |
static java.lang.String |
PROP_SECURITY_CERTIFICATE_WRITE
The location of the public certificate for the write-only user. |
static java.lang.String |
PROP_SECURITY_KEY_ANONYMOUS
The location of the private key for the anonymous user. |
static java.lang.String |
PROP_SECURITY_KEY_EMAIL
The location of the private key for the email user. |
static java.lang.String |
PROP_SERVER_CLIENTS_MAX
The maximum number of clients that can concurrently connect to a server. |
static java.lang.String |
PROP_SERVER_CONFIG_ATTR_URL
The URL of the updated server configuration attributes. |
static java.lang.String |
PROP_SERVER_DIRECTORY
The starting location of the directory that contains all the server configuration and runtime files. |
static java.lang.String |
PROP_SERVER_KEEP_ALIVE_TIMEOUT
The maximum number of milliseconds before a request that is being kept alive is timed out. |
static java.lang.String |
PROP_SERVER_OFFLINE_NOTIFICATION_INTERVAL
The number of milliseconds between sending offline server notification emails. |
static java.lang.String |
PROP_SERVER_PORT
The starting port number for a server. |
static java.lang.String |
PROP_SERVER_QUEUE_SIZE
The maximum number of requests a client can have outstanding on a server. |
static java.lang.String |
PROP_SERVER_SERVER_SIMULTANEOUS_REQUESTS
The number of requests a single server can have executed simultaneously on a server. |
static java.lang.String |
PROP_SERVER_SSL
The starting boolean for whether a server should communicate over SSL. |
static java.lang.String |
PROP_SERVER_TIME_BETWEEN_REGISTRATIONS
The amount of time that may pass before reregistering the local server with connected servers in the server status update process. |
static java.lang.String |
PROP_SERVER_TIMEOUT
The maximum number of milliseconds before a request to a server times out if it doesn't send back a feep-alive signal. |
static java.lang.String |
PROP_SERVER_USER_SIMULTANEOUS_REQUESTS
The number of requests a single user can have executed simultaneously on a server. |
static java.lang.String |
PROP_SIGN_UP_URL
The URL for users to sign up for the repository. |
static java.lang.String |
PROP_STATUS_UPDATE_CLIENT_FREQUENCY
The number of milliseconds between updating the network status table on a client. |
static java.lang.String |
PROP_STATUS_UPDATE_SERVER_FREQUENCY
The number of milliseconds between updating the network status table on a server. |
static java.lang.String |
PROP_STATUS_UPDATE_SERVER_GROUPING
The number of servers in a network status table group. |
static java.lang.String |
PROP_TIME_CHANGE_CHECK_DEVIATION
The number of milliseconds the actual timestamp can deviate from the expected timestamp before resetting the network time. |
static java.lang.String |
PROP_TIME_CHANGE_CHECK_INTERVAL
The number of milliseconds between checking if the system time has been changed significantly. |
static java.lang.String |
PROP_TIME_UPDATE_INTERVAL
The number of milliseconds between forcing a reset of the network time. |
static java.lang.String |
PROP_TIME_UPDATE_TIMEOUT
The timeout per NT server request. |
static java.lang.String |
PROP_UPDATE_CONFIG_INTERVAL
The number of milliseconds between updating the configuration. |
static java.lang.String |
PROP_UPDATE_CONFIG_URL
The URL where an updated configuration file can be found. |
static java.lang.String |
PROP_UPLOAD_TOOL_URL
The URL used to launch the Tranche Uploader Java Web Start application. |
static java.lang.String |
PROP_USER_LOG_IN_URL
The URL where users can log in to get their valid user zip files. |
| Fields inherited from class org.tranche.commons.ConfigurationUtil |
|---|
CATEGORY_DEBUG, CATEGORY_DEFAULT |
| Constructor Summary | |
|---|---|
protected |
ConfigureTranche()
|
| Method Summary | |
|---|---|
static java.lang.String[] |
getAdminEmailAccounts()
Returns a string array of administrator email addresses. |
static java.util.Map<java.lang.String,java.lang.String> |
getServerConfigurationAttributes()
Returns network-wide server attributes from URL. |
static void |
load(java.io.InputStream configFileStream)
|
static void |
load(java.lang.String configFile)
|
static void |
load(java.lang.String[] args)
|
static void |
update()
|
static void |
waitForStartup()
|
| Methods inherited from class org.tranche.commons.ConfigurationUtil |
|---|
clear, clearAll, clearAllDefaults, clearDefaults, get, get, getBoolean, getBoolean, getCategoryNames, getDefault, getDefault, getDefaultList, getDefaultList, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getList, getList, getLong, getLong, getPropertyNames, loadDefaults, loadDefaults, loadDefaults, openStreamToFile, readLine, readLineIgnoreComments, remove, remove, removeDefault, removeDefault, removeDefaultList, removeDefaultList, removeList, removeList, set, set, setDefault, setDefault, setDefaultList, setDefaultList, setDefaultList, setList, setList, setList, setList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CATEGORY_GENERAL
The general category.
public static final java.lang.String PROP_ADMIN_EMAIL_ACCOUNTS
A comma-separated list of email addresses to which email notifications will be sent.
public static final java.lang.String PROP_CONNECTION_FULL_HASH_SPAN_THRESHOLD
The number of servers at which only a single full hash span of servers are connected to.
public static final java.lang.String PROP_KEEP_ALIVE_INTERVAL
The number of milliseconds between sending a ping to each connected server to keep the socket alive.
public static final java.lang.String PROP_CONNECTION_TIMEOUTS
The number of timeout exceptions to allow in a row before flagging a server offline.
public static final java.lang.String PROP_CONTACT_EMAIL
The email address for users to contact.
public static final java.lang.String PROP_CONTACT_URL
The URL where users can contact the administrators.
public static final java.lang.String PROP_DESCRIPTION
The description of the repository.
public static final java.lang.String PROP_EMAIL_URL
The URL to HTTP POST email requests.
public static final java.lang.String PROP_HOME_URL
The URL for the repository web site.
public static final java.lang.String PROP_LAUNCH_TRANCHE_URL
The URL used to launch the Tranche Java Web Start application.
public static final java.lang.String PROP_DOWNLOAD_TOOL_URL
The URL used to launch the Tranche Downloader Java Web Start application.
public static final java.lang.String PROP_UPLOAD_TOOL_URL
The URL used to launch the Tranche Uploader Java Web Start application.
public static final java.lang.String PROP_NAME
The name of the repository.
public static final java.lang.String PROP_PROJECT_CACHE_HASH
The Tranche hash of the project cache. The project cache URL will be tried first.
public static final java.lang.String PROP_PROJECT_CACHE_URL
The URL of the project cache.
public static final java.lang.String PROP_PUBLISH_PASSPHRASE_URL
The URL where a user can go to publish their data sets.
public static final java.lang.String PROP_DATA_URL
The URL of the data set's descriptive information.
public static final java.lang.String PROP_REPLICATIONS
The number of replications required for each chunk of data.
public static final java.lang.String PROP_SIGN_UP_URL
The URL for users to sign up for the repository.
public static final java.lang.String PROP_DEFUNCT_SERVER_THRESHOLD
Servers that are offline and do not update within this time get removed from the table.
public static final java.lang.String PROP_STATUS_UPDATE_CLIENT_FREQUENCY
The number of milliseconds between updating the network status table on a client.
public static final java.lang.String PROP_STATUS_UPDATE_SERVER_FREQUENCY
The number of milliseconds between updating the network status table on a server.
public static final java.lang.String PROP_STATUS_UPDATE_SERVER_GROUPING
The number of servers in a network status table group. Used in server status propagation.
public static final java.lang.String PROP_USER_LOG_IN_URL
The URL where users can log in to get their valid user zip files.
public static final java.lang.String PROP_UPDATE_CONFIG_URL
The URL where an updated configuration file can be found. The update will occur at regular intervals at about the same time on all clients and servers. If the location for certificate files has changed, they will be reloaded from the new location.
public static final java.lang.String PROP_UPDATE_CONFIG_INTERVAL
The number of milliseconds between updating the configuration.
public static final java.lang.String CATEGORY_CORE_SERVERS
The core servers category.
public static final java.lang.String CATEGORY_BANNED_SERVERS
The banned servers category.
public static final java.lang.String CATEGORY_CERTIFICATES
The certificates category.
public static final java.lang.String PROP_SECURITY_CERTIFICATE_ADMIN
The location of the public certificate for the administrator (all priveleges).
public static final java.lang.String PROP_SECURITY_CERTIFICATE_ANONYMOUS
The location of the public certificate for the anonymous user.
public static final java.lang.String PROP_SECURITY_CERTIFICATE_AUTOCERT
The location of the public certificate for the auto-certificate user (read, write).
public static final java.lang.String PROP_SECURITY_CERTIFICATE_EMAIL
The location of the public certificate for the email user.
public static final java.lang.String PROP_SECURITY_CERTIFICATE_READ
The location of the public certificate for the read-only user.
public static final java.lang.String PROP_SECURITY_CERTIFICATE_USER
The location of the public certificate for the standard user (read, write, delete).
public static final java.lang.String PROP_SECURITY_CERTIFICATE_WRITE
The location of the public certificate for the write-only user.
public static final java.lang.String PROP_SECURITY_KEY_ANONYMOUS
The location of the private key for the anonymous user.
public static final java.lang.String PROP_SECURITY_KEY_EMAIL
The location of the private key for the email user.
public static final java.lang.String CATEGORY_LOGGING
The logging category.
public static final java.lang.String PROP_LOG_DOWNLOAD_FAILURE
The URL to which the software will register failed downloads.
public static final java.lang.String PROP_LOG_DOWNLOAD_URL
The URL to which the software will register downloads.
public static final java.lang.String PROP_LOG_ERROR_URL
The URL to which the software will submit error logs.
public static final java.lang.String PROP_LOG_SERVER_URL
The URL to which the software will submit server logs.
public static final java.lang.String PROP_LOG_UPLOAD_FAILURE_URL
The URL to which the software will register upload failures.
public static final java.lang.String PROP_LOG_UPLOAD_URL
The URL to which the software will register uploads.
public static final java.lang.String CATEGORY_SERVER
The server category.
public static final java.lang.String PROP_SERVER_CLIENTS_MAX
The maximum number of clients that can concurrently connect to a server.
public static final java.lang.String PROP_SERVER_CONFIG_ATTR_URL
The URL of the updated server configuration attributes.
public static final java.lang.String PROP_SERVER_DIRECTORY
The starting location of the directory that contains all the server configuration and runtime files.
public static final java.lang.String PROP_SERVER_KEEP_ALIVE_TIMEOUT
The maximum number of milliseconds before a request that is being kept alive is timed out.
public static final java.lang.String PROP_SERVER_OFFLINE_NOTIFICATION_INTERVAL
The number of milliseconds between sending offline server notification emails.
public static final java.lang.String PROP_SERVER_PORT
The starting port number for a server.
public static final java.lang.String PROP_SERVER_QUEUE_SIZE
The maximum number of requests a client can have outstanding on a server.
public static final java.lang.String PROP_SERVER_TIME_BETWEEN_REGISTRATIONS
The amount of time that may pass before reregistering the local server with connected servers in the server status update process.
public static final java.lang.String PROP_SERVER_SERVER_SIMULTANEOUS_REQUESTS
The number of requests a single server can have executed simultaneously on a server.
public static final java.lang.String PROP_SERVER_SSL
The starting boolean for whether a server should communicate over SSL.
public static final java.lang.String PROP_SERVER_TIMEOUT
The maximum number of milliseconds before a request to a server times out if it doesn't send back a feep-alive signal.
public static final java.lang.String PROP_SERVER_USER_SIMULTANEOUS_REQUESTS
The number of requests a single user can have executed simultaneously on a server.
public static final java.lang.String CATEGORY_NETWORK_TIME_SERVERS
The network time servers category.
public static final java.lang.String PROP_TIME_CHANGE_CHECK_DEVIATION
The number of milliseconds the actual timestamp can deviate from the expected timestamp before resetting the network time.
public static final java.lang.String PROP_TIME_CHANGE_CHECK_INTERVAL
The number of milliseconds between checking if the system time has been changed significantly.
public static final java.lang.String PROP_TIME_UPDATE_INTERVAL
The number of milliseconds between forcing a reset of the network time.
public static final java.lang.String PROP_TIME_UPDATE_TIMEOUT
The timeout per NT server request.
public static final java.lang.String DEFAULT_CONFIG_FILE_LOCATION
| Constructor Detail |
|---|
protected ConfigureTranche()
| Method Detail |
|---|
public static final java.lang.String[] getAdminEmailAccounts()
Returns a string array of administrator email addresses.
public static void waitForStartup()
public static void load(java.lang.String[] args)
throws java.io.IOException
args -
java.io.IOException
public static void load(java.lang.String configFile)
throws java.io.IOException
configFile -
java.io.IOExceptionpublic static void load(java.io.InputStream configFileStream)
configFileStream - public static void update()
public static java.util.Map<java.lang.String,java.lang.String> getServerConfigurationAttributes()
Returns network-wide server attributes from URL.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||