Author: fapeeler
Date: Mon Jun  7 20:01:49 2010
New Revision: 952393

URL: http://svn.apache.org/viewvc?rev=952393&view=rev
Log:
VCL-163

pulling throttle variable from database


Modified:
    incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT.pm
    incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT2.pm
    incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT21.pm

Modified: incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT.pm
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT.pm?rev=952393&r1=952392&r2=952393&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT.pm 
(original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT.pm Mon 
Jun  7 20:01:49 2010
@@ -259,6 +259,19 @@ sub load {
        my $wait_loops        = 0;
        my @status;
 
+       #get Throttle value from database if set
+       my $variable_name = $self->data->get_management_node_hostname() . 
"|xcat|throttle";
+       if($self->data->is_variable_set($variable_name)){
+               notify($ERRORS{'DEBUG'}, 0, "throttle is  set for 
$variable_name");
+       
+       }
+       else{
+               notify($ERRORS{'DEBUG'}, 0, "throttle is not set for 
$variable_name");
+               $THROTTLE = 0;
+       }
+       
+       
+
        # Check to see if management node throttle is configured
        if ($THROTTLE) {
                notify($ERRORS{'DEBUG'}, 0, "throttle is set to $THROTTLE");

Modified: 
incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT2.pm
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT2.pm?rev=952393&r1=952392&r2=952393&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT2.pm 
(original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT2.pm Mon 
Jun  7 20:01:49 2010
@@ -243,6 +243,17 @@ sub load {
        my @status;
 
        # Check to see if management node throttle is configured
+        #get Throttle value from database if set
+        my $variable_name = $self->data->get_management_node_hostname() . 
"|xcat|throttle";
+        if($self->data->is_variable_set($variable_name)){
+                notify($ERRORS{'DEBUG'}, 0, "throttle is  set for 
$variable_name");
+        
+        }
+        else{
+                notify($ERRORS{'DEBUG'}, 0, "throttle is not set for 
$variable_name");
+                $THROTTLE = 0;
+        }
+
        if ($THROTTLE) {
                notify($ERRORS{'DEBUG'}, 0, "throttle is set to $THROTTLE");
                my $lckloadfile = "/tmp/nodeloading.lockfile";

Modified: 
incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT21.pm
URL: 
http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT21.pm?rev=952393&r1=952392&r2=952393&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT21.pm 
(original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT21.pm 
Mon Jun  7 20:01:49 2010
@@ -251,6 +251,17 @@ sub load {
        my @status;
 
        # Check to see if management node throttle is configured
+        #get Throttle value from database if set
+        my $variable_name = $self->data->get_management_node_hostname() . 
"|xcat|throttle";
+        if($self->data->is_variable_set($variable_name)){
+                notify($ERRORS{'DEBUG'}, 0, "throttle is  set for 
$variable_name");
+        
+        }
+        else{
+                notify($ERRORS{'DEBUG'}, 0, "throttle is not set for 
$variable_name");
+                $THROTTLE = 0;
+        }
+
        if ($THROTTLE) {
                notify($ERRORS{'DEBUG'}, 0, "throttle is set to $THROTTLE");
                my $lckloadfile = "/tmp/nodeloading.lockfile";


Reply via email to