com.pmease.quickbuild
Class Quickbuild
java.lang.Object
com.pmease.quickbuild.Quickbuild
- All Implemented Interfaces:
- BootActionSupport
public class Quickbuild
- extends java.lang.Object
- implements BootActionSupport
|
Field Summary |
static com.google.inject.Injector |
injector
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
injector
public static com.google.inject.Injector injector
Quickbuild
public Quickbuild()
getSpecifiedNodeIp
public java.lang.String getSpecifiedNodeIp()
start
public void start()
getServletContext
public org.eclipse.jetty.servlet.ServletContextHandler getServletContext()
stop
public void stop()
getInstance
public static Quickbuild getInstance()
getInstance
public static <T> T getInstance(java.lang.Class<T> clazz)
getCacheManager
public static CacheManager getCacheManager()
getUrl
public java.lang.String getUrl()
- Get URL of the QuickBuild server.
getHostName
public java.lang.String getHostName()
- Get host name of the node.
getIp
public java.lang.String getIp()
- Get IP address of the node.
getPort
public int getPort()
- Get port number of the node.
getSSLPort
public int getSSLPort()
- Get SSL port number of the node.
isAgent
public boolean isAgent()
- Whether or not current node is an agent node.
isUserAgent
public boolean isUserAgent()
- Whether or not current node is an user agent node.
isBuildAgent
public boolean isBuildAgent()
- Whether or not current node is a build agent node.
isServer
public boolean isServer()
- Whether or not current node is server node.
getSetupSteps
public java.util.List<WizardStep> getSetupSteps()
getLogUrl
public java.lang.String getLogUrl()
- Get URL displaying the server log
isSystemReady
public boolean isSystemReady()
getVersion
public void getVersion(java.lang.String[] version)
- Specified by:
getVersion in interface BootActionSupport
exportData
public void exportData(java.io.File toDir)
- Specified by:
exportData in interface BootActionSupport
importData
public void importData(java.io.File fromDir)
- Specified by:
importData in interface BootActionSupport
migrateData
public void migrateData(java.io.File dataDir)
- Specified by:
migrateData in interface BootActionSupport
clearDatabase
public void clearDatabase()
- Specified by:
clearDatabase in interface BootActionSupport
migrateQb1
public void migrateQb1(java.io.File qb1Dir,
java.io.File dataDir,
java.io.File storageDir)
- Specified by:
migrateQb1 in interface BootActionSupport
getStorageDir
public java.io.File getStorageDir()
- Get the global storage directory.
getWorkspaceDir
public java.io.File getWorkspaceDir()
- Get the global workspace directory.
getInstallDir
public java.io.File getInstallDir()
- Get installation directory of QuickBuild application. If called at agent side, this directory returns installation directory of agent.
getConfigurationManager
public ConfigurationManager getConfigurationManager()
- Get configuration manager which responsible for loading configurations.
getAgentManager
public AgentManager getAgentManager()
- Get agent manager which is used to manage build and user agents.
getBuildManager
public BuildManager getBuildManager()
- Get build manager which responsible for loading builds.
getBuildEngine
public BuildEngine getBuildEngine()
- Get build engine instance.
getScriptEngine
public ScriptEngine getScriptEngine()
- Get script engine.
getUserManager
public UserManager getUserManager()
- Get user manager which manages users.
getGroupManager
public GroupManager getGroupManager()
- Get group manager which manages groups.
getMembershipManager
public MembershipManager getMembershipManager()
- Get membership manager.
getAuthorizationManager
public AuthorizationManager getAuthorizationManager()
- Get authorization manager.
getConfiguration
public Configuration getConfiguration(java.lang.String pathName)
- Get configuration by path name. Null if not found.
getPlugin
public Plugin getPlugin(java.lang.String pluginShortName)
- Get plugin instance with the name containing specified string in case insensitive mode. Null if not found.
getServerService
public static ServerService getServerService()
getStopLock
public java.util.concurrent.locks.ReadWriteLock getStopLock()
getJettyServer
public org.eclipse.jetty.server.Server getJettyServer()
processConnectResult
public boolean processConnectResult(ConnectResult connectResult)
handleConnectException
public boolean handleConnectException(java.lang.Throwable throwable)
isConnected
public boolean isConnected()
setConnected
public void setConnected(boolean connected)
getExecutor
public java.util.concurrent.ExecutorService getExecutor()
Copyright © 2005-2010 PMEase Inc. All Rights Reserved.