org.jclouds.vcloud.compute.internal
Class CommonVCloudComputeClientImpl<T,A extends ReferenceType>
java.lang.Object
org.jclouds.vcloud.compute.internal.CommonVCloudComputeClientImpl<T,A>
- All Implemented Interfaces:
- CommonVCloudComputeClient
@Singleton
public abstract class CommonVCloudComputeClientImpl<T,A extends ReferenceType>
- extends Object
- implements CommonVCloudComputeClient
- Author:
- Adrian Cole
|
Method Summary |
protected abstract void |
deleteVApp(A vApp)
|
abstract Set<String> |
getPrivateAddresses(URI id)
returns a set of addresses that are only visible to the private network. |
abstract Set<String> |
getPublicAddresses(URI id)
returns a set of addresses that are publically visible |
protected abstract Status |
getStatus(A vApp)
|
protected abstract Task |
powerOff(A vApp)
|
protected abstract A |
refreshVApp(URI id)
|
protected abstract Task |
reset(A vApp)
|
void |
reset(URI id)
reboots the vApp, blocking until the following state transition is complete:
current -> VAppStatus#OFF -> VAppStatus#ON |
void |
stop(URI id)
Destroys dependent resources, powers off and deletes the vApp, blocking until the following
state transition is complete:
current -> VAppStatus#OFF -> deleted |
protected abstract Task |
undeploy(A vApp)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
@Named(value="jclouds.compute")
protected org.jclouds.logging.Logger logger
client
protected final CommonVCloudClient client
taskTester
protected final com.google.common.base.Predicate<URI> taskTester
CommonVCloudComputeClientImpl
@Inject
public CommonVCloudComputeClientImpl(CommonVCloudClient client,
com.google.common.base.Predicate<URI> successTester)
reset
public void reset(URI id)
- Description copied from interface:
CommonVCloudComputeClient
- reboots the vApp, blocking until the following state transition is complete:
current ->
VAppStatus#OFF -> VAppStatus#ON
- Specified by:
reset in interface CommonVCloudComputeClient
- Parameters:
id - vApp to reboot
reset
protected abstract Task reset(A vApp)
refreshVApp
protected abstract A refreshVApp(URI id)
stop
public void stop(URI id)
- Description copied from interface:
CommonVCloudComputeClient
- Destroys dependent resources, powers off and deletes the vApp, blocking until the following
state transition is complete:
current ->
VAppStatus#OFF -> deleted
- Specified by:
stop in interface CommonVCloudComputeClient
- Parameters:
id - vApp to stop
deleteVApp
protected abstract void deleteVApp(A vApp)
undeploy
protected abstract Task undeploy(A vApp)
powerOff
protected abstract Task powerOff(A vApp)
getStatus
protected abstract Status getStatus(A vApp)
getPrivateAddresses
public abstract Set<String> getPrivateAddresses(URI id)
- Description copied from interface:
CommonVCloudComputeClient
- returns a set of addresses that are only visible to the private network.
- Specified by:
getPrivateAddresses in interface CommonVCloudComputeClient
getPublicAddresses
public abstract Set<String> getPublicAddresses(URI id)
- Description copied from interface:
CommonVCloudComputeClient
- returns a set of addresses that are publically visible
- Specified by:
getPublicAddresses in interface CommonVCloudComputeClient
Copyright © 2009-2011 jclouds. All Rights Reserved.