public class CommandLocation extends Command
Map
object. The keys to particular locations are as followed:
Installation root - "Base-Root_value"
Domain root - "Domain-Root_value"
Minimal __locations
command support exists since GlassFish
3.0.1 where both Base-Root and Domain-Root values are returned.
Modifier and Type | Field and Description |
---|---|
static String |
BASIC_ROOT_RESULT_KEY
Result key to retrieve
Basic-Root value. |
private static String |
COMMAND
Command string for location command.
|
static String |
DOMAIN_ROOT_RESULT_KEY
Result key to retrieve
Domain-Root value. |
Constructor and Description |
---|
CommandLocation()
Constructs an instance of GlassFish server location command entity.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
verifyResult(ResultMap<String,String> resultMap,
GlassFishServer server)
Verifies if domain directory returned by location command result matches
domain directory of provided GlassFish server entity.
|
getCommand, retry
private static final String COMMAND
public static final String DOMAIN_ROOT_RESULT_KEY
Domain-Root
value.public static final String BASIC_ROOT_RESULT_KEY
Basic-Root
value.public CommandLocation()
public static boolean verifyResult(ResultMap<String,String> resultMap, GlassFishServer server)
resultMap
- Locations command result.server
- GlassFish server entity.true
means that domain
directory returned by location command result matches domain
directory of provided GlassFish server entity and value
of false
that they differs. For remote serve this
test makes no sense and value of true
is always
returned.Copyright © 2013. All Rights Reserved.