live.threads
Class ThreadedZVMTasks.CreateMinidisk

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

public static class ThreadedZVMTasks.CreateMinidisk
extends ThreadedUserAction

This adds a minidisk for a guest. Wraps ZVMTasks.createMDisk(String, String, String, String, String, String, String, String).


Nested Class Summary
 
Nested classes inherited from class live.threads.ThreadedUserAction
 
Field Summary
private  String strAllocationType
           
private  String strDiskMode
           
private  String strDiskSize
           
private  String strGuestName
           
private  String strMultiPW
           
private  String strReadPW
           
private  String strWritePW
           
private  Object virtualDeviceAddress
           
 
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.CreateMinidisk(ThreadInitInfo initInfo, String strGuestName, Object virtualDeviceAddress, String strAllocationType, String strDiskSizeMB, String strDiskMode, String strReadPW, String strWritePW, String strMultiPW)
          Creates an action that calls ZVMTasks.createMDisk(String, String, String, String, String, String, String, String).
 
Method Summary
 String description()
          Returns a description of this task
private  String getVirtualAddress()
          Finds the lowest free virtual address for this guest
 Object rawResult()
          Returns null or an exception.
protected  void runImpl()
          Calls ZVMTasks.createMDisk(String, String, String, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

strGuestName

private final String strGuestName

strAllocationType

private final String strAllocationType

strDiskSize

private final String strDiskSize

strDiskMode

private final String strDiskMode

strReadPW

private final String strReadPW

strWritePW

private final String strWritePW

strMultiPW

private final String strMultiPW

virtualDeviceAddress

private Object virtualDeviceAddress
Constructor Detail

ThreadedZVMTasks.CreateMinidisk

public ThreadedZVMTasks.CreateMinidisk(ThreadInitInfo initInfo,
                                       String strGuestName,
                                       Object virtualDeviceAddress,
                                       String strAllocationType,
                                       String strDiskSizeMB,
                                       String strDiskMode,
                                       String strReadPW,
                                       String strWritePW,
                                       String strMultiPW)
Creates an action that calls ZVMTasks.createMDisk(String, String, String, String, String, String, String, String).

Parameters:
initInfo - The ThreadInitInfo object
strGuestName - The name of the guest to create a minidisk for
virtualDeviceAddress - The address to create a minidisk at
strAllocationType - How the minidisk is to be allocated (usually AUTOG)
strDiskSizeMB - The size of the disk in MB
strDiskMode - The access mode for the disk
strReadPW - The ReadPW for the disk (if RR mode)
strWritePW - The WritePW for the disk (if WR mode)
strMultiPW - The MultiPW for the disk (if MW mode and the other two passwords are specified)
Method Detail

getVirtualAddress

private String getVirtualAddress()
Finds the lowest free virtual address for this guest

Returns:
String 4-digit hexadecimal address

runImpl

protected void runImpl()
                throws ZVMTasksException
Calls ZVMTasks.createMDisk(String, String, String, 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 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