public class DXEnvironment extends Object implements AutoCloseable
Modifier and Type | Class and Description |
---|---|
static class |
DXEnvironment.Builder
Builder class for creating DXEnvironment objects.
|
static class |
DXEnvironment.ProxyDesc |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static DXEnvironment |
create()
Creates a DXEnvironment from the default settings.
|
String |
getApiserverPath()
Returns the fully qualified API server address (including protocol, host, and port).
|
int |
getConnectionTimeout()
Returns connection read timeout for http client
|
DXJob |
getJob()
Returns a handler to the currently running job.
|
DXProject |
getProjectContext()
Returns the current project context.
|
DXEnvironment.ProxyDesc |
getProxy()
Returns the proxy
|
com.fasterxml.jackson.databind.JsonNode |
getSecurityContext()
Deprecated.
|
int |
getSocketTimeout()
Returns socket read timeout for http client
|
DXContainer |
getWorkspace()
Returns the temporary workspace of the currently running job, or the current project if this
method is called outside the Execution Environment.
|
boolean |
isRetryDisabled()
Returns whether the retry of HTTP requests should be disabled.
|
public static DXEnvironment create()
This is the same as Builder.fromDefaults().build()
.
public String getApiserverPath()
public DXJob getJob()
null
if the currently running job cannot be determinedpublic DXProject getProjectContext()
null
if the project context cannot be determined@Deprecated public com.fasterxml.jackson.databind.JsonNode getSecurityContext()
public DXContainer getWorkspace()
DXContainer
for the container, or null
if the container cannot be
determinedpublic boolean isRetryDisabled()
public int getSocketTimeout()
public DXEnvironment.ProxyDesc getProxy()
public int getConnectionTimeout()
public void close() throws IOException
close
in interface AutoCloseable
IOException
Copyright © 2023. All Rights Reserved.