public class ServerAdmin extends Object
GlassFish command facade allows remote and local server handling.
Constructor and Description |
---|
ServerAdmin() |
Modifier and Type | Method and Description |
---|---|
static <E extends Result> |
exec(ExecutorService executor,
GlassFishServer srv,
Command cmd)
Execute remote administration command on GlassFish server.
|
static <E extends Result> |
exec(ExecutorService executor,
GlassFishServer srv,
Command cmd,
IdeContext ide)
Deprecated.
IdeContext class will be removed. |
static <E extends Result> |
exec(ExecutorService executor,
GlassFishServer srv,
Command cmd,
IdeContext ide,
TaskStateListener... listeners)
Deprecated.
IdeContext class will be removed. |
static <E extends Result> |
exec(ExecutorService executor,
GlassFishServer srv,
Command cmd,
TaskStateListener... listeners)
Execute remote administration command on GlassFish server.
|
static <E extends Result> |
exec(GlassFishServer srv,
Command cmd)
Execute remote administration command on GlassFish server.
|
static <E extends Result> |
exec(GlassFishServer srv,
Command cmd,
IdeContext ide)
Deprecated.
IdeContext class will be removed. |
static <E extends Result> |
exec(GlassFishServer srv,
Command cmd,
IdeContext ide,
TaskStateListener... listeners)
Deprecated.
IdeContext class will be removed. |
static <E extends Result> |
exec(GlassFishServer srv,
Command cmd,
TaskStateListener... listeners)
Execute remote administration command on GlassFish server.
|
static ExecutorService |
executor(int size)
Get individual executor pool for remote administration command
execution.
|
public static <E extends Result> Future<E> exec(GlassFishServer srv, Command cmd, IdeContext ide)
IdeContext
class will be removed.Execution of administration command is serialized using internal executor.
srv
- Target GlassFish server.cmd
- Server administration command to me executed.ide
- IDE Context object (not used).public static <E extends Result> Future<E> exec(GlassFishServer srv, Command cmd, IdeContext ide, TaskStateListener... listeners)
IdeContext
class will be removed.Execution of administration command is serialized using internal executor.
srv
- Target GlassFish server.cmd
- Server administration command to me executed.ide
- IDE Context object (not used).listeners
- Listeners that are called when command execution status changes.public static ExecutorService executor(int size)
size
- Thread pool size (how many tasks to execute in parallel)..Executor
instance.public static <E extends Result> Future<E> exec(ExecutorService executor, GlassFishServer srv, Command cmd, IdeContext ide)
IdeContext
class will be removed.This allows to execute tasks in parallel using provided executor.
executor
- Executor service used to start task.srv
- Target GlassFish server.cmd
- Server administration command to me executed.ide
- IDE Context object (not used).public static <E extends Result> Future<E> exec(ExecutorService executor, GlassFishServer srv, Command cmd, IdeContext ide, TaskStateListener... listeners)
IdeContext
class will be removed.executor
- Executor service used to start task.srv
- Target GlassFish server.cmd
- Server administration command to me executed.ide
- IDE Context object (not used).listeners
- Listeners that are called when command execution status changes.public static <E extends Result> Future<E> exec(GlassFishServer srv, Command cmd)
Execution of administration command is serialized using internal executor.
srv
- Target GlassFish server.cmd
- Server administration command to me executed.public static <E extends Result> Future<E> exec(GlassFishServer srv, Command cmd, TaskStateListener... listeners)
Execution of administration command is serialized using internal executor.
srv
- Target GlassFish server.cmd
- Server administration command to me executed.listeners
- Listeners that are called when command execution status changes.public static <E extends Result> Future<E> exec(ExecutorService executor, GlassFishServer srv, Command cmd)
This allows to execute tasks in parallel using provided executor.
executor
- Executor service used to start task.srv
- Target GlassFish server.cmd
- Server administration command to me executed.public static <E extends Result> Future<E> exec(ExecutorService executor, GlassFishServer srv, Command cmd, TaskStateListener... listeners)
executor
- Executor service used to start task.srv
- Target GlassFish server.cmd
- Server administration command to me executed.listeners
- Listeners that are called when command execution status changes.Copyright © 2013. All Rights Reserved.