Search in sources :

Example 26 with Server

use of com.att.cdp.zones.model.Server in project AJSC by att.

the class ConnectedServer method refreshAll.

/**
 * @see com.att.cdp.zones.model.Server#refresh()
 */
@Override
public void refreshAll() throws ZoneException {
    Context context = getContext();
    Server copy = context.getComputeService().getServer(getId());
    ObjectMapper.map(copy, this);
}
Also used : Context(com.att.cdp.zones.Context) Server(com.att.cdp.zones.model.Server)

Aggregations

Server (com.att.cdp.zones.model.Server)26 Context (com.att.cdp.zones.Context)22 OpenStackServer (com.att.cdp.openstack.model.OpenStackServer)17 OpenStackContext (com.att.cdp.openstack.OpenStackContext)16 Ignore (org.junit.Ignore)13 ComputeService (com.att.cdp.zones.ComputeService)12 ConnectedServer (com.att.cdp.zones.spi.model.ConnectedServer)12 OpenStackBaseException (com.woorea.openstack.base.client.OpenStackBaseException)11 Test (org.junit.Test)11 ZoneException (com.att.cdp.exceptions.ZoneException)9 ArrayList (java.util.ArrayList)7 Port (com.att.cdp.zones.model.Port)6 OpenStackPort (com.att.cdp.openstack.model.OpenStackPort)4 NetworkService (com.att.cdp.zones.NetworkService)4 Network (com.att.cdp.zones.model.Network)4 Servers (com.woorea.openstack.nova.model.Servers)4 HashMap (java.util.HashMap)4 ACL (com.att.cdp.zones.model.ACL)3 Subnet (com.att.cdp.zones.model.Subnet)3 List (java.util.List)3