com.pmease.quickbuild.bootstrap
Class Bootstrap
java.lang.Object
com.pmease.quickbuild.bootstrap.Bootstrap
public class Bootstrap
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SERVER_URL_PROPNAME
public static final java.lang.String SERVER_URL_PROPNAME
- See Also:
- Constant Field Values
BINDADDRESS_PROPNAME
public static final java.lang.String BINDADDRESS_PROPNAME
- See Also:
- Constant Field Values
IP_PROPNAME
public static final java.lang.String IP_PROPNAME
- See Also:
- Constant Field Values
PORT_PROPNAME
public static final java.lang.String PORT_PROPNAME
- See Also:
- Constant Field Values
SSLPORT_PROPNAME
public static final java.lang.String SSLPORT_PROPNAME
- See Also:
- Constant Field Values
KEYSTORE_PROPNAME
public static final java.lang.String KEYSTORE_PROPNAME
- See Also:
- Constant Field Values
KEYSTOREPASS_PROPNAME
public static final java.lang.String KEYSTOREPASS_PROPNAME
- See Also:
- Constant Field Values
PRIVATEKEYPASS_PROPNAME
public static final java.lang.String PRIVATEKEYPASS_PROPNAME
- See Also:
- Constant Field Values
TOKEN_PROPNAME
public static final java.lang.String TOKEN_PROPNAME
- See Also:
- Constant Field Values
AGENT_UPDATE_SERVLET_PATH
public static final java.lang.String AGENT_UPDATE_SERVLET_PATH
- See Also:
- Constant Field Values
BUFFER_SIZE
public static final int BUFFER_SIZE
- See Also:
- Constant Field Values
NET_CONNECT_TIMEOUT
public static final int NET_CONNECT_TIMEOUT
- See Also:
- Constant Field Values
NET_READ_TIMEOUT
public static final int NET_READ_TIMEOUT
- See Also:
- Constant Field Values
BACKUP_DATETIME_FORMAT
public static final java.lang.String BACKUP_DATETIME_FORMAT
- See Also:
- Constant Field Values
MIN_HEARTBEAT_INTERVAL
public static final int MIN_HEARTBEAT_INTERVAL
- See Also:
- Constant Field Values
LOG_DATETIME_FORMATTER
public static final org.joda.time.format.DateTimeFormatter LOG_DATETIME_FORMATTER
docroot
public static java.lang.String docroot
- Release information
releaseDate
public static java.util.Date releaseDate
buildVersion
public static java.lang.String buildVersion
serverUrl
public static java.lang.String serverUrl
nodeIp
public static volatile java.lang.String nodeIp
benchmark
public static long benchmark
serverToken
public static volatile java.lang.String serverToken
bootAction
public static BootAction bootAction
installDir
public static java.io.File installDir
- Installation directory in canonical form.
bootDir
public static java.io.File bootDir
devDir
public static java.io.File devDir
heartbeatInterval
public static int heartbeatInterval
Bootstrap
public Bootstrap()
main
public static void main(java.lang.String[] args)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
shutdown
public static void shutdown()
throws java.lang.Exception
- Throws:
java.lang.Exception
init
public static void init(boolean runMode)
throws java.lang.Exception
- Throws:
java.lang.Exception
isServer
public static boolean isServer()
isAgent
public static boolean isAgent()
isUserAgent
public static boolean isUserAgent()
isBuildAgent
public static boolean isBuildAgent()
getHostName
public static java.lang.String getHostName()
getPort
public static int getPort()
getSSLPort
public static int getSSLPort()
restart
public static void restart()
stop
public static void stop()
onConnectException
public static void onConnectException(java.lang.Throwable throwable)
boot
public static void boot(java.io.File bootFrom,
BootAction action)
throws java.lang.Throwable
- Throws:
java.lang.Throwable
getPluginBundle
public static java.io.File getPluginBundle(java.io.File bootDir,
java.lang.String pluginId)
getTempDir
public static java.io.File getTempDir()
getLogsDir
public static java.io.File getLogsDir()
getPluginsDir
public static java.io.File getPluginsDir()
getAssetDir
public static java.io.File getAssetDir()
getAddonsDir
public static java.io.File getAddonsDir()
getLibsDir
public static java.io.File getLibsDir()
getBinDir
public static java.io.File getBinDir()
getFrameworkDir
public static java.io.File getFrameworkDir()
getLineSeparator
public static java.lang.String getLineSeparator()
getLogFile
public static java.io.File getLogFile()
getAgentToken
public static java.lang.String getAgentToken()
getConfigDir
public static java.io.File getConfigDir()
setAgentToken
public static void setAgentToken(java.lang.String agentToken)
findInstallDir
public static java.io.File findInstallDir()
getNodeComment
public static java.lang.String getNodeComment()
Copyright © 2005-2010 PMEase Inc. All Rights Reserved.