|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vmware.vcloud.sdk.VcloudResource<T>
com.vmware.vcloud.sdk.VcloudEntity<com.vmware.vcloud.api.rest.schema.extension.BlockingTaskType>
com.vmware.vcloud.sdk.admin.extensions.BlockingTask
public class BlockingTask
Helper class to access the AMQP Notification delivered by vCloud Director using vCloud API, for the blocking tasks. Client can optionally interact with vCD to resume/abort/fail corresponding operations
| Method Summary | |
|---|---|
void |
abortOperation(String abortMessage)
This operation aborts blocking task. |
static void |
abortOperation(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef,
String abortMessage)
This operation aborts blocking task. |
void |
failOperation(String failMessage)
This operation fails blocking task. |
static void |
failOperation(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef,
String failMessage)
This operation fails blocking task. |
static BlockingTask |
getBlockingTaskById(VcloudClient client,
String vCloudId)
Returns blocking task using the vCloud ID obtained from a blocking Notification. |
static BlockingTask |
getBlockingTaskByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType reference)
Returns blocking task using the entity ReferenceType |
XMLGregorianCalendar |
getCreatedDate()
Returns the blocking task created date. |
static XMLGregorianCalendar |
getCreatedDate(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef)
Returns the blocking task created date. |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getOrgReference()
Returns the organization reference. |
static com.vmware.vcloud.api.rest.schema.ReferenceType |
getOrgReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef)
Returns the organization reference. |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getOwnerReference()
Returns the owner reference. |
static com.vmware.vcloud.api.rest.schema.ReferenceType |
getOwnerReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef)
Returns the owner reference. |
String |
getStatus()
Returns the blocking task status. |
static String |
getStatus(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef)
Returns the blocking task status. |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getTaskReference()
Returns the task reference. |
String |
getTimeoutAction()
Returns the blocking task timeout action. |
static String |
getTimeoutAction(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef)
Returns the blocking task timeout action. |
XMLGregorianCalendar |
getTimeoutDate()
Returns the blocking task timeout date. |
static XMLGregorianCalendar |
getTimeoutDate(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef)
Returns the blocking task timeout date. |
com.vmware.vcloud.api.rest.schema.ReferenceType |
getUserReference()
Returns the user reference. |
static com.vmware.vcloud.api.rest.schema.ReferenceType |
getUserReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef)
Returns the user reference. |
void |
resumeOperation(String resumeMessage)
Resumes blocking task and continues with executing underlying operation. |
static void |
resumeOperation(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef,
String resumeMessage)
Resumes blocking task and continues with executing underlying operation. |
BlockingTask |
updateProgress(String updateMessage)
Update the progress of a blocking task operation. |
BlockingTask |
updateProgress(String updateMessage,
long timeout)
Update the progress of a blocking task operation. |
static BlockingTask |
updateProgress(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef,
String updateMessage)
Update the progress of a blocking task operation. |
static BlockingTask |
updateProgress(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef,
String updateMessage,
long timeout)
Update the progress of a blocking task operation. |
| Methods inherited from class com.vmware.vcloud.sdk.VcloudEntity |
|---|
getMetadata, getReference, getTasks |
| Methods inherited from class com.vmware.vcloud.sdk.VcloudResource |
|---|
getResource |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public com.vmware.vcloud.api.rest.schema.ReferenceType getTaskReference()
throws VCloudException
ReferenceType
VCloudException
public static BlockingTask getBlockingTaskByReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType reference)
throws VCloudException
client - VcloudClientreference - ReferenceType
BlockingTask
VCloudException
public static BlockingTask getBlockingTaskById(VcloudClient client,
String vCloudId)
throws VCloudException
client - VcloudClientvCloudId - format - The vCloud ID is of the form: "urn:vcloud:type:uuid". For example:
"urn:vcloud:media:d9d976ba-e0ec-4682-a67d-380af49b54e1". String
BlockingTask
VCloudExceptionpublic com.vmware.vcloud.api.rest.schema.ReferenceType getOrgReference()
ReferenceTypepublic com.vmware.vcloud.api.rest.schema.ReferenceType getUserReference()
ReferenceTypepublic com.vmware.vcloud.api.rest.schema.ReferenceType getOwnerReference()
ReferenceTypepublic XMLGregorianCalendar getCreatedDate()
XMLGregorianCalendarpublic XMLGregorianCalendar getTimeoutDate()
XMLGregorianCalendarpublic String getStatus()
Stringpublic String getTimeoutAction()
String
public void abortOperation(String abortMessage)
throws VCloudException
abortMessage - String
VCloudException
public void failOperation(String failMessage)
throws VCloudException
failMessage - String
VCloudException
public void resumeOperation(String resumeMessage)
throws VCloudException
resumeMessage - String
VCloudException
public BlockingTask updateProgress(String updateMessage,
long timeout)
throws VCloudException
updateMessage - Stringtimeout - timeout value in milliseconds
BlockingTask
VCloudException
public BlockingTask updateProgress(String updateMessage)
throws VCloudException
updateMessage - String
BlockingTask
VCloudException
public static com.vmware.vcloud.api.rest.schema.ReferenceType getOrgReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef)
throws VCloudException
client - VcloudClientblockingTaskRef - ReferenceType
ReferenceType
VCloudException
public static com.vmware.vcloud.api.rest.schema.ReferenceType getUserReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef)
throws VCloudException
client - VcloudClientblockingTaskRef - ReferenceType
ReferenceType
VCloudException
public static com.vmware.vcloud.api.rest.schema.ReferenceType getOwnerReference(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef)
throws VCloudException
client - VcloudClientblockingTaskRef - ReferenceType
ReferenceType
VCloudException
public static XMLGregorianCalendar getCreatedDate(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef)
throws VCloudException
client - VcloudClientblockingTaskRef - ReferenceType
XMLGregorianCalendar
VCloudException
public static XMLGregorianCalendar getTimeoutDate(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef)
throws VCloudException
client - VcloudClientblockingTaskRef - ReferenceType
XMLGregorianCalendar
VCloudException
public static String getStatus(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef)
throws VCloudException
client - VcloudClientblockingTaskRef - ReferenceType
String
VCloudException
public static String getTimeoutAction(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef)
throws VCloudException
client - VcloudClientblockingTaskRef - ReferenceType
String
VCloudException
public static void abortOperation(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef,
String abortMessage)
throws VCloudException
client - VcloudClientblockingTaskRef - ReferenceTypeabortMessage - String
VCloudException
public static void failOperation(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef,
String failMessage)
throws VCloudException
client - VcloudClientblockingTaskRef - ReferenceTypefailMessage - String
VCloudException
public static void resumeOperation(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef,
String resumeMessage)
throws VCloudException
client - VcloudClientblockingTaskRef - ReferenceTyperesumeMessage - String
VCloudException
public static BlockingTask updateProgress(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef,
String updateMessage,
long timeout)
throws VCloudException
client - VcloudClientblockingTaskRef - ReferenceTypeupdateMessage - Stringtimeout - timeout value in milliseconds
BlockingTask
VCloudException
public static BlockingTask updateProgress(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType blockingTaskRef,
String updateMessage)
throws VCloudException
client - VcloudClientblockingTaskRef - ReferenceTypeupdateMessage - String
BlockingTask
VCloudException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||