public class GlassFishClientService extends Object implements GlassFishClient
ADMINSERVER| Constructor and Description |
|---|
GlassFishClientService(CommonGlassFishConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.arquillian.container.spi.client.protocol.metadata.HTTPContext |
doDeploy(String name,
com.sun.jersey.multipart.FormDataMultiPart form)
Do deploy an application defined by a multipart form's data
to the target server or cluster of GlassFish 3.1
|
Map |
doUndeploy(String name,
com.sun.jersey.multipart.FormDataMultiPart form)
Undeploy the component
|
protected Map<String,String> |
getClusterAttributes(String cluster) |
protected String |
getHostAddress(Map<String,String> serverAttributes) |
protected Map<String,String> |
getServerAttributes(String server) |
protected int |
getServerInstanceHttpPort(String server,
int default_port,
boolean secure) |
protected Map<String,String> |
getServerInstances(String target) |
boolean |
isDASRunning()
Verify if the DAS is running or not.
|
void |
startUp()
Start-up the server
- Get the node addresses list associated with the target
- Pull the server instances status form mgm API
- In case of cluster tries to fund an instance which has
RUNNING status
|
public GlassFishClientService(CommonGlassFishConfiguration configuration)
public void startUp()
throws GlassFishClientException
startUp in interface GlassFishClientnone - GlassFishClientExceptionpublic org.jboss.arquillian.container.spi.client.protocol.metadata.HTTPContext doDeploy(String name, com.sun.jersey.multipart.FormDataMultiPart form)
GlassFishClientdoDeploy in interface GlassFishClientname - - name of the appliacation
form - a form of MediaType.MULTIPART_FORM_DATA_TYPEpublic Map doUndeploy(String name, com.sun.jersey.multipart.FormDataMultiPart form)
doUndeploy in interface GlassFishClientname - - application name
form - form that include the target & operation fieldspublic boolean isDASRunning()
isDASRunning in interface GlassFishClientprotected int getServerInstanceHttpPort(String server, int default_port, boolean secure)
Copyright © 2016 JBoss by Red Hat. All rights reserved.