Java Doc for DeployController.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » server » deploy » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » EJB Server resin 3.1.5 » resin » com.caucho.server.deploy 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.server.deploy.DeployController

DeployController
abstract public class DeployController implements Dependency,AlarmListener(Code)
DeployController controls the lifecycle of the DeployInstance.


Field Summary
final public static  StringREDEPLOY_AUTOMATIC
    
final public static  longREDEPLOY_CHECK_INTERVAL
    
final public static  StringREDEPLOY_DEFAULT
    
final public static  StringREDEPLOY_LAZY
    
final public static  StringREDEPLOY_MANUAL
    
final public static  StringSTARTUP_AUTOMATIC
    
final public static  StringSTARTUP_DEFAULT
    
final public static  StringSTARTUP_LAZY
    
final public static  StringSTARTUP_MANUAL
    
final protected  Lifecycle_lifecycle
    

Constructor Summary
protected  DeployController(String id)
    
protected  DeployController(String id, ClassLoader parentLoader)
    

Method Summary
public  voidaddLifecycleListener(LifecycleListener listener)
    
protected  voidaddManifestClassPath()
    
protected  voidconfigureInstance(I deployInstance)
    
protected  booleandestroy()
     Destroys the entry.
protected  voidexpandArchive()
     Deploys the entry, e.g.
public  ThrowablegetConfigException()
    
protected  DeployControllerAdmingetDeployAdmin()
     Returns the deploy admin.
final public  IgetDeployInstance()
     Returns the current instance.
final public  StringgetId()
     Returns the controller's id.
protected  LoggergetLog()
     Returns the appropriate log for debugging.
protected  StringgetMBeanId()
    
protected  StringgetMBeanTypeName()
    
public  ClassLoadergetParentClassLoader()
     Returns the parent class loader.
public  longgetRedeployCheckInterval()
    
public  StringgetRedeployMode()
     Returns the redeploy mode.
public  longgetStartTime()
     Returns the start time of the entry.
public  StringgetStartupMode()
     Returns the startup mode.
public  intgetStartupPriority()
     Gets the startup priority.
public  StringgetState()
     Returns the state name.
public  voidhandleAlarm(Alarm alarm)
     Handles the redeploy check alarm.
final public  booleaninit()
     Initialize the entry.
protected  voidinitBegin()
     Initial calls for init.
protected  voidinitEnd()
     Final calls for init.
abstract protected  IinstantiateDeployInstance()
     Creates an instance.
public  booleanisActive()
     Returns true if the instance is in the active state.
public  booleanisActiveIdle()
     Returns true if the instance has been idle for longer than its timeout.
public  booleanisDestroyed()
     Returns true if the entry is destroyed.
public  booleanisError()
     Return true if the instance is in the error state.
public  booleanisErrorNow()
     Returns true if there's currently an error.
public  booleanisModified()
     Returns true if the entry is modified.
public  booleanisModifiedNow()
     Returns true if the entry is modified.
public  booleanisNameMatch(String name)
     Returns true if the entry matches.
public  booleanisStopped()
     Returns true if the instance is in the stopped state.
public  booleanisStoppedLazy()
    
public  booleanlogModified(Logger log)
    
protected  voidmergeController(DeployController oldController)
     Merges with the old controller.
public  voidmergeRedeployCheckInterval(long interval)
    
public  voidmergeRedeployMode(String mode)
     Merge the redeploy mode.
public  voidmergeStartupMode(String mode)
     Merge the startup mode.
public  Irequest()
    
final public  voidrestart()
     Force an instance restart from an admin command.
 IrestartImpl()
    
public  voidsetRedeployCheckInterval(Period period)
    
public  voidsetRedeployMode(String mode)
     Sets the redeploy mode.
public  voidsetStartupMode(String mode)
     Sets the startup mode.
public  voidsetStartupPriority(int priority)
     Sets the startup priority.
final public  voidstart()
     Force an instance start from an admin command.
protected  IstartImpl()
     Starts the entry.
public  voidstartOnInit()
     Redeploys the entry if it's modified.
final public  voidstop()
     Stops the controller from an admin command.
 voidstopImpl()
     Stops the current instance.
 voidstopLazyImpl()
     Stops the current instance, putting it in the lazy state.
public  Isubrequest()
     Returns the instance for a subrequest.
public static  StringtoRedeployCode(String mode)
     Converts redeploy mode to code.
public static  StringtoStartupCode(String mode)
     Converts startup mode to code.
public  StringtoString()
     Returns the entry's debug name.
final public  voidupdate()
     Update the controller from an admin command.

Field Detail
REDEPLOY_AUTOMATIC
final public static String REDEPLOY_AUTOMATIC(Code)



REDEPLOY_CHECK_INTERVAL
final public static long REDEPLOY_CHECK_INTERVAL(Code)



REDEPLOY_DEFAULT
final public static String REDEPLOY_DEFAULT(Code)



REDEPLOY_LAZY
final public static String REDEPLOY_LAZY(Code)



REDEPLOY_MANUAL
final public static String REDEPLOY_MANUAL(Code)



STARTUP_AUTOMATIC
final public static String STARTUP_AUTOMATIC(Code)



STARTUP_DEFAULT
final public static String STARTUP_DEFAULT(Code)



STARTUP_LAZY
final public static String STARTUP_LAZY(Code)



