|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.ow2.jasmine.jadort.client.console.JadortConsole
public class JadortConsole
A command line client for JaDOrT
| Field Summary | |
|---|---|
static Map<String,Method> |
output
Associate method name on the JaDOrT engine with method name to handle output on the client |
| Constructor Summary | |
|---|---|
JadortConsole()
|
|
| Method Summary | |
|---|---|
static GroupBean |
getGroupByName(String name,
JadortCommand JadortConsoleInterface)
Get a group by is name |
static List<GroupBean> |
getGroups(JadortCommand JadortConsoleInterface)
Return the list of the groups. |
static ServerBean |
getServerByName(String name,
JadortCommand JadortConsoleInterface)
Get a server by its name |
static VMImageBean |
getVMImageByName(String name,
JadortCommand JadortConsoleInterface)
Get a VM Image by its name |
static List<VMImageBean> |
getVMImages(JadortCommand JadortConsoleInterface)
Return the list of the VM Images. |
static WorkerBean |
getWorkerByName(String name,
JadortCommand JadortConsoleInterface)
Get a worker by its name |
static Integer |
handleBoolean(Boolean bool)
Display a boolean |
static OperationStateBean |
handleCreateOperation(OperationStateBean op)
Manage display of a created operation. |
static void |
handleGroup(GroupBean group)
Display the selected group |
static void |
handleGroupsList(List<GroupBean> groups)
Manage display of a groups list |
static Integer |
handleInteger(Integer integer)
Display an integer |
static void |
handleOperationsList(List<OperationStateBean> operations)
Display a list of operation |
static void |
handleServerProgressList(List<ServerProgressBean> serverProgresss)
display a list of serverProgress |
static void |
handleStep(OperationStateBean.Step step)
Display a step of operation |
static void |
handleVMImage(VMImageBean vmImage)
Display the selected VMImage |
static void |
handleVMImagesList(List<VMImageBean> vmImages)
Manage display of a VM Image list |
static void |
handleWorkerProgressList(List<WorkerProgressBean> workerProgresss)
display a list of workerProgress |
static void |
main(String[] args)
The main |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static Map<String,Method> output
| Constructor Detail |
|---|
public JadortConsole()
| Method Detail |
|---|
public static void main(String[] args)
args - command line arguments
public static GroupBean getGroupByName(String name,
JadortCommand JadortConsoleInterface)
throws Exception
name - The name of the group you are looking for.JadortConsoleInterface - a instance of CommandInterface
Exception
public static VMImageBean getVMImageByName(String name,
JadortCommand JadortConsoleInterface)
throws Exception
name - The name of the VM Image you are looking for.JadortConsoleInterface - a instance of CommandInterface
Exception
public static ServerBean getServerByName(String name,
JadortCommand JadortConsoleInterface)
throws Exception
name - The name of the server you are looking for.JadortConsoleInterface - a instance of CommandInterface
Exception
public static WorkerBean getWorkerByName(String name,
JadortCommand JadortConsoleInterface)
throws Exception
name - The name of the worker you are looking for.JadortConsoleInterface - a instance of CommandInterface
Exception
public static List<GroupBean> getGroups(JadortCommand JadortConsoleInterface)
throws Exception
JadortConsoleInterface - a instance of CommandInterface
Exception
public static List<VMImageBean> getVMImages(JadortCommand JadortConsoleInterface)
throws Exception
JadortConsoleInterface - a instance of CommandInterface
Exceptionpublic static OperationStateBean handleCreateOperation(OperationStateBean op)
op - The operation to displaypublic static void handleOperationsList(List<OperationStateBean> operations)
operations - List of operationspublic static void handleGroupsList(List<GroupBean> groups)
groups - The group list to displaypublic static void handleGroup(GroupBean group)
group - The selected group.public static void handleVMImagesList(List<VMImageBean> vmImages)
vmImages - The group list to displaypublic static void handleVMImage(VMImageBean vmImage)
group - The selected VM Image.public static void handleServerProgressList(List<ServerProgressBean> serverProgresss)
serverProgresss - The list of serverProgress to display.public static void handleWorkerProgressList(List<WorkerProgressBean> workerProgresss)
workerProgresss - The list of serverProgress to display.public static Integer handleBoolean(Boolean bool)
bool - The boolean to display
public static Integer handleInteger(Integer integer)
integer - The integer to display
public static void handleStep(OperationStateBean.Step step)
step - The step to display
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||