public class CommandGetProperty extends Command
Modifier and Type | Field and Description |
---|---|
private static String |
COMMAND
Command string for create-cluster command.
|
private static String |
ERROR_MESSAGE_PREFIX
Error message prefix for administration command execution exception .
|
(package private) String |
propertyPattern
Pattern that defines properties to retrieve.
|
Constructor and Description |
---|
CommandGetProperty(String property)
Constructs an instance of GlassFish server get property command entity.
|
Modifier and Type | Method and Description |
---|---|
static ResultMap<String,String> |
getProperties(GlassFishServer server,
String propertyPattern)
Retrieve properties from server.
|
static ResultMap<String,String> |
getProperties(GlassFishServer server,
String propertyPattern,
long timeout)
Retrieve properties from server with timeout.
|
getCommand, retry
private static final String COMMAND
String propertyPattern
private static final String ERROR_MESSAGE_PREFIX
public CommandGetProperty(String property)
property
- Pattern that defines property tor retrieve.public static ResultMap<String,String> getProperties(GlassFishServer server, String propertyPattern) throws GlassFishIdeException
server
- GlassFish server entity.propertyPattern
- Pattern that defines properties to retrieve.GlassFishIdeException
- When error occurred during administration
command execution.public static ResultMap<String,String> getProperties(GlassFishServer server, String propertyPattern, long timeout) throws GlassFishIdeException
server
- GlassFish server entity.propertyPattern
- Pattern that defines properties to retrieve.timeout
- Administration command execution timeout [ms].GlassFishIdeException
- When error occurred during administration
command execution.Copyright © 2013. All Rights Reserved.