Record Class ApplicationDeploymentService.DeploymentRecord
java.lang.Object
java.lang.Record
dev.getelements.elements.common.app.ApplicationDeploymentService.DeploymentRecord
- Record Components:
status- theApplicationDeploymentService.DeploymentStatusapplicationElementRecord- theApplicationElementService.ApplicationElementRecord, may be null if the deployment is notApplicationDeploymentService.DeploymentStatus.CLEANuris- the set of URIs exposed by the deploymentlogs- a set of very brief logs produced during deployment.errors- a set ofURIs served out of this deployment
- Enclosing interface:
ApplicationDeploymentService
public static record ApplicationDeploymentService.DeploymentRecord(Application application, ApplicationDeploymentService.DeploymentStatus status, ApplicationElementService.ApplicationElementRecord applicationElementRecord, Set<URI> uris, List<String> logs, List<Throwable> errors)
extends Record
Aggregates the deployment information for an
Application. This includes the
ApplicationElementService.ApplicationElementRecord as well as any URIs it exposes.-
Constructor Summary
ConstructorsConstructorDescriptionDeploymentRecord(Application application, ApplicationDeploymentService.DeploymentStatus status, ApplicationElementService.ApplicationElementRecord applicationElementRecord, Set<URI> uris, List<String> logs, List<Throwable> errors) Creates an instance of aDeploymentRecordrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationrecord component.Returns the value of theapplicationElementRecordrecord component.final booleanIndicates whether some other object is "equal to" this one.errors()Returns the value of theerrorsrecord component.fail(Application application, List<String> logs, Throwable error) Creates aApplicationDeploymentService.DeploymentRecordindicating an unsuccessful deployment.Creates aApplicationDeploymentService.DeploymentRecordindicating an unsuccessful deployment.final inthashCode()Returns a hash code value for this object.logs()Returns the value of thelogsrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.uris()Returns the value of theurisrecord component.
-
Constructor Details
-
DeploymentRecord
public DeploymentRecord(Application application, ApplicationDeploymentService.DeploymentStatus status, ApplicationElementService.ApplicationElementRecord applicationElementRecord, Set<URI> uris, List<String> logs, List<Throwable> errors) Creates an instance of aDeploymentRecordrecord class.- Parameters:
application- the value for theapplicationrecord componentstatus- the value for thestatusrecord componentapplicationElementRecord- the value for theapplicationElementRecordrecord componenturis- the value for theurisrecord componentlogs- the value for thelogsrecord componenterrors- the value for theerrorsrecord component
-
-
Method Details
-
fail
public static ApplicationDeploymentService.DeploymentRecord fail(Application application, List<String> logs, Throwable error) Creates aApplicationDeploymentService.DeploymentRecordindicating an unsuccessful deployment.- Parameters:
logs- the logs produced during deploymenterror- the error produced during deployment- Returns:
- a
ApplicationDeploymentService.DeploymentRecord
-
fail
public static ApplicationDeploymentService.DeploymentRecord fail(Application application, List<String> logs, List<Throwable> causes) Creates aApplicationDeploymentService.DeploymentRecordindicating an unsuccessful deployment.- Parameters:
logs- the logs produced during deploymentcauses- the errors produced during deployment- Returns:
- a
ApplicationDeploymentService.DeploymentRecord
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
application
Returns the value of theapplicationrecord component.- Returns:
- the value of the
applicationrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
applicationElementRecord
Returns the value of theapplicationElementRecordrecord component.- Returns:
- the value of the
applicationElementRecordrecord component
-
uris
Returns the value of theurisrecord component.- Returns:
- the value of the
urisrecord component
-
logs
Returns the value of thelogsrecord component.- Returns:
- the value of the
logsrecord component
-
errors
Returns the value of theerrorsrecord component.- Returns:
- the value of the
errorsrecord component
-