Infoblox::Grid::ServiceRestart - a Grid Service Restart setting object.
The Grid Service Restart setting object provides information about service restart configurations.
my $service_restart = Infoblox::Grid::ServiceRestart->new( delay => $uint, # Optional / Default is 10 restart_offline => 'true' | 'false', # Optional / Default is 'true' timeout => $int, # Optional / Default is 60
The object does not support any session methods.
The following functions are available to apply to a Grid Service Restart object.
Use this method to set or retrive Grid DNS service restart settings. See Infoblox::Grid::DNS->restart_setting() for parameters and return values.
#Get restart_setting my $restart_setting = $grid_dns->restart_setting(); #Modify the retry time $grid_dns->restart_setting($restart_setting);
Use this method to set or retrive Grid DHCP service restart settings. See Infoblox::Grid::DHCP->restart_setting() for parameters and return values.
#Get restart_setting my $restart_setting = $grid_dns->restart_setting(); #Modify the retry time $grid_dns->restart_setting($restart_setting);
Use this method to set or retrieve restart delay in seconds between Grid Service Groups.
Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.
The valid value is an unsigned integer. The default value is 10.
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get delay my $delay = $svcrst->delay(); #Modify delay $svcrsts->delay(50);
Use this method to enable or disable the restart of offline Grid Members.
Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.
Specify 'true' to enable the restart of offline Grid Services or 'false' to disable it. The default value is 'true'.
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get restart_offline my $restart_offline = $svcrst->restart_offline(); #Modify restart_offline $svcrsts->restart_offline('false');
Use this method to set or retrieve timeout interval in seconds for Grid Service Groups restart.
Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.
The valid value is an integer greater or equal to -1 (where -1 means infinite). The default value is 10.
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get timeout my $timeout = $svcrst->timeout(); #Modify timeout $svcrst->timeout(50);
Infoblox Inc. http://www.infoblox.com/
Infoblox::Grid::DNS, Infoblox::Grid::DNS->restart_setting(), Infoblox::Grid::DHCP, Infoblox::Grid::DHCP->restart_setting()
Copyright (c) 2017 Infoblox Inc.