public class Task extends ExtensibleManagedObject
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPNAME_INFO |
static String |
SUCCESS |
| Constructor and Description |
|---|
Task(ServerConnection serverConnection,
ManagedObjectReference mor) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelTask() |
ManagedEntity |
getAssociatedManagedEntity() |
ManagedEntity[] |
getLockedManagedEntities() |
TaskInfo |
getTaskInfo() |
void |
setTaskDescription(LocalizableMessage description) |
void |
setTaskState(TaskInfoState tis,
Object result,
LocalizedMethodFault fault) |
void |
updateProgress(int percentDone) |
String |
waitForMe()
Deprecated.
|
String |
waitForTask()
Copyright 2009 NetApp, contribution by Eric Forgette
This is a "drop-in" replacement for waitForMe() that uses a timed polling
in place of waitForValues.
|
String |
waitForTask(int runningDelayInMillSecond,
int queuedDelayInMillSecond)
Copyright 2009 NetApp, contribution by Eric Forgette
This is a replacement for waitForMe() that uses a timed polling
in place of waitForValues.
|
getAvailableField, getValues, setCustomValueconvertMors, getCurrentProperty, getDatastores, getFilter, getHosts, getManagedObject, getManagedObjects, getManagedObjects, getMOR, getNetworks, getPropertiesByPaths, getPropertyByPath, getResourcePools, getScheduledTasks, getServerConnection, getTasks, getViews, getVimService, getVms, retrieveObjectProperties, setMOR, setServerConnection, toString, waitForValuespublic static final String PROPNAME_INFO
public static final String SUCCESS
public Task(ServerConnection serverConnection, ManagedObjectReference mor)
public TaskInfo getTaskInfo() throws InvalidProperty, RuntimeFault, RemoteException
public ManagedEntity getAssociatedManagedEntity()
public ManagedEntity[] getLockedManagedEntities()
public void cancelTask()
throws RuntimeFault,
RemoteException
RuntimeFaultRemoteExceptionpublic void setTaskState(TaskInfoState tis, Object result, LocalizedMethodFault fault) throws InvalidState, RuntimeFault, RemoteException
InvalidStateRuntimeFaultRemoteExceptionpublic void updateProgress(int percentDone)
throws InvalidState,
OutOfBounds,
RuntimeFault,
RemoteException
public void setTaskDescription(LocalizableMessage description) throws RuntimeFault, RemoteException
RuntimeFaultRemoteExceptionpublic String waitForMe() throws InvalidProperty, RuntimeFault, RemoteException
InvalidPropertyRuntimeFaultRemoteExceptionpublic String waitForTask() throws RuntimeFault, RemoteException, InterruptedException
RuntimeFaultRemoteExceptionInterruptedExceptionRuntimeException - if the third exception is not RuntimeFault or RemoteExceptionpublic String waitForTask(int runningDelayInMillSecond, int queuedDelayInMillSecond) throws RuntimeFault, RemoteException, InterruptedException
runningDelayInMillSecond - - number of milliseconds to sleep between polls for a running taskqueuedDelayInMillSecond - - number of milliseconds to sleep between polls for a queued taskRuntimeFaultRemoteExceptionInterruptedExceptionRuntimeException - if the third exception is not RuntimeFault or RemoteExceptionCopyright © 2011-2012. All Rights Reserved.