Package net.handle.hdllib
Class ConfigCommon
java.lang.Object
net.handle.hdllib.ConfigCommon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final boolean
Return true if argument is not of legal form "HH:MM:SS" or "H:MM:SS", false otherwise.static StreamTable
configuration
(int serverType, boolean disableUDP, int port, boolean logAccesses, InetAddress[] listenAddr, int threadCount, int httpPort, String logSavingInterval, boolean caseSensitive, int maxAuthTime, int maxSessionTime, int serverId, boolean isPrimary, String defaultServerAdmin, String replicationAdminStr, String replicationAuthStr, String defaultHomedPrefix, boolean isDualStack, boolean serverAdminFullAccess) static StreamTable
configuration
(int serverType, boolean disableUDP, int port, boolean logAccesses, InetAddress listenAddr, int threadCount, int httpPort, String logSavingInterval, boolean caseSensitive, int maxAuthTime, int maxSessionTime, int serverId, boolean isPrimary, String defaultServerAdmin, String replicationAdminStr, String replicationAuthStr, String defaultHomedPrefix, boolean serverAdminFullAccess) Create and return a StreamTable full of configuration data suitable for writing to the configuration file (HSG.CONFIG_FILE_NAME).static StreamTable
contactDataTable
(String orgName, String contactName, String contactPhone, String contactEmail) Create and return a StreamTable full of contact data suitable for writing to a contact-data file (HSG.SITE_CONTACT_DATA_FILE_NAME).static void
createSiteBundle
(String siteBundleDir, String siteBundleName, boolean isPrimary, String replicationAdminStr, File adminPubKeyFile, File replPubKeyFile, String replicationAuthStr, SiteInfo siteInfo, File contactDataFile, boolean isDualStack) Create a "site bundle" of public information to be sent to hdladmin.static boolean
validPhoneNumberChar
(char c) Determine whether a character is legal in a phone number.static void
writeReplicationSiteFile
(String statDirName, String statFileName, File replicationSiteFile, SiteInfo replicationSite) Write the replication-site file.
-
Constructor Details
-
ConfigCommon
public ConfigCommon()
-
-
Method Details
-
configuration
public static StreamTable configuration(int serverType, boolean disableUDP, int port, boolean logAccesses, InetAddress listenAddr, int threadCount, int httpPort, String logSavingInterval, boolean caseSensitive, int maxAuthTime, int maxSessionTime, int serverId, boolean isPrimary, String defaultServerAdmin, String replicationAdminStr, String replicationAuthStr, String defaultHomedPrefix, boolean serverAdminFullAccess) Create and return a StreamTable full of configuration data suitable for writing to the configuration file (HSG.CONFIG_FILE_NAME). -
configuration
public static StreamTable configuration(int serverType, boolean disableUDP, int port, boolean logAccesses, InetAddress[] listenAddr, int threadCount, int httpPort, String logSavingInterval, boolean caseSensitive, int maxAuthTime, int maxSessionTime, int serverId, boolean isPrimary, String defaultServerAdmin, String replicationAdminStr, String replicationAuthStr, String defaultHomedPrefix, boolean isDualStack, boolean serverAdminFullAccess) -
contactDataTable
public static StreamTable contactDataTable(String orgName, String contactName, String contactPhone, String contactEmail) Create and return a StreamTable full of contact data suitable for writing to a contact-data file (HSG.SITE_CONTACT_DATA_FILE_NAME). -
writeReplicationSiteFile
public static void writeReplicationSiteFile(String statDirName, String statFileName, File replicationSiteFile, SiteInfo replicationSite) throws IOException Write the replication-site file.- Throws:
IOException
-
createSiteBundle
public static void createSiteBundle(String siteBundleDir, String siteBundleName, boolean isPrimary, String replicationAdminStr, File adminPubKeyFile, File replPubKeyFile, String replicationAuthStr, SiteInfo siteInfo, File contactDataFile, boolean isDualStack) throws Exception Create a "site bundle" of public information to be sent to hdladmin.- Throws:
Exception
-
badHHMMSS
Return true if argument is not of legal form "HH:MM:SS" or "H:MM:SS", false otherwise. -
validPhoneNumberChar
public static boolean validPhoneNumberChar(char c) Determine whether a character is legal in a phone number.
-