Modifier and Type | Method and Description |
---|---|
static boolean |
GlassFishStatus.add(GlassFishServer srv)
Register GlassFish server instance into scheduler and launch server
status checking jobs.
|
static boolean |
GlassFishStatus.add(GlassFishServer srv,
GlassFishStatusListener listener,
boolean currentState,
GlassFishStatus... newState)
Register GlassFish server instance into scheduler, register server status
listener and launch server status checking jobs.
|
static boolean |
GlassFishStatus.addChangeListener(GlassFishServer srv,
GlassFishStatusListener listener,
GlassFishStatus... newState)
Register server status listener to be notified about server status
change.
|
static boolean |
GlassFishStatus.addCheckListener(GlassFishServer srv,
GlassFishStatusListener listener)
Register server status listener to be notified about current server
status after every check.
|
static boolean |
GlassFishStatus.addListener(GlassFishServer srv,
GlassFishStatusListener listener,
boolean currentState,
GlassFishStatus... newState)
Register server status listener.
|
void |
GlassFishStatusListener.currentState(GlassFishServer server,
GlassFishStatus status,
GlassFishStatusTask task)
Callback to notify about current server status after every check
when enabled.
|
void |
GlassFishStatusListener.error(GlassFishServer server,
GlassFishStatusTask task)
Callback to notify about server status check failures.
|
static GlassFishServerStatus |
GlassFishStatus.get(GlassFishServer srv)
Get current GlassFish server instance
GlassFishServerStatus
object. |
static GlassFishStatus |
GlassFishStatus.getStatus(GlassFishServer srv)
Get current GlassFish server instance status.
|
void |
GlassFishStatusListener.newState(GlassFishServer server,
GlassFishStatus status,
GlassFishStatusTask task)
Callback to notify about server status change when enabled.
|
static boolean |
GlassFishStatus.remove(GlassFishServer srv)
Remove GlassFish server instance from scheduler and stop server
status checking jobs.
|
static boolean |
GlassFishStatus.removeListener(GlassFishServer srv,
GlassFishStatusListener listener)
Unregister server status listener.
|
static boolean |
GlassFishStatus.start(GlassFishServer srv)
Trigger startup mode for GlassFish server instance.
|
Modifier and Type | Field and Description |
---|---|
protected GlassFishServer |
Runner.server
Holding GlassFish server for command execution.
|
Modifier and Type | Method and Description |
---|---|
static ResultString |
CommandAddResources.addResource(GlassFishServer server,
File xmlResourceFile,
String target)
Add resource to target server.
|
static ResultString |
CommandAddResources.addResource(GlassFishServer server,
File xmlResourceFile,
String target,
long timeout)
Add resource to target server.
|
private static String |
RunnerLocal.buildJavaOptions(GlassFishServer server,
CommandStartDAS command)
Prepare Java VM options for Glassfish server execution.
|
static Path |
PasswordFile.buildPasswordFilePath(GlassFishServer server) |
static ResultString |
CommandCreateJDBCConnectionPool.createJDBCConnectionPool(GlassFishServer server,
String connectionPoolId,
String dataSourceClassName,
String resType,
Map<String,String> properties)
create JDBC connection pool.
|
static ResultString |
CommandCreateJDBCConnectionPool.createJDBCConnectionPool(GlassFishServer server,
String connectionPoolId,
String dataSourceClassName,
String resType,
Map<String,String> properties,
long timeout)
Create JDBC connection pool.
|
static ResultString |
CommandCreateJDBCResource.createJDBCResource(GlassFishServer server,
String connectionPoolId,
String jndiName,
String target,
Map<String,String> properties)
Create JDBC resource.
|
static ResultString |
CommandCreateJDBCResource.createJDBCResource(GlassFishServer server,
String connectionPoolId,
String jndiName,
String target,
Map<String,String> properties,
long timeout)
Create JDBC resource.
|
static ResultString |
CommandDeploy.deploy(GlassFishServer server,
File application,
TaskStateListener listener)
Deploy task that deploys application on server.
|
static <E extends Result> |
ServerAdmin.exec(ExecutorService executor,
GlassFishServer srv,
Command cmd)
Execute remote administration command on GlassFish server.
|
static <E extends Result> |
ServerAdmin.exec(ExecutorService executor,
GlassFishServer srv,
Command cmd,
IdeContext ide)
Deprecated.
IdeContext class will be removed. |
static <E extends Result> |
ServerAdmin.exec(ExecutorService executor,
GlassFishServer srv,
Command cmd,
IdeContext ide,
TaskStateListener... listeners)
Deprecated.
IdeContext class will be removed. |
static <E extends Result> |
ServerAdmin.exec(ExecutorService executor,
GlassFishServer srv,
Command cmd,
TaskStateListener... listeners)
Execute remote administration command on GlassFish server.
|
static <E extends Result> |
ServerAdmin.exec(GlassFishServer srv,
Command cmd)
Execute remote administration command on GlassFish server.
|
static <E extends Result> |
ServerAdmin.exec(GlassFishServer srv,
Command cmd,
IdeContext ide)
Deprecated.
IdeContext class will be removed. |
static <E extends Result> |
ServerAdmin.exec(GlassFishServer srv,
Command cmd,
IdeContext ide,
TaskStateListener... listeners)
Deprecated.
IdeContext class will be removed. |
static <E extends Result> |
ServerAdmin.exec(GlassFishServer srv,
Command cmd,
TaskStateListener... listeners)
Execute remote administration command on GlassFish server.
|
private static String |
RunnerAsadmin.extractPath(GlassFishServer server)
Extracts asadmin JAR path from GlassFish server entity object.
|
private static String |
RunnerJava.getJavaVM(GlassFishServer server,
CommandJava command)
Constructs path to Java VM executable and verifies if it exists.
|
static ResultMap<String,String> |
CommandGetProperty.getProperties(GlassFishServer server,
String propertyPattern)
Retrieve properties from server.
|
static ResultMap<String,String> |
CommandGetProperty.getProperties(GlassFishServer server,
String propertyPattern,
long timeout)
Retrieve properties from server with timeout.
|
Runner |
AdminFactoryRest.getRunner(GlassFishServer srv,
Command cmd)
Build runner for REST command interface execution and connect it with
provided
Command instance. |
Runner |
AdminFactoryHttp.getRunner(GlassFishServer srv,
Command cmd)
Build runner for HTTP command interface execution and connect it with
provided
Command instance. |
abstract Runner |
AdminFactory.getRunner(GlassFishServer srv,
Command cmd)
Build runner for command interface execution and connect it with
provided
Command instance. |
(package private) static GlassFishConfig |
RunnerJava.getServerConfig(GlassFishServer server)
Get
GlassFishConfig instance for provided GlassFish server which
shall not be null . |
static ResultMap<String,List<String>> |
CommandListComponents.listComponents(GlassFishServer server,
String target)
List components.
|
(package private) Runner |
AdminFactory.newRunner(GlassFishServer srv,
Command cmd,
Class runnerClass)
Constructs an instance of selected
Runner child class. |
private static String |
RunnerAsadminChangeAdminPassword.query(GlassFishServer server,
Command command)
Builds
change-admin-password command query string. |
static ResultString |
CommandRestartDAS.restartDAS(GlassFishServer server,
boolean debug)
Restarts running DAS server.
|
static ResultString |
CommandRestartDAS.restartDAS(GlassFishServer server,
boolean debug,
boolean force,
boolean kill)
Restarts running DAS server.
|
static ResultString |
CommandSetProperty.setProperty(GlassFishServer server,
CommandSetProperty command)
Put property to server.
|
static ResultString |
CommandSetProperty.setProperty(GlassFishServer server,
CommandSetProperty command,
long timeout)
Put property to server.
|
static ResultString |
CommandStartCluster.startCluster(GlassFishServer server,
String target)
Starts cluster.
|
static ResultString |
CommandStartInstance.startInstance(GlassFishServer server,
String target)
Starts server instance.
|
static ResultString |
CommandStopCluster.stopCluster(GlassFishServer server,
String target)
Stops cluster.
|
static ResultString |
CommandStopDAS.stopDAS(GlassFishServer server)
Stops running DAS server.
|
static ResultString |
CommandStopInstance.stopInstance(GlassFishServer server,
String target)
Stops server instance.
|
static boolean |
CommandLocation.verifyResult(ResultMap<String,String> resultMap,
GlassFishServer server)
Verifies if domain directory returned by location command result matches
domain directory of provided GlassFish server entity.
|
static boolean |
CommandVersion.verifyResult(ResultString result,
GlassFishServer server)
Verifies if domain directory returned by version command result matches
domain directory of provided GlassFish server entity.
|
Constructor and Description |
---|
PasswordFile(GlassFishServer server)
Constructs an instance of Support for
asadmin
--passwordfile file format. |
Runner(GlassFishServer server,
Command command,
String path)
Constructs an instance of administration command executor using
HTTP interface.
|
Runner(GlassFishServer server,
Command command,
String path,
String query)
Constructs an instance of administration command executor using HTTP
interface.
|
RunnerAsadmin(GlassFishServer server,
Command command,
String query)
Constructs an instance of administration command executor using
command line asadmin interface.
|
RunnerAsadminChangeAdminPassword(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
command line asadmin interface.
|
RunnerHttp(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttp(GlassFishServer server,
Command command,
String query)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttp(GlassFishServer server,
Command command,
String path,
String query)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpAddResources(GlassFishServer server,
Command command,
IdeContext ide)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpCreateAdminObject(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpCreateConnector(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpCreateConnectorConnectionPool(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpCreateInstance(GlassFishServer server,
Command command,
IdeContext ide)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpCreateJDBCConnectionPool(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpCreateJDBCResource(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpDeleteInstance(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpDeleteResource(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpDeploy(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpEnableDisable(GlassFishServer server,
Command command)
Constructs an instance of admin command executor using HTTP interface.
|
RunnerHttpGetProperty(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpListComponents(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpListResources(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpListWebServices(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpLocation(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpRedeploy(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpRestartDAS(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpSetProperty(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpTarget(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpUndeploy(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerJava(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
command line asadmin interface.
|
RunnerJava(GlassFishServer server,
Command command,
String query)
Constructs an instance of administration command executor using
command line asadmin interface.
|
RunnerLocal(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using local
file access interface.
|
RunnerRest(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRest(GlassFishServer server,
Command command,
String query)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRest(GlassFishServer server,
Command command,
String path,
String query)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestAddResources(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestCreateCluster(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestCreateConnector(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestCreateConnectorPool(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestCreateInstance(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestCreateJDBCConnectionPool(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestCreateJDBCResource(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestDeleteCluster(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestDeleteInstance(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestDeleteResource(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestDeploy(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestEnableDisable(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestFetchLogData(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerRestGetProperty(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestList(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestListApplications(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestListResources(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestListWebServices(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestLocation(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerRestSetProperty(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestStartCluster(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestStartInstance(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestStopCluster(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestStopDAS(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestStopInstance(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestUndeploy(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
Modifier and Type | Method and Description |
---|---|
static ResultString |
CloudTasks.deploy(GlassFishServer server,
String account,
File application,
TaskStateListener listener)
Deploy task that deploys application on server.
|
Constructor and Description |
---|
RunnerHttpCloud(GlassFishServer server,
CommandCloud command)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpCloud(GlassFishServer server,
Command command,
String query)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerHttpCloud(GlassFishServer server,
Command command,
String path,
String query)
Constructs an instance of administration command executor using
HTTP interface.
|
RunnerRestCloud(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestCloud(GlassFishServer server,
Command command,
String query)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestCloud(GlassFishServer server,
Command command,
String path,
String query)
Constructs an instance of administration command executor using
REST interface.
|
RunnerRestCloudDeploy(GlassFishServer server,
Command command)
Constructs an instance of administration command executor using
REST interface for deploy command.
|
Modifier and Type | Class and Description |
---|---|
class |
GlassFishServerEntity
GlassFish server entity.
|
Modifier and Type | Method and Description |
---|---|
GlassFishServer |
GlassFishServerStatus.getServer()
Get GlassFish server entity.
|
Modifier and Type | Field and Description |
---|---|
protected GlassFishServer |
GlassFishCloudEntity.localServer
GlassFish cloud local server.
|
Modifier and Type | Method and Description |
---|---|
GlassFishServer |
GlassFishCloud.getLocalServer()
Get GlassFish cloud local server.
|
GlassFishServer |
GlassFishCloudEntity.getLocalServer()
Get GlassFish cloud local server.
|
Modifier and Type | Method and Description |
---|---|
void |
GlassFishCloudEntity.setLocalServer(GlassFishServer localServer)
Set GlassFish cloud local server.
|
Constructor and Description |
---|
GlassFishCloudEntity(String name,
String host,
int port,
GlassFishServer localServer)
Constructs class instance with ALL values set.
|
Modifier and Type | Field and Description |
---|---|
(package private) GlassFishServer |
ServerStatus.Task.server
GlassFish server to be tested.
|
(package private) GlassFishServer |
FetchLog.server
GlassFish server for fetching server log.
|
Modifier and Type | Method and Description |
---|---|
private static void |
ServerTasks.addJavaAgent(GlassFishServer server,
JvmConfigReader jvmConfigReader)
Add java agents into server options.
|
static FetchLogPiped |
FetchLogPiped.create(ExecutorService executor,
GlassFishServer server)
Constructs an instance of GlassFish server log fetcher depending
on server being remote or local with external
ExecutorService . |
static FetchLogPiped |
FetchLogPiped.create(ExecutorService executor,
GlassFishServer server,
boolean skip)
Constructs an instance of GlassFish server log fetcher depending
on server being remote or local with external
ExecutorService . |
static FetchLogPiped |
FetchLogPiped.create(GlassFishServer server)
Constructs an instance of GlassFish server log fetcher depending
on server being remote or local.
|
static FetchLogPiped |
FetchLogPiped.create(GlassFishServer server,
boolean skip)
Constructs an instance of GlassFish server log fetcher depending
on server being remote or local.
|
static ResultProcess |
ServerTasks.startServer(GlassFishServer server,
StartupArgs args)
Convenient method to start glassfish in START mode.
|
static ResultProcess |
ServerTasks.startServer(GlassFishServer server,
StartupArgs args,
ServerTasks.StartMode mode)
Starts local GF server.
|
private static Map |
ServerTasks.varMap(GlassFishServer server,
String javaHome)
Build server variables map.
|
Constructor and Description |
---|
FetchLog(GlassFishServer server,
boolean skip)
Constructs an instance of GlassFish server log fetcher.
|
FetchLogLocal(ExecutorService executor,
GlassFishServer server,
boolean skip)
Constructs an instance of GlassFish local server log fetcher with
external
ExecutorService . |
FetchLogLocal(GlassFishServer server,
boolean skip)
Constructs an instance of GlassFish local server log fetcher.
|
FetchLogPiped(ExecutorService executor,
GlassFishServer server,
boolean skip)
Constructs an instance of GlassFish remote server log fetcher with
external
ExecutorService . |
FetchLogPiped(GlassFishServer server,
boolean skip)
Constructs an instance of GlassFish remote server log fetcher.
|
FetchLogRemote(ExecutorService executor,
GlassFishServer server,
boolean skip)
Constructs an instance of GlassFish remote server log fetcher with
external
ExecutorService . |
FetchLogRemote(GlassFishServer server,
boolean skip)
Constructs an instance of GlassFish remote server log fetcher.
|
ServerStatus.AdminPortTask(GlassFishServer server,
int timeout)
Creates an instance of administration port status check.
|
ServerStatus.LocationsTask(GlassFishServer server,
boolean startup)
Creates an instance of
__locations server status check. |
ServerStatus.Task(GlassFishServer server)
Creates an instance of common individual server status check.
|
ServerStatus.VersionTask(GlassFishServer server,
boolean startup)
Creates an instance of
version server status check. |
ServerStatus(GlassFishServer server,
boolean startup)
Creates an instance of server status check.
|
Modifier and Type | Field and Description |
---|---|
private static Map<GlassFishServer,ConfigBuilder> |
ConfigBuilderProvider.builders
Builders array for each server instance.
|
Modifier and Type | Method and Description |
---|---|
static void |
ConfigBuilderProvider.destroyBuilder(GlassFishServer server)
Remove configuration builder instance for given GlassFish server entity
instance.
|
static ConfigBuilder |
ConfigBuilderProvider.getBuilder(GlassFishServer server)
Get configuration builder instance for given GlassFish server entity
instance.
|
Modifier and Type | Field and Description |
---|---|
private GlassFishServer |
GlassFishStatusEntity.server
GlassFish server entity.
|
Modifier and Type | Field and Description |
---|---|
private Map<GlassFishServer,StatusJob> |
StatusScheduler.jobs
Server status jobs.
|
Modifier and Type | Method and Description |
---|---|
GlassFishServer |
GlassFishStatusEntity.getServer()
Get GlassFish server entity.
|
Modifier and Type | Method and Description |
---|---|
boolean |
StatusScheduler.exists(GlassFishServer srv)
Check if given GlassFisg server instance is registered.
|
GlassFishServerStatus |
StatusScheduler.get(GlassFishServer srv)
Get GlassFisg server instance status object from scheduler.
|
StatusJob |
StatusScheduler.getJob(GlassFishServer srv)
Get server status job from jobs
Map . |
boolean |
StatusScheduler.remove(GlassFishServer srv)
Unregister GlassFisg server instance from scheduler and and stop server
status checking jobs.
|
private StatusJob |
StatusScheduler.removeJob(GlassFishServer srv)
Remove server status job from jobs
Map . |
(package private) void |
GlassFishStatusEntity.setServer(GlassFishServer server)
Set GlassFish server entity.
|
boolean |
StatusScheduler.start(GlassFishServer srv)
Switch GlassFisg server status monitoring into startup mode.
|
Constructor and Description |
---|
GlassFishStatusEntity(GlassFishServer server)
Constructs an instance of GlassFish server status entity.
|
Modifier and Type | Method and Description |
---|---|
static String |
ServerUtils.getDerbyRoot(GlassFishServer server)
Get GlassFish server derby root full path.
|
static String |
ServerUtils.getDomainPath(GlassFishServer server)
Get GlassFish server domain root full path.
|
static File |
ServerUtils.getServerLogFile(GlassFishServer server)
Get GlassFish server log
File object. |
static boolean |
ServerUtils.isDASRunning(GlassFishServer server)
Tests if the server administrator's port is occupied.
|
static boolean |
ServerUtils.isRunning(GlassFishServer server)
Tests if the server listener port is occupied.
|
Copyright © 2013. All Rights Reserved.