use of com.att.cdp.openstack.OpenStackContext in project AJSC by att.
the class OpenStackStackService method connect.
/**
* This is a helper method used to construct the Nova service object and setup the environment to access the
* OpenStack compute service (Nova).
*
* @throws NotLoggedInException
* If the user is not logged in
* @throws ContextClosedException
* If the user attempts an operation after the context is closed
*/
private void connect() throws NotLoggedInException, ContextClosedException {
checkLogin();
checkOpen();
Context context = getContext();
OpenStackContext osContext = (OpenStackContext) context;
connector = osContext.getHeatConnector();
((OpenStackContext) context).refreshIfStale(connector);
}
use of com.att.cdp.openstack.OpenStackContext in project AJSC by att.
the class OpenStackVolumeService method connect.
/**
* This is a helper method used to construct the Nova service object and setup the environment to access the
* OpenStack compute service (Nova).
*
* @throws NotLoggedInException
* If the user is not logged in
* @throws ContextClosedException
* If the user attempts an operation after the context is closed
*/
private void connect() throws NotLoggedInException, ContextClosedException {
checkLogin();
checkOpen();
Context context = getContext();
OpenStackContext osContext = (OpenStackContext) context;
nova = osContext.getNovaConnector();
((OpenStackContext) context).refreshIfStale(nova);
}
use of com.att.cdp.openstack.OpenStackContext in project AJSC by att.
the class OpenStackComputeService method connect.
/**
* This is a helper method used to construct the Nova service object and setup the environment to access the
* OpenStack compute service (Nova).
*
* @throws NotLoggedInException
* If the user is not logged in
* @throws ContextClosedException
* If the user attempts an operation after the context is closed
*/
private void connect() throws NotLoggedInException, ContextClosedException {
Context context = getContext();
checkLogin();
checkOpen();
nova = ((OpenStackContext) context).getNovaConnector();
((OpenStackContext) context).refreshIfStale(nova);
}
use of com.att.cdp.openstack.OpenStackContext in project AJSC by att.
the class OpenStackImageService method connect.
/**
* This is a helper method used to construct the Glance service object and setup the environment to access the
* OpenStack image service (Glance).
*
* @throws NotLoggedInException
* If the user is not logged in
* @throws ContextClosedException
* If the user attempts an operation after the context is closed
*/
private void connect() throws NotLoggedInException, ContextClosedException {
checkLogin();
checkOpen();
Context context = getContext();
OpenStackContext osContext = (OpenStackContext) context;
glance = osContext.getGlanceConnector();
((OpenStackContext) context).refreshIfStale(glance);
}
use of com.att.cdp.openstack.OpenStackContext in project AJSC by att.
the class OpenStackImageService method connect.
/**
* This is a helper method used to construct the Glance service object and setup the environment to access the
* OpenStack image service (Glance).
*
* @throws NotLoggedInException
* If the user is not logged in
* @throws ContextClosedException
* If the user attempts an operation after the context is closed
*/
private void connect() throws NotLoggedInException, ContextClosedException {
checkLogin();
checkOpen();
Context context = getContext();
OpenStackContext osContext = (OpenStackContext) context;
// connector = osContext.getGlanceConnector();
nova = osContext.getNovaConnector();
((OpenStackContext) context).refreshIfStale(nova);
}
Aggregations