live.threads
Class ThreadedZVMTasks.VSwitchDetatch
java.lang.Object
java.lang.Thread
live.threads.ThreadedUserAction
live.threads.ThreadedZVMTasks.VSwitchDetatch
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- ThreadedZVMTasks
- public static class ThreadedZVMTasks.VSwitchDetatch
- extends ThreadedUserAction
This action will disconnect a guest from a LAN. Wraps
ZVMTasks.virtualSwitchDetatch(String, String)
.
(The address of the virtual NIC on the guest is detected automagically.)
This calls a custom SMAPI exec rather than detach/delete because
that one has even worse problems than create/connect. If there were
5 guests with directory entries to attach to a VSwitch but only one
was logged on, detaching that guest would delete the VSwitch.
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 |
netName
private String netName
guestName
private String guestName
ThreadedZVMTasks.VSwitchDetatch
public ThreadedZVMTasks.VSwitchDetatch(ThreadInitInfo initInfo,
String netName,
String guestName)
- Creates an action that will call
ZVMTasks.virtualSwitchDetatch(String, String)
.
- Parameters:
initInfo
- The ThreadInitInfo objectnetName
- The VSwitch name to detach the guest fromguestName
- The guest name to detach
runImpl
protected void runImpl()
throws ZVMTasksException
- Calls
ZVMTasks.virtualSwitchDetatch(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:
- null or an exception thrown by
ZVMTasks.virtualSwitchDetatch(String,String)
Copyright © 2005