|
org.netbeans.modules.j2eeserver/4 1.55.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.j2ee.deployment.devmodules.api.Deployment
public final class Deployment
| Nested Class Summary | |
|---|---|
static class |
Deployment.DeploymentException
|
static interface |
Deployment.Logger
|
| Method Summary | |
|---|---|
void |
addInstanceListener(InstanceListener l)
Register an instance listener that will listen to server instances changes. |
boolean |
canFileDeploy(String instanceId,
J2eeModule mod)
Determine if a server instance will attempt to use file deployment for a J2eeModule. |
String |
deploy(J2eeModuleProvider jmp,
boolean debugmode,
String clientModuleUrl,
String clientUrlPart,
boolean forceRedeploy)
Deploys a web J2EE module to server. |
String |
deploy(J2eeModuleProvider jmp,
boolean debugmode,
String clientModuleUrl,
String clientUrlPart,
boolean forceRedeploy,
Deployment.Logger logger)
|
void |
disableCompileOnSaveSupport(J2eeModuleProvider provider)
|
void |
enableCompileOnSaveSupport(J2eeModuleProvider provider)
|
static Deployment |
getDefault()
|
String |
getDefaultServerInstanceID()
Deprecated. this API is broken by design - the client should choose the instance by usage getServerInstanceIDs() and selection
of appropriate server instance. Method will be removed in
near future. See issue 83934. |
String[] |
getInstancesOfServer(String id)
|
J2eePlatform |
getJ2eePlatform(String serverInstanceID)
Deprecated. use getServerInstance(serverInstanceID).getJ2eePlatform() |
String |
getServerDisplayName(String id)
Returns the display name of the server with given id. |
String |
getServerID(String instanceId)
Deprecated. use getServerInstance(serverInstanceID).getServerID() |
String[] |
getServerIDs()
|
ServerInstance |
getServerInstance(String serverInstanceId)
Returns the server instance allowing client to query its properties and/or status. |
String |
getServerInstanceDisplayName(String id)
Deprecated. use getServerInstance(serverInstanceID).getDisplayName() |
String[] |
getServerInstanceIDs()
|
String[] |
getServerInstanceIDs(Object[] moduleTypes)
Return ServerInstanceIDs of all registered server instances that support specified module types. |
String[] |
getServerInstanceIDs(Object[] moduleTypes,
String specVersion)
Return ServerInstanceIDs of all registered server instances that support specified module types and J2EE specification versions. |
String[] |
getServerInstanceIDs(Object[] moduleTypes,
String specVersion,
String[] tools)
Return ServerInstanceIDs of all registered server instances that support specified module types, J2EE specification version and tools. |
boolean |
isRunning(String serverInstanceID)
Deprecated. use getServerInstance(serverInstanceID).isRunning() |
void |
removeInstanceListener(InstanceListener l)
Remove an instance listener which has been registered previously. |
void |
undeploy(J2eeModuleProvider jmp,
boolean startServer,
Deployment.Logger logger)
Undeploys the project (if it is deployed and available). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Deployment getDefault()
public String deploy(J2eeModuleProvider jmp,
boolean debugmode,
String clientModuleUrl,
String clientUrlPart,
boolean forceRedeploy)
throws Deployment.DeploymentException
clientModuleUrl - URL of module within a J2EE Application that
should be used as a client (can be null for standalone modules)
Note: if null for J2EE application the first web or client module will be used.
Deployment.DeploymentException
public String deploy(J2eeModuleProvider jmp,
boolean debugmode,
String clientModuleUrl,
String clientUrlPart,
boolean forceRedeploy,
Deployment.Logger logger)
throws Deployment.DeploymentException
Deployment.DeploymentException
public void undeploy(J2eeModuleProvider jmp,
boolean startServer,
Deployment.Logger logger)
throws Deployment.DeploymentException
jmp - provider representing the projectstartServer - if true server may be started while
trying to determine whether the project is deployedlogger - logger for undeploy related events
Deployment.DeploymentExceptionpublic void enableCompileOnSaveSupport(J2eeModuleProvider provider)
public void disableCompileOnSaveSupport(J2eeModuleProvider provider)
public String[] getServerInstanceIDs()
public String[] getServerInstanceIDs(Object[] moduleTypes)
moduleTypes - list of module types that the server instance must support.
public String[] getServerInstanceIDs(Object[] moduleTypes,
String specVersion)
moduleTypes - list of module types that the server instance must support.specVersion - lowest J2EE specification version that the server instance must support.
public String[] getServerInstanceIDs(Object[] moduleTypes,
String specVersion,
String[] tools)
moduleTypes - list of module types that the server instance must support.specVersion - lowest J2EE specification version that the server instance must support.tools - list of tools that the server instance must support.
public String getServerInstanceDisplayName(String id)
getServerInstance(serverInstanceID).getDisplayName()
id - id of the instance
null if the
instance does not exist or not definedpublic String getServerID(String instanceId)
getServerInstance(serverInstanceID).getServerID()
instanceId - id of the instance
null if the
instance does not existpublic String getDefaultServerInstanceID()
getServerInstanceIDs() and selection
of appropriate server instance. Method will be removed in
near future. See issue 83934.
null if no default
instance configured.
This method is deprecated, so don't expect it will return any useful default instance. Method will be removed in near future.
public boolean canFileDeploy(String instanceId,
J2eeModule mod)
instanceId - The target instance's server idmod - The module to be deployed
public String[] getInstancesOfServer(String id)
public ServerInstance getServerInstance(String serverInstanceId)
serverInstanceId - id of the server instance
public String[] getServerIDs()
public J2eePlatform getJ2eePlatform(String serverInstanceID)
getServerInstance(serverInstanceID).getJ2eePlatform()
J2eePlatform.
serverInstanceID - server instance ID.
J2eePlatform for the given server instance, null if
server instance of the specified ID does not exist.public String getServerDisplayName(String id)
Client is usually searching for the display name of the server for particular
instance. For this use getServerInstance(serverInstanceID).getServerDisplyName().
id - id of the server
null
if the server does not existpublic boolean isRunning(String serverInstanceID)
getServerInstance(serverInstanceID).isRunning()
true if the given server instance exists and is running,
false otherwise.
Never call this method from the event dispatch thread since it might take several seconds before it finishes.
serverInstanceID - server instance ID.
true if the given server instance is running, false
otherwise.
NullPointerException - if serverInstanceID is null.public final void addInstanceListener(InstanceListener l)
l - listener which should be added.public final void removeInstanceListener(InstanceListener l)
l - listener which should be removed.
|
org.netbeans.modules.j2eeserver/4 1.55.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||