live.threads
Class ThreadedZVMTasks.ChangeMemory

java.lang.Object
  extended byjava.lang.Thread
      extended bylive.threads.ThreadedUserAction
          extended bylive.threads.ThreadedZVMTasks.ChangeMemory
All Implemented Interfaces:
Runnable
Enclosing class:
ThreadedZVMTasks

public static class ThreadedZVMTasks.ChangeMemory
extends ThreadedUserAction

This changes a guest's memory. Wraps ZVMTasks.changeMemory(String, String, String).


Nested Class Summary
 
Nested classes inherited from class live.threads.ThreadedUserAction
 
Field Summary
private  String guestName
           
private  String initMem
           
private  String maxMem
           
 
Fields inherited from class live.threads.ThreadedUserAction
CANCELED, COMPLETE, done, ERROR, IN_PROGRESS, INDETERMINATE, PENDING, tasks
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ThreadedZVMTasks.ChangeMemory(ThreadInitInfo initInfo, String guestName, String initMem, String maxMem)
          Creates an action that will call ZVMTasks.changeMemory(String, String, String).
 
Method Summary
 String description()
          Returns a description of this task
 Object rawResult()
          Returns null or an exception
protected  void runImpl()
          Calls ZVMTasks.changeMemory(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

guestName

private final String guestName

initMem

private final String initMem

maxMem

private final String maxMem
Constructor Detail

ThreadedZVMTasks.ChangeMemory

public ThreadedZVMTasks.ChangeMemory(ThreadInitInfo initInfo,
                                     String guestName,
                                     String initMem,
                                     String maxMem)
Creates an action that will call ZVMTasks.changeMemory(String, String, String).

Parameters:
initInfo - The ThreadInitInfo object
guestName - The name of the guest
initMem - The initial memory given to a guest
maxMem - The maximum memory available to a guest
Method Detail

runImpl

protected void runImpl()
                throws ZVMTasksException
Calls ZVMTasks.changeMemory(String, String, String).

Specified by:
runImpl in class ThreadedUserAction
Throws:
ZVMTasksException
See Also:
ThreadedUserAction.run()

description

public String description()
Returns a description of this task

Specified by:
description in class ThreadedUserAction
Returns:
String
See Also:
ThreadedUserAction.toString()

rawResult

public Object rawResult()
Returns null or an exception

Specified by:
rawResult in class ThreadedUserAction
Returns:
Object


Copyright © 2005