示例#1
0
 /**
  * {@inheritDoc}
  */
 public function __construct(OpenStack $conn, $serviceName, $serviceRegion, $urltype)
 {
     $this->getLogger()->info('Initializing Orchestration...');
     parent::__construct($conn, 'orchestration', $serviceName, $serviceRegion, $urltype);
 }
示例#2
0
 /**
  * Called when creating a new Compute service object
  *
  * _NOTE_ that the order of parameters for this is *different* from the
  * parent Service class. This is because the earlier parameters are the
  * ones that most typically change, whereas the later ones are not
  * modified as often.
  *
  * @param \OpenCloud\Identity $conn - a connection object
  * @param string $serviceRegion - identifies the region of this Compute
  *      service
  * @param string $urltype - identifies the URL type ("publicURL",
  *      "privateURL")
  * @param string $serviceName - identifies the name of the service in the
  *      catalog
  */
 public function __construct(OpenStack $conn, $serviceName, $serviceRegion, $urltype)
 {
     $this->debug(_('initializing Orchestration...'));
     parent::__construct($conn, 'orchestration', $serviceName, $serviceRegion, $urltype);
 }
示例#3
0
 /**
  * Main service constructor.
  * 
  * @access public
  * @param OpenStack $connection
  * @param mixed $serviceName
  * @param mixed $serviceRegion
  * @param mixed $urlType
  * @return void
  */
 public function __construct(OpenStack $connection, $serviceName, $serviceRegion, $urlType)
 {
     parent::__construct($connection, 'rax:monitor', $serviceName, $serviceRegion, $urlType);
 }
示例#4
0
 /**
  * Called when creating a new Compute service object
  *
  * _NOTE_ that the order of parameters for this is *different* from the
  * parent Service class. This is because the earlier parameters are the
  * ones that most typically change, whereas the later ones are not
  * modified as often.
  *
  * @param \OpenCloud\Identity $conn - a connection object
  * @param string $serviceRegion - identifies the region of this Compute
  *      service
  * @param string $urltype - identifies the URL type ("publicURL",
  *      "privateURL")
  * @param string $serviceName - identifies the name of the service in the
  *      catalog
  */
 public function __construct(OpenStack $conn, $serviceType, $serviceName, $serviceRegion, $urltype)
 {
     parent::__construct($conn, $serviceType, $serviceName, $serviceRegion, $urltype);
     $this->_url = Lang::noslash(parent::Url());
     $this->getLogger()->info(Lang::translate('Initializing Nova...'));
 }
示例#5
0
 /**
  * creates a new DNS object
  *
  * @param \OpenCloud\OpenStack $conn connection object
  * @param string $serviceName the name of the service
  * @param string $serviceRegion (not currently used; DNS is regionless)
  * @param string $urltype the type of URL
  */
 public function __construct(OpenStack $connection, $serviceName, $serviceRegion, $urltype)
 {
     $this->getLogger()->info('Initializing DNS...');
     parent::__construct($connection, 'rax:dns', $serviceName, $serviceRegion, $urltype);
 }
示例#6
0
 /**
  * Called when creating a new Autoscale service object
  *
  * _NOTE_ that the order of parameters for this is *different* from the
  * parent Service class. This is because the earlier parameters are the
  * ones that most typically change, whereas the later ones are not
  * modified as often.
  *
  * @param OpenStack $conn - a connection object
  * @param string $serviceRegion - identifies the region of this Compute
  *      service
  * @param string $urltype - identifies the URL type ("publicURL",
  *      "privateURL")
  * @param string $serviceName - identifies the name of the service in the
  *      catalog
  */
 public function __construct(OpenStack $conn, $serviceName, $serviceRegion, $urltype, $customEndpoint = null)
 {
     parent::__construct($conn, 'rax:autoscale', $serviceName, $serviceRegion, $urltype, $customEndpoint);
     $this->getLogger()->info('Initializing Autoscale...');
 }
示例#7
0
 /**
  * Called when creating a new Autoscale service object
  *
  * _NOTE_ that the order of parameters for this is *different* from the
  * parent Service class. This is because the earlier parameters are the
  * ones that most typically change, whereas the later ones are not
  * modified as often.
  *
  * @param OpenStack $conn - a connection object
  * @param string $serviceRegion - identifies the region of this Compute
  *      service
  * @param string $urltype - identifies the URL type ("publicURL",
  *      "privateURL")
  * @param string $serviceName - identifies the name of the service in the
  *      catalog
  */
 public function __construct(OpenStack $conn, $serviceName, $serviceRegion, $urltype)
 {
     $this->debug(_('initializing Autoscale...'));
     parent::__construct($conn, 'rax:autoscale', $serviceName, $serviceRegion, $urltype);
 }
示例#8
0
 /**
  * creates a new DNS object
  *
  * @param \OpenCloud\OpenStack $conn connection object
  * @param string $serviceName the name of the service
  * @param string $serviceRegion (not currently used; DNS is regionless)
  * @param string $urltype the type of URL
  */
 public function __construct(OpenStack $connection, $serviceName, $serviceRegion, $urltype)
 {
     $this->debug(Lang::translate('initializing DNS...'));
     parent::__construct($connection, 'rax:dns', $serviceName, $serviceRegion, $urltype);
 }
示例#9
0
文件: Nova.php 项目: omusico/home365
 /**
  * Called when creating a new Compute service object
  *
  * _NOTE_ that the order of parameters for this is *different* from the
  * parent Service class. This is because the earlier parameters are the
  * ones that most typically change, whereas the later ones are not
  * modified as often.
  *
  * @param \OpenCloud\Identity $conn - a connection object
  * @param string $serviceRegion - identifies the region of this Compute
  *      service
  * @param string $urltype - identifies the URL type ("publicURL",
  *      "privateURL")
  * @param string $serviceName - identifies the name of the service in the
  *      catalog
  */
 public function __construct(OpenStack $conn, $serviceType, $serviceName, $serviceRegion, $urltype)
 {
     $this->debug(Lang::translate('initializing Nova...'));
     parent::__construct($conn, $serviceType, $serviceName, $serviceRegion, $urltype);
     $this->_url = Lang::noslash(parent::Url());
 }