com.pmease.quickbuild.bootstrap
Class Bootstrap

java.lang.Object
  extended by com.pmease.quickbuild.bootstrap.Bootstrap

public class Bootstrap
extends java.lang.Object


Field Summary
static java.lang.String AGENT_UPDATE_SERVLET_PATH
           
static java.lang.String BACKUP_DATETIME_FORMAT
           
static long benchmark
           
static java.lang.String BINDADDRESS_PROPNAME
           
static BootAction bootAction
           
static java.io.File bootDir
           
static int BUFFER_SIZE
           
static java.lang.String buildVersion
           
static java.io.File devDir
           
static java.lang.String docroot
          Release information
static int heartbeatInterval
           
static java.io.File installDir
          Installation directory in canonical form.
static java.lang.String IP_PROPNAME
           
static java.lang.String KEYSTORE_PROPNAME
           
static java.lang.String KEYSTOREPASS_PROPNAME
           
static org.joda.time.format.DateTimeFormatter LOG_DATETIME_FORMATTER
           
static int MIN_HEARTBEAT_INTERVAL
           
static int NET_CONNECT_TIMEOUT
           
static int NET_READ_TIMEOUT
           
static java.lang.String nodeIp
           
static java.lang.String PORT_PROPNAME
           
static java.lang.String PRIVATEKEYPASS_PROPNAME
           
static java.util.Date releaseDate
           
static java.lang.String SERVER_URL_PROPNAME
           
static java.lang.String serverToken
           
static java.lang.String serverUrl
           
static java.lang.String SSLPORT_PROPNAME
           
static java.lang.String TOKEN_PROPNAME
           
 
Constructor Summary
Bootstrap()
           
 
Method Summary
static void boot(java.io.File bootFrom, BootAction action)
           
static java.io.File findInstallDir()
           
static java.io.File getAddonsDir()
           
static java.lang.String getAgentToken()
           
static java.io.File getAssetDir()
           
static java.io.File getBinDir()
           
static java.io.File getConfigDir()
           
static java.io.File getFrameworkDir()
           
static java.lang.String getHostName()
           
static java.io.File getLibsDir()
           
static java.lang.String getLineSeparator()
           
static java.io.File getLogFile()
           
static java.io.File getLogsDir()
           
static java.lang.String getNodeComment()
           
static java.io.File getPluginBundle(java.io.File bootDir, java.lang.String pluginId)
           
static java.io.File getPluginsDir()
           
static int getPort()
           
static int getSSLPort()
           
static java.io.File getTempDir()
           
static void init(boolean runMode)
           
static boolean isAgent()
           
static boolean isBuildAgent()
           
static boolean isServer()
           
static boolean isUserAgent()
           
static void main(java.lang.String[] args)
           
static void onConnectException(java.lang.Throwable throwable)
           
static void restart()
           
static void setAgentToken(java.lang.String agentToken)
           
static void shutdown()
           
static void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

Bootstrap

public Bootstrap()
Method Detail

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.