Infoblox::Grid::ServiceRestart - a Grid Service Restart setting object.


NAME

Infoblox::Grid::ServiceRestart - a Grid Service Restart setting object.


DESCRIPTION

The Grid Service Restart setting object provides information about service restart configurations.


CONSTRUCTOR

 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


SESSION METHODS

The object does not support any session methods.


MODULE METHODS

The following functions are available to apply to a Grid Service Restart object.

Infoblox::Grid::DNS->restart_setting( )

Use this method to set or retrive Grid DNS service restart settings. See Infoblox::Grid::DNS->restart_setting() for parameters and return values.

Example
 #Get restart_setting
 my $restart_setting = $grid_dns->restart_setting();
 #Modify the retry time
 $grid_dns->restart_setting($restart_setting);

Infoblox::Grid::DHCP->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.

Example
 #Get restart_setting
 my $restart_setting = $grid_dns->restart_setting();
 #Modify the retry time
 $grid_dns->restart_setting($restart_setting);


METHODS

delay( )

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.

Parameter

The valid value is an unsigned integer. The default value is 10.

Returns

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.

Example
 #Get delay
 my $delay = $svcrst->delay();
 #Modify delay
 $svcrsts->delay(50);

restart_offline( )

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.

Parameter

Specify 'true' to enable the restart of offline Grid Services or 'false' to disable it. The default value is 'true'.

Returns

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.

Example
 #Get restart_offline
 my $restart_offline = $svcrst->restart_offline();
 #Modify restart_offline
 $svcrsts->restart_offline('false');

timeout( )

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.

Parameter

The valid value is an integer greater or equal to -1 (where -1 means infinite). The default value is 10.

Returns

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.

Example
 #Get timeout
 my $timeout = $svcrst->timeout();
 #Modify timeout
 $svcrst->timeout(50);


AUTHOR

Infoblox Inc. http://www.infoblox.com/


SEE ALSO

Infoblox::Grid::DNS, Infoblox::Grid::DNS->restart_setting(), Infoblox::Grid::DHCP, Infoblox::Grid::DHCP->restart_setting()


COPYRIGHT

Copyright (c) 2017 Infoblox Inc.