Search in sources :

Example 6 with Context

use of com.att.cdp.zones.Context in project AJSC by att.

the class ConnectedServer method attachVolume.

/**
 * @see com.att.cdp.zones.model.Server#attachVolume(com.att.cdp.zones.model.Volume, java.lang.String)
 */
@Override
public void attachVolume(Volume volume, String device) throws ZoneException {
    Context context = getContext();
    context.getComputeService().attachVolume(this, volume, device);
}
Also used : Context(com.att.cdp.zones.Context)

Example 7 with Context

use of com.att.cdp.zones.Context in project AJSC by att.

the class ConnectedServer method refreshStatus.

/**
 * @see com.att.cdp.zones.model.Server#refreshStatus()
 */
@Override
public void refreshStatus() throws ZoneException {
    Context context = getContext();
    context.getComputeService().refreshServerStatus(this);
}
Also used : Context(com.att.cdp.zones.Context)

Example 8 with Context

use of com.att.cdp.zones.Context in project AJSC by att.

the class ConnectedServer method unpause.

/**
 * @see com.att.cdp.zones.model.Server#unpause()
 */
@Override
public void unpause() throws ZoneException {
    Context context = getContext();
    context.getComputeService().unpauseServer(this);
}
Also used : Context(com.att.cdp.zones.Context)

Example 9 with Context

use of com.att.cdp.zones.Context in project AJSC by att.

the class ConnectedServer method reboot.

/**
 * This method reboot the given server
 * @param rebootType
 * @throws ZoneException
 */
public void reboot(String rebootType) throws ZoneException {
    Context context = getContext();
    context.getComputeService().rebootServer(this, rebootType);
}
Also used : Context(com.att.cdp.zones.Context)

Example 10 with Context

use of com.att.cdp.zones.Context in project AJSC by att.

the class ConnectedServer method resume.

/**
 * @see com.att.cdp.zones.model.Server#resume()
 */
@Override
public void resume() throws ZoneException {
    Context context = getContext();
    context.getComputeService().resumeServer(this);
}
Also used : Context(com.att.cdp.zones.Context)

Aggregations

Context (com.att.cdp.zones.Context)248 OpenStackContext (com.att.cdp.openstack.OpenStackContext)167 OpenStackBaseException (com.woorea.openstack.base.client.OpenStackBaseException)140 ArrayList (java.util.ArrayList)55 Ignore (org.junit.Ignore)50 Test (org.junit.Test)47 Quantum (com.woorea.openstack.quantum.Quantum)35 ZoneException (com.att.cdp.exceptions.ZoneException)30 NetworkService (com.att.cdp.zones.NetworkService)24 Server (com.att.cdp.zones.model.Server)22 ComputeService (com.att.cdp.zones.ComputeService)21 Network (com.att.cdp.zones.model.Network)19 OpenStackServer (com.att.cdp.openstack.model.OpenStackServer)18 OpenStackSnapshot (com.att.cdp.openstack.model.OpenStackSnapshot)18 Subnet (com.att.cdp.zones.model.Subnet)15 Port (com.att.cdp.zones.model.Port)14 Snapshot (com.att.cdp.zones.model.Snapshot)12 Volume (com.att.cdp.zones.model.Volume)11 OpenStackResponseException (com.woorea.openstack.base.client.OpenStackResponseException)11 ResourceNotFoundException (com.att.cdp.exceptions.ResourceNotFoundException)10