Class Session
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Session.Builder,Session>
The period in which a remote Spark runtime environment is running.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Session.Builderbuilder()final SessionCommandcommand()The command object.See SessionCommand.final InstantThe date and time that this session is completed.final ConnectionsListThe number of connections used for the session.final InstantThe time and date when the session was created.A map array of key-value pairs.final StringThe description of the session.final DoubleThe DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final StringThe error message displayed during the session.final DoubleThe total time the session ran for.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final StringThe Glue version determines the versions of Apache Spark and Python that Glue supports.final booleanFor responses, this returns true if the service returned a value for the DefaultArguments property.final inthashCode()final Stringid()The ID of the session.final IntegerThe number of minutes when idle before the session times out.final DoubleThe number of Glue data processing units (DPUs) that can be allocated when the job runs.final IntegerThe number of workers of a definedWorkerTypeto use for the session.final StringThe name of an Glue usage profile associated with the session.final Doubleprogress()The code execution progress of the session.final Stringrole()The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.final StringThe name of the SecurityConfiguration structure to be used with the session.static Class<? extends Session.Builder> final SessionStatusstatus()The session status.final StringThe session status.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final WorkerTypeThe type of predefined worker that is allocated when a session runs.final StringThe type of predefined worker that is allocated when a session runs.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
id
-
createdOn
The time and date when the session was created.
- Returns:
- The time and date when the session was created.
-
status
The session status.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnSessionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The session status.
- See Also:
-
statusAsString
The session status.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnSessionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The session status.
- See Also:
-
errorMessage
The error message displayed during the session.
- Returns:
- The error message displayed during the session.
-
description
The description of the session.
- Returns:
- The description of the session.
-
role
The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
- Returns:
- The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.
-
command
The command object.See SessionCommand.
- Returns:
- The command object.See SessionCommand.
-
hasDefaultArguments
public final boolean hasDefaultArguments()For responses, this returns true if the service returned a value for the DefaultArguments property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified. -
defaultArguments
A map array of key-value pairs. Max is 75 pairs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasDefaultArguments()method.- Returns:
- A map array of key-value pairs. Max is 75 pairs.
-
connections
The number of connections used for the session.
- Returns:
- The number of connections used for the session.
-
progress
The code execution progress of the session.
- Returns:
- The code execution progress of the session.
-
maxCapacity
The number of Glue data processing units (DPUs) that can be allocated when the job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB memory.
- Returns:
- The number of Glue data processing units (DPUs) that can be allocated when the job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB memory.
-
securityConfiguration
The name of the SecurityConfiguration structure to be used with the session.
- Returns:
- The name of the SecurityConfiguration structure to be used with the session.
-
glueVersion
The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be greater than 2.0.
- Returns:
- The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be greater than 2.0.
-
numberOfWorkers
The number of workers of a defined
WorkerTypeto use for the session.- Returns:
- The number of workers of a defined
WorkerTypeto use for the session.
-
workerType
The type of predefined worker that is allocated when a session runs. Accepts a value of
G.1X,G.2X,G.4X, orG.8Xfor Spark sessions. Accepts the valueZ.2Xfor Ray sessions.If the service returns an enum value that is not available in the current SDK version,
workerTypewill returnWorkerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromworkerTypeAsString().- Returns:
- The type of predefined worker that is allocated when a session runs. Accepts a value of
G.1X,G.2X,G.4X, orG.8Xfor Spark sessions. Accepts the valueZ.2Xfor Ray sessions. - See Also:
-
workerTypeAsString
The type of predefined worker that is allocated when a session runs. Accepts a value of
G.1X,G.2X,G.4X, orG.8Xfor Spark sessions. Accepts the valueZ.2Xfor Ray sessions.If the service returns an enum value that is not available in the current SDK version,
workerTypewill returnWorkerType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromworkerTypeAsString().- Returns:
- The type of predefined worker that is allocated when a session runs. Accepts a value of
G.1X,G.2X,G.4X, orG.8Xfor Spark sessions. Accepts the valueZ.2Xfor Ray sessions. - See Also:
-
completedOn
The date and time that this session is completed.
- Returns:
- The date and time that this session is completed.
-
executionTime
The total time the session ran for.
- Returns:
- The total time the session ran for.
-
dpuSeconds
The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).
- Returns:
- The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).
-
idleTimeout
The number of minutes when idle before the session times out.
- Returns:
- The number of minutes when idle before the session times out.
-
profileName
The name of an Glue usage profile associated with the session.
- Returns:
- The name of an Glue usage profile associated with the session.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Session.Builder,Session> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-