org.netbeans.modules.j2ee.deployment.devmodules.api
Class Deployment

java.lang.Object
  extended by org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment

public final class Deployment
extends Object


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.
 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)
           
static Deployment getDefault()
           
 String getDefaultServerInstanceID()
           
 String[] getInstancesOfServer(String id)
           
 J2eePlatform getJ2eePlatform(String serverInstanceID)
          Return server instance's J2eePlatform.
 String getServerDisplayName(String id)
           
 String getServerID(String instanceId)
           
 String[] getServerIDs()
           
 String getServerInstanceDisplayName(String id)
           
 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.
 void removeInstanceListener(InstanceListener l)
          Remove an instance listener which has been registered previously.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDefault

public static Deployment getDefault()

deploy

public String deploy(J2eeModuleProvider jmp,
                     boolean debugmode,
                     String clientModuleUrl,
                     String clientUrlPart,
                     boolean forceRedeploy)
              throws Deployment.DeploymentException
Deploys a web J2EE module to server.

Parameters:
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.

Returns:
complete URL to be displayed in browser (server part plus the client module and/or client part provided as a parameter)
Throws:
Deployment.DeploymentException

deploy

public String deploy(J2eeModuleProvider jmp,
                     boolean debugmode,
                     String clientModuleUrl,
                     String clientUrlPart,
                     boolean forceRedeploy,
                     Deployment.Logger logger)
              throws Deployment.DeploymentException
Throws:
Deployment.DeploymentException

getServerInstanceIDs

public String[] getServerInstanceIDs()

getServerInstanceIDs

public String[] getServerInstanceIDs(Object[] moduleTypes)
Return ServerInstanceIDs of all registered server instances that support specified module types.

Parameters:
moduleTypes - list of module types that the server instance must support.
Returns:
ServerInstanceIDs of all registered server instances that meet the specified requirements.
Since:
1.6

getServerInstanceIDs

public String[] getServerInstanceIDs(Object[] moduleTypes,
                                     String specVersion)
Return ServerInstanceIDs of all registered server instances that support specified module types and J2EE specification versions.

Parameters:
moduleTypes - list of module types that the server instance must support.
specVersion - lowest J2EE specification version that the server instance must support.
Returns:
ServerInstanceIDs of all registered server instances that meet the specified requirements.
Since:
1.6

getServerInstanceIDs

public 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.

Parameters:
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.
Returns:
ServerInstanceIDs of all registered server instances that meet the specified requirements.
Since:
1.6

getServerInstanceDisplayName

public String getServerInstanceDisplayName(String id)

getServerID

public String getServerID(String instanceId)

getDefaultServerInstanceID

public String getDefaultServerInstanceID()

getInstancesOfServer

public String[] getInstancesOfServer(String id)

getServerIDs

public String[] getServerIDs()

getJ2eePlatform

public J2eePlatform getJ2eePlatform(String serverInstanceID)
Return server instance's J2eePlatform.

Parameters:
serverInstanceID - server instance ID.
Returns:
J2eePlatform for the given server instance, null if server instance of the specified ID does not exist.
Since:
1.5

getServerDisplayName

public String getServerDisplayName(String id)

addInstanceListener

public final void addInstanceListener(InstanceListener l)
Register an instance listener that will listen to server instances changes.

Since:
1.6

removeInstanceListener

public final void removeInstanceListener(InstanceListener l)
Remove an instance listener which has been registered previously.

Since:
1.6

 

Built on March 27 2006.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.