Skip to content

Commit 216b470

Browse files
committed
OWLS-69919 Clean up after merge
1 parent d8a6248 commit 216b470

File tree

1 file changed

+37
-67
lines changed

1 file changed

+37
-67
lines changed

model/src/main/java/oracle/kubernetes/weblogic/domain/v2/DomainSpec.java

Lines changed: 37 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,19 @@ public class DomainSpec extends BaseConfiguration {
9898
@Expose
9999
private String logHome;
100100

101+
/**
102+
* Whether the log home is enabled.
103+
*
104+
* @since 2.0
105+
*/
106+
@SerializedName("logHomeEnabled")
107+
@Expose
108+
@Description(
109+
"Specified whether the log home folder is enabled (Not required). "
110+
+ "Defaults to true if domainHomeInImage is false. "
111+
+ "Defaults to false if domainHomeInImage is true. ")
112+
private Boolean logHomeEnabled; // Boolean object, null if unspecified
113+
101114
/** Whether to include the server .out file to the pod's stdout. Default is true. */
102115
@SerializedName("includeServerOutInPodLog")
103116
@Expose
@@ -223,29 +236,6 @@ public class DomainSpec extends BaseConfiguration {
223236
@Description("Configuration for the clusters")
224237
protected Map<String, Cluster> clusters = new HashMap<>();
225238

226-
/**
227-
* The log home.
228-
*
229-
* @since 2.0
230-
*/
231-
@SerializedName("logHome")
232-
@Expose
233-
@Description("The folder for the log files (Not required). Defaults to /shared/logs/domainUID. ")
234-
protected String logHome;
235-
236-
/**
237-
* Whether the log home is enabled.
238-
*
239-
* @since 2.0
240-
*/
241-
@SerializedName("logHomeEnabled")
242-
@Expose
243-
@Description(
244-
"Specified whether the log home folder is enabled (Not required). "
245-
+ "Defaults to true if domainHomeInImage is false. "
246-
+ "Defaults to false if domainHomeInImage is true. ")
247-
private Boolean logHomeEnabled; // Boolean object, null if unspecified
248-
249239
public AdminServer getOrCreateAdminServer(String adminServerName) {
250240
if (adminServer != null) return adminServer;
251241

@@ -345,49 +335,6 @@ public void setDomainHome(String domainHome) {
345335
this.domainHome = domainHome;
346336
}
347337

348-
/**
349-
* Log home
350-
*
351-
* @since 2.0
352-
* @return log home
353-
*/
354-
public String getLogHome() {
355-
return Optional.ofNullable(logHome).orElse(String.format(LOG_HOME_DEFAULT_PATTERN, domainUID));
356-
}
357-
358-
/**
359-
* Log home
360-
*
361-
* @since 2.0
362-
* @param logHome log home
363-
*/
364-
public void setLogHome(String logHome) {
365-
this.logHome = logHome;
366-
}
367-
368-
/**
369-
* Log home enabled
370-
*
371-
* @since 2.0
372-
* @return log home enabled
373-
*/
374-
public boolean getLogHomeEnabled() {
375-
if (logHomeEnabled == null) {
376-
return !isDomainHomeInImage();
377-
}
378-
return logHomeEnabled.booleanValue();
379-
}
380-
381-
/**
382-
* Log home enabled
383-
*
384-
* @since 2.0
385-
* @param logHomeEnabled log home enabled
386-
*/
387-
public void setLogHomeEnabled(boolean logHomeEnabled) {
388-
this.logHomeEnabled = new Boolean(logHomeEnabled);
389-
}
390-
391338
/*
392339
* Fluent api for setting the image.
393340
*
@@ -532,7 +479,7 @@ public void setImagePullSecrets(@Nullable List<V1LocalObjectReference> imagePull
532479
* server .out files in.
533480
*/
534481
public String getLogHome() {
535-
return logHome;
482+
return Optional.ofNullable(logHome).orElse(String.format(LOG_HOME_DEFAULT_PATTERN, domainUID));
536483
}
537484

538485
public void setLogHome(String logHome) {
@@ -544,6 +491,29 @@ public DomainSpec withLogHome(String logHome) {
544491
return this;
545492
}
546493

494+
/**
495+
* Log home enabled
496+
*
497+
* @since 2.0
498+
* @return log home enabled
499+
*/
500+
public boolean getLogHomeEnabled() {
501+
if (logHomeEnabled == null) {
502+
return !isDomainHomeInImage();
503+
}
504+
return logHomeEnabled.booleanValue();
505+
}
506+
507+
/**
508+
* Log home enabled
509+
*
510+
* @since 2.0
511+
* @param logHomeEnabled log home enabled
512+
*/
513+
public void setLogHomeEnabled(boolean logHomeEnabled) {
514+
this.logHomeEnabled = new Boolean(logHomeEnabled);
515+
}
516+
547517
/**
548518
* Whether to include server .out to the pod's stdout
549519
*

0 commit comments

Comments
 (0)