|
@@ -3311,10 +3311,19 @@ class HMCDBAccessor {
|
|
}
|
|
}
|
|
|
|
|
|
public function cleanupCluster ($clusterName) {
|
|
public function cleanupCluster ($clusterName) {
|
|
- $this->deleteAllInTable("Clusters");
|
|
|
|
|
|
+// $this->deleteAllInTable("Clusters");
|
|
$this->deleteClusterTable($clusterName, "ServiceComponentInfo");
|
|
$this->deleteClusterTable($clusterName, "ServiceComponentInfo");
|
|
$this->cleanupHosts($clusterName);
|
|
$this->cleanupHosts($clusterName);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function wipeOutClusters () {
|
|
|
|
+ $this->deleteAllInTable("Clusters");
|
|
|
|
+ $this->deleteAllInTable("ServiceComponentInfo");
|
|
|
|
+ $this->deleteAllInTable("Hosts");
|
|
|
|
+ $this->deleteAllInTable("HostRoles");
|
|
|
|
+ $this->deleteAllInTable("ServiceConfig");
|
|
|
|
+ $this->deleteAllInTable("ServiceInfo");
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
?>
|
|
?>
|