コード例 #1
0
ファイル: manager.py プロジェクト: xgoeforever/trove
 def restart_cluster(self, context, cluster_id):
     cluster_tasks = models.load_cluster_tasks(context, cluster_id)
     cluster_tasks.restart_cluster(context, cluster_id)
コード例 #2
0
ファイル: manager.py プロジェクト: xgoeforever/trove
 def grow_cluster(self, context, cluster_id, new_instance_ids):
     cluster_tasks = models.load_cluster_tasks(context, cluster_id)
     cluster_tasks.grow_cluster(context, cluster_id, new_instance_ids)
コード例 #3
0
ファイル: manager.py プロジェクト: xgoeforever/trove
 def shrink_cluster(self, context, cluster_id, instance_ids):
     cluster_tasks = models.load_cluster_tasks(context, cluster_id)
     cluster_tasks.shrink_cluster(context, cluster_id, instance_ids)
コード例 #4
0
ファイル: manager.py プロジェクト: rumale/trove
 def delete_cluster(self, context, cluster_id):
     cluster_tasks = models.load_cluster_tasks(context, cluster_id)
     cluster_tasks.delete_cluster(context, cluster_id)
コード例 #5
0
ファイル: manager.py プロジェクト: xgoeforever/trove
 def create_cluster(self, context, cluster_id):
     with EndNotification(context, cluster_id=cluster_id):
         cluster_tasks = models.load_cluster_tasks(context, cluster_id)
         cluster_tasks.create_cluster(context, cluster_id)
コード例 #6
0
ファイル: manager.py プロジェクト: Tesora/tesora-trove
 def upgrade_cluster(self, context, cluster_id, datastore_version_id):
     datastore_version = DatastoreVersion.load_by_uuid(datastore_version_id)
     cluster_tasks = models.load_cluster_tasks(context, cluster_id)
     cluster_tasks.upgrade_cluster(context, cluster_id, datastore_version)
コード例 #7
0
ファイル: manager.py プロジェクト: rumale/trove
 def create_cluster(self, context, cluster_id):
     cluster_tasks = models.load_cluster_tasks(context, cluster_id)
     cluster_tasks.create_cluster(context, cluster_id)
コード例 #8
0
ファイル: manager.py プロジェクト: grze/trove
 def delete_cluster(self, context, cluster_id):
     cluster_tasks = models.load_cluster_tasks(context, cluster_id)
     cluster_tasks.delete_cluster(context, cluster_id)
コード例 #9
0
ファイル: manager.py プロジェクト: nnt1997/trove
 def grow_cluster(self, context, cluster_id, new_instance_ids):
     with EndNotification(context, cluster_id=cluster_id,
                          instance_ids=new_instance_ids):
         cluster_tasks = models.load_cluster_tasks(context, cluster_id)
         cluster_tasks.grow_cluster(context, cluster_id, new_instance_ids)
コード例 #10
0
 def delete_cluster(self, context, cluster_id):
     with EndNotification(context):
         cluster_tasks = models.load_cluster_tasks(context, cluster_id)
         cluster_tasks.delete_cluster(context, cluster_id)
コード例 #11
0
ファイル: manager.py プロジェクト: grze/trove
 def create_cluster(self, context, cluster_id):
     cluster_tasks = models.load_cluster_tasks(context, cluster_id)
     cluster_tasks.create_cluster(context, cluster_id)
コード例 #12
0
 def shrink_cluster(self, context, cluster_id, instance_ids):
     cluster_tasks = models.load_cluster_tasks(context, cluster_id)
     cluster_tasks.shrink_cluster(context, cluster_id, instance_ids)
コード例 #13
0
 def grow_cluster(self, context, cluster_id, new_instance_ids):
     cluster_tasks = models.load_cluster_tasks(context, cluster_id)
     cluster_tasks.grow_cluster(context, cluster_id, new_instance_ids)
コード例 #14
0
 def create_cluster(self, context, cluster_id):
     with EndNotification(context, cluster_id=cluster_id):
         cluster_tasks = models.load_cluster_tasks(context, cluster_id)
         cluster_tasks.create_cluster(context, cluster_id)
コード例 #15
0
ファイル: manager.py プロジェクト: xgoeforever/trove
 def upgrade_cluster(self, context, cluster_id, datastore_version_id):
     datastore_version = DatastoreVersion.load_by_uuid(datastore_version_id)
     cluster_tasks = models.load_cluster_tasks(context, cluster_id)
     cluster_tasks.upgrade_cluster(context, cluster_id, datastore_version)
コード例 #16
0
ファイル: manager.py プロジェクト: nnt1997/trove
 def shrink_cluster(self, context, cluster_id, instance_ids):
     with EndNotification(context, cluster_id=cluster_id,
                          instance_ids=instance_ids):
         cluster_tasks = models.load_cluster_tasks(context, cluster_id)
         cluster_tasks.shrink_cluster(context, cluster_id, instance_ids)
コード例 #17
0
ファイル: manager.py プロジェクト: xgoeforever/trove
 def delete_cluster(self, context, cluster_id):
     with EndNotification(context):
         cluster_tasks = models.load_cluster_tasks(context, cluster_id)
         cluster_tasks.delete_cluster(context, cluster_id)
コード例 #18
0
ファイル: manager.py プロジェクト: Tesora/tesora-trove
 def restart_cluster(self, context, cluster_id):
     cluster_tasks = models.load_cluster_tasks(context, cluster_id)
     cluster_tasks.restart_cluster(context, cluster_id)