Skip to content

Commit

Permalink
Modified for the max thread time setting
Browse files Browse the repository at this point in the history
  • Loading branch information
nchalageri committed Sep 17, 2020
1 parent 8afb546 commit 194e735
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions files/providers/wls_server/create.py.erb
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,13 @@ try:
set_attribute_value('Directory', default_file_store, use_default_value_when_empty)

#FCUBS improvement
print("Creating the OverloadProtection Bean CREATE!!!!")
cd('/Servers/'+name+'/OverloadProtection/'+name)
cmo.createServerFailureTrigger()
print("CREATED THE ServerFailureTrigger")
cd('/Servers/'+name+'/OverloadProtection/'+name+'/ServerFailureTrigger/'+name)
set_attribute_value('MaxStuckThreadTime', stuck_thread_max_time, use_default_value_when_empty)

if diag_image_directory:
cd('/Servers/'+name+'/ServerDiagnosticConfig/'+name)
set_attribute_value('ImageDir', diag_image_directory, use_default_value_when_empty)
Expand Down
6 changes: 6 additions & 0 deletions files/providers/wls_server/modify.py.erb
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,12 @@ try:
set_attribute_value('Directory', default_file_store, use_default_value_when_empty)

# Added for the FCUBS best practices
print("Creating the OverloadProtection Bean Inside Modify!!!!")
cd('/Servers/'+name+'/OverloadProtection/'+name)
cmo.createServerFailureTrigger()
cd('/Servers/'+name+'/OverloadProtection/'+name+'/ServerFailureTrigger/'+name)
set_attribute_value('MaxStuckThreadTime', stuck_thread_max_time, use_default_value_when_empty)

if diag_image_directory:
cd('/Servers/'+name+'/ServerDiagnosticConfig/'+name)
set_attribute_value('ImageDir', diag_image_directory, use_default_value_when_empty)
Expand Down

0 comments on commit 194e735

Please sign in to comment.