STARTUP_MANUAL
final public static String STARTUP_MANUAL(Code)



_lifecycle
final protected Lifecycle _lifecycle(Code)




Constructor Detail
DeployController
protected DeployController(String id)(Code)



DeployController
protected DeployController(String id, ClassLoader parentLoader)(Code)




Method Detail
addLifecycleListener
public void addLifecycleListener(LifecycleListener listener)(Code)



addManifestClassPath
protected void addManifestClassPath() throws IOException(Code)
Adds any manifest Class-Path



configureInstance
protected void configureInstance(I deployInstance) throws Throwable(Code)
Configuration of the instance



destroy
protected boolean destroy()(Code)
Destroys the entry.



expandArchive
protected void expandArchive() throws Exception(Code)
Deploys the entry, e.g. archive expansion.



getConfigException
public Throwable getConfigException()(Code)



getDeployAdmin
protected DeployControllerAdmin getDeployAdmin()(Code)
Returns the deploy admin.



getDeployInstance
final public I getDeployInstance()(Code)
Returns the current instance.



getId
final public String getId()(Code)
Returns the controller's id.



getLog
protected Logger getLog()(Code)
Returns the appropriate log for debugging.



getMBeanId
protected String getMBeanId()(Code)



getMBeanTypeName
protected String getMBeanTypeName()(Code)



getParentClassLoader
public ClassLoader getParentClassLoader()(Code)
Returns the parent class loader.



getRedeployCheckInterval
public long getRedeployCheckInterval()(Code)
Gets the redeploy-check-interval



getRedeployMode
public String getRedeployMode()(Code)
Returns the redeploy mode.



getStartTime
public long getStartTime()(Code)
Returns the start time of the entry.



getStartupMode
public String getStartupMode()(Code)
Returns the startup mode.



getStartupPriority
public int getStartupPriority()(Code)
Gets the startup priority.



getState
public String getState()(Code)
Returns the state name.



handleAlarm
public void handleAlarm(Alarm alarm)(Code)
Handles the redeploy check alarm.



init
final public boolean init()(Code)
Initialize the entry.



initBegin
protected void initBegin()(Code)
Initial calls for init.



initEnd
protected void initEnd()(Code)
Final calls for init.



instantiateDeployInstance
abstract protected I instantiateDeployInstance()(Code)
Creates an instance.



isActive
public boolean isActive()(Code)
Returns true if the instance is in the active state.



isActiveIdle
public boolean isActiveIdle()(Code)
Returns true if the instance has been idle for longer than its timeout. true if idle



isDestroyed
public boolean isDestroyed()(Code)
Returns true if the entry is destroyed.



isError
public boolean isError()(Code)
Return true if the instance is in the error state. true for the error state.



isErrorNow
public boolean isErrorNow()(Code)
Returns true if there's currently an error.



isModified
public boolean isModified()(Code)
Returns true if the entry is modified.



isModifiedNow
public boolean isModifiedNow()(Code)
Returns true if the entry is modified.



isNameMatch
public boolean isNameMatch(String name)(Code)
Returns true if the entry matches.



isStopped
public boolean isStopped()(Code)
Returns true if the instance is in the stopped state. true on stopped state



isStoppedLazy
public boolean isStoppedLazy()(Code)
Returns true for the stop-lazy state



logModified
public boolean logModified(Logger log)(Code)
Log the reason for modification



mergeController
protected void mergeController(DeployController oldController)(Code)
Merges with the old controller.



mergeRedeployCheckInterval
public void mergeRedeployCheckInterval(long interval)(Code)
Sets the redeploy-check-interval



mergeRedeployMode
public void mergeRedeployMode(String mode)(Code)
Merge the redeploy mode.



mergeStartupMode
public void mergeStartupMode(String mode)(Code)
Merge the startup mode.



request
public I request()(Code)
Returns the instance for a top-level request the request object or null for none.



restart
final public void restart()(Code)
Force an instance restart from an admin command.



restartImpl
I restartImpl()(Code)
Restarts the instance the new instance



setRedeployCheckInterval
public void setRedeployCheckInterval(Period period)(Code)
Sets the redeploy-check-interval



setRedeployMode
public void setRedeployMode(String mode)(Code)
Sets the redeploy mode.



setStartupMode
public void setStartupMode(String mode)(Code)
Sets the startup mode.



setStartupPriority
public void setStartupPriority(int priority)(Code)
Sets the startup priority.



start
final public void start()(Code)
Force an instance start from an admin command.



startImpl
protected I startImpl()(Code)
Starts the entry.



startOnInit
public void startOnInit()(Code)
Redeploys the entry if it's modified.



stop
final public void stop()(Code)
Stops the controller from an admin command.



stopImpl
void stopImpl()(Code)
Stops the current instance.



stopLazyImpl
void stopLazyImpl()(Code)
Stops the current instance, putting it in the lazy state.



subrequest
public I subrequest()(Code)
Returns the instance for a subrequest. the request object or null for none.



toRedeployCode
public static String toRedeployCode(String mode) throws ConfigException(Code)
Converts redeploy mode to code.



toStartupCode
public static String toStartupCode(String mode) throws ConfigException(Code)
Converts startup mode to code.



toString
public String toString()(Code)
Returns the entry's debug name.



update
final public void update()(Code)
Update the controller from an admin command.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.