live.threads
Class ThreadedZVMTasks.CreateGuest
java.lang.Object
java.lang.Thread
live.threads.ThreadedUserAction
live.threads.ThreadedZVMTasks.CreateGuest
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- ThreadedZVMTasks
- public static class ThreadedZVMTasks.CreateGuest
- extends ThreadedUserAction
This creates a guest. Wraps
ZVMTasks.createGuest(String, String, String, String, String)
.
Methods inherited from class live.threads.ThreadedUserAction |
getCache, getException, getID, getStatus, getTimeFinished, getTimeStarted, init, init, isFinished, result, run, setCanceled, setComplete, setError, setError, setIndeterminate, setIndeterminate, setInProgress, startJoinForever, startJoinTimeout, startNoJoin, toString |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, yield |
name
private String name
pass
private String pass
profile
private String profile
defMem
private String defMem
maxMem
private String maxMem
ThreadedZVMTasks.CreateGuest
public ThreadedZVMTasks.CreateGuest(ThreadInitInfo initInfo,
String name,
String pass,
String defMem,
String maxMem,
String profile)
- Creates an action that will call
ZVMTasks.createGuest(String, String, String, String, String)
.
- Parameters:
initInfo
- The ThreadInitInfo objectname
- The name of the new guestpass
- The password the new guest should initially havedefMem
- The default amount of memory ("storage") the guest should
have when activatedmaxMem
- The maximum amount of memory the guest should be able to setprofile
- The name of the profile to base the guest off of
runImpl
protected void runImpl()
throws ZVMTasksException
- Calls
ZVMTasks.createGuest(String, String, String, String, String)
.
- Specified by:
runImpl
in class ThreadedUserAction
- Throws:
ZVMTasksException
- See Also:
ThreadedUserAction.run()
description
public String description()
- Returns a description of the task
- Specified by:
description
in class ThreadedUserAction
- Returns:
- String
- See Also:
ThreadedUserAction.toString()
rawResult
public Object rawResult()
- Returns null, as createGuest
is void, unless the call was made and terminated by an exception, in
which case this returns the ZVMTasksException that was thrown.
- Specified by:
rawResult
in class ThreadedUserAction
- Returns:
- null or createGuest
Copyright © 2005