public class GlassFishClientService extends Object implements GlassFishClient
| Modifier and Type | Field and Description |
|---|---|
static String |
USER_AGENT_VALUE |
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,
org.glassfish.jersey.media.multipart.FormDataMultiPart form)
Do deploy an application defined by a multipart form's fileds
to a target server or a cluster of GlassFish 6.x
|
Map |
doUndeploy(String name,
org.glassfish.jersey.media.multipart.FormDataMultiPart form)
Undeploy the component
|
protected Map<String,String> |
getClusterAttributes(String cluster) |
protected String |
getHostAddress(Map<String,String> serverAttributes) |
int |
getMajorVersion() |
int |
getMinorVersion() |
protected Map<String,String> |
getServerAttributes(String server) |
protected int |
getServerInstanceHttpPort(String server,
int default_port,
boolean secure) |
protected Map<String,String> |
getServerInstances(String target)
Get the list of server instances of the cluster
|
boolean |
isDASRunning()
Verify if the DAS is running or not.
|
void |
startUp()
Start-up the server
|
public static final String USER_AGENT_VALUE
public GlassFishClientService(CommonGlassFishConfiguration configuration)
public void startUp()
throws GlassFishClientException
- 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
startUp in interface GlassFishClientGlassFishClientExceptionpublic org.jboss.arquillian.container.spi.client.protocol.metadata.HTTPContext doDeploy(String name, org.glassfish.jersey.media.multipart.FormDataMultiPart form)
doDeploy in interface GlassFishClientname - - name of the appliacationform - - a form of MediaType.MULTIPART_FORM_DATA_TYPEpublic Map doUndeploy(String name, org.glassfish.jersey.media.multipart.FormDataMultiPart form)
doUndeploy in interface GlassFishClientname - - application name
form - form that include the target & operation fieldspublic boolean isDASRunning()
isDASRunning in interface GlassFishClientpublic int getMajorVersion()
public int getMinorVersion()
protected Map<String,String> getServerInstances(String target)
target - -protected int getServerInstanceHttpPort(String server, int default_port, boolean secure)
Copyright © 2020 JBoss by Red Hat. All rights reserved.