Java Doc for StartServer.java in  » 6.0-JDK-Core » j2eeserver » org » netbeans » modules » j2ee » deployment » plugins » spi » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
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
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » j2eeserver » org.netbeans.modules.j2ee.deployment.plugins.spi 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.j2ee.deployment.plugins.spi.StartServer

All known Subclasses:   org.netbeans.tests.j2eeserver.plugin.ServerLifecycle,
StartServer
abstract public class StartServer (Code)
Server lifecycle services from the IDE. J2eeserver will use these services to automatically start or stop admin server and managed (virtual) target servers (in debug mode) during deployment or debugging execution.
See Also:   OptionalDeploymentManagerFactory
author:
   George FinKlang
author:
   nn136682
version:
   1.0




Method Summary
public  booleancanStopDeploymentManagerSilently()
    
abstract public  ServerDebugInfogetDebugInfo(Target target)
     Returns the host/port necessary for connecting to the server's debug information.
abstract public  booleanisAlsoTargetServer(Target target)
     Returns true if the admin server is also the given target server (share the same vm). Start/stopping/debug apply to both servers.
abstract public  booleanisDebuggable(Target target)
     Returns true if the given target is in debug mode.
abstract public  booleanisRunning()
     Returns true if this admin server is running.
public  booleanisRunning(Target target)
     Returns the running state of a specific target.
public  booleanneedsRestart(Target target)
     Returns true if target server needs a restart for last configuration changes to take effect.
abstract public  booleanneedsStartForAdminConfig()
     Returns true if the admin server should be started before admininistrative configuration.
abstract public  booleanneedsStartForConfigure()
     Returns true if the admin server should be started before server deployment configuration.
abstract public  booleanneedsStartForTargetList()
     Returns true if the admin server should be started before asking for target list.
abstract public  ProgressObjectstartDebugging(Target target)
     Start or restart the target in debug mode.
abstract public  ProgressObjectstartDeploymentManager()
     Starts the admin server.
public  ProgressObjectstartProfiling(Target target, ProfilerServerSettings settings)
     Start the target in profile mode, null target implies the admin server.
Parameters:
  target - the target server in question, null target implies the admin server.
Parameters:
  settings - profiler server settings.
public  ProgressObjectstartTarget(Target target)
     Starts the target server asynchronously and reports the status through the returned ProgressObject.
abstract public  ProgressObjectstopDeploymentManager()
     Stops the admin server.
public  voidstopDeploymentManagerSilently()
     Optional method.
public  ProgressObjectstopTarget(Target target)
     Stops the target server asynchronously and reports the status through the returned ProgressObject.
public  booleansupportsStartDebugging(Target target)
     Can be the specified target server started in the debug mode? If the target is also an admin server can be the admin server started in the debug mode?
Parameters:
  target - the target server in question, null implies the case where target is also an admin server.
abstract public  booleansupportsStartDeploymentManager()
     Returns true if the admin server can be started through this spi.
public  booleansupportsStartProfiling(Target target)
     Can be the specified target server started in profile mode? If the target is also an admin server can be the admin server started in profile mode?
Parameters:
  target - the target server in question, null implies the case where target is also an admin server.
public  booleansupportsStartTarget(Target target)
     Returns if the plugin can start/stop single target servers. This should be overwritten as needed.
Parameters:
  target - the target server in question, could be null in whichcase the answer should probably be false.



Method Detail
canStopDeploymentManagerSilently
public boolean canStopDeploymentManagerSilently()(Code)
See stopDeploymentManagerSilently override and return true if stopDeploymentManagerSilently is implemented



getDebugInfo
abstract public ServerDebugInfo getDebugInfo(Target target)(Code)
Returns the host/port necessary for connecting to the server's debug information.



isAlsoTargetServer
abstract public boolean isAlsoTargetServer(Target target)(Code)
Returns true if the admin server is also the given target server (share the same vm). Start/stopping/debug apply to both servers. When the given target server is null, service should return true when admin server is also some target.
Parameters:
  target - the target server in question; could be null. true when admin is also target server



isDebuggable
abstract public boolean isDebuggable(Target target)(Code)
Returns true if the given target is in debug mode.



isRunning
abstract public boolean isRunning()(Code)
Returns true if this admin server is running.



isRunning
public boolean isRunning(Target target)(Code)
Returns the running state of a specific target. This should be overwritten by plugins which support multiple target servers via one admin server.
Parameters:
  target - the target server in question; null value implies the query is against the admin server. true if the server is question is running.
since:
   1.6



needsRestart
public boolean needsRestart(Target target)(Code)
Returns true if target server needs a restart for last configuration changes to take effect. Implementation should override when communication about this server state is needed.
Parameters:
  target - target server; null implies the case where target is also admin server.



needsStartForAdminConfig
abstract public boolean needsStartForAdminConfig()(Code)
Returns true if the admin server should be started before admininistrative configuration.



needsStartForConfigure
abstract public boolean needsStartForConfigure()(Code)
Returns true if the admin server should be started before server deployment configuration.



needsStartForTargetList
abstract public boolean needsStartForTargetList()(Code)
Returns true if the admin server should be started before asking for target list.



startDebugging
abstract public ProgressObject startDebugging(Target target)(Code)
Start or restart the target in debug mode. If target is also domain admin, the amdin is restarted in debug mode. All diagnostic should be communicated through ServerProgres with no exceptions thrown.
Parameters:
  target - the target server ServerProgress object to monitor progress on start operation



startDeploymentManager
abstract public ProgressObject startDeploymentManager()(Code)
Starts the admin server. Note that this means that the DeploymentManager was originally created disconnected. After calling this, the DeploymentManager will be connected, so any old cached DeploymentManager will be discarded. All diagnostics should be communicated through ProgressObject without exceptions thrown. ProgressObject object used to monitor start server progress



startProfiling
public ProgressObject startProfiling(Target target, ProfilerServerSettings settings)(Code)
Start the target in profile mode, null target implies the admin server.
Parameters:
  target - the target server in question, null target implies the admin server.
Parameters:
  settings - profiler server settings. ServerProgress object to monitor progress on start operation.
since:
   1.9



startTarget
public ProgressObject startTarget(Target target)(Code)
Starts the target server asynchronously and reports the status through the returned ProgressObject. This should be overwritten by plugins which support the state management of different target servers.
Parameters:
  target - a non-null target server to be started a ProgressObject which is used to communicate theprogess/state of this action. Should not be null when supportsStartTarget returns true on same target.
since:
   1.6



stopDeploymentManager
abstract public ProgressObject stopDeploymentManager()(Code)
Stops the admin server. The DeploymentManager object will be disconnected. All diagnostic should be communicated through ServerProgres with no exceptions thrown. ServerProgress object used to monitor start server progress



stopDeploymentManagerSilently
public void stopDeploymentManagerSilently()(Code)
Optional method. This implementation does nothing. Stops the admin server. The DeploymentManager object will be disconnected. The call should terminate immediately and not wait for the server to stop.
This will be used at IDE shutdown so that the server shutdown does not block the IDE.



stopTarget
public ProgressObject stopTarget(Target target)(Code)
Stops the target server asynchronously and reports the status through the returned ProgressObject. This should be overwritten by plugins which support the state management of different target servers.
Parameters:
  target - a non-null target server to be stopped a ProgressObject which is used to communicate theprogess/state of this action. Should not be null when supportsStartTarget return true on the same target.
since:
   1.6



supportsStartDebugging
public boolean supportsStartDebugging(Target target)(Code)
Can be the specified target server started in the debug mode? If the target is also an admin server can be the admin server started in the debug mode?
Parameters:
  target - the target server in question, null implies the case where target is also an admin server. true if the target server can be started in the debug mode, falseotherwise. The default return value is false.
since:
   1.7



supportsStartDeploymentManager
abstract public boolean supportsStartDeploymentManager()(Code)
Returns true if the admin server can be started through this spi.



supportsStartProfiling
public boolean supportsStartProfiling(Target target)(Code)
Can be the specified target server started in profile mode? If the target is also an admin server can be the admin server started in profile mode?
Parameters:
  target - the target server in question, null implies the case where target is also an admin server. true if the target server can be started in profile mode, falseotherwise. The default return value is false.
since:
   1.9



supportsStartTarget
public boolean supportsStartTarget(Target target)(Code)
Returns if the plugin can start/stop single target servers. This should be overwritten as needed.
Parameters:
  target - the target server in question, could be null in whichcase the answer should probably be false. true if this plugin can currently handle state management for the specific target.
since:
   1.6



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)

w___ww_.___j___a___v__a___2s.__c__o___m__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.