Modifier and Type | Field and Description |
---|---|
private Adaptor[] |
adaptors |
private Credentials |
defaultCredentials |
private Properties |
defaultProperties |
private boolean |
ended |
private FilesEngine |
filesEngine |
private JobsEngine |
jobsEngine |
private static org.slf4j.Logger |
logger |
private static Vector<OctopusEngine> |
octopusEngines |
Modifier | Constructor and Description |
---|---|
private |
OctopusEngine(Properties properties,
Credentials credentials)
Constructs a OctopusEngine instance.
|
Modifier and Type | Method and Description |
---|---|
void |
end() |
static void |
endEngines() |
Files |
files()
Get a reference to the Files package interface.
|
Adaptor |
getAdaptor(String name) |
Adaptor |
getAdaptorFor(String scheme)
Return the adaptor that provides functionality for the given scheme.
|
AdaptorInfo |
getAdaptorInfo(String adaptorName) |
AdaptorInfo[] |
getAdaptorInfos() |
Credentials |
getCombinedCredentials(Credentials credentials) |
ImmutableTypedProperties |
getCombinedProperties(Properties properties) |
Credentials |
getDefaultCredentials() |
Properties |
getDefaultProperties() |
Jobs |
jobs()
Get a reference to the Jobs package
|
static Octopus |
newEngine(Properties properties,
Credentials credentials) |
void |
setDefaultCredentials(Credentials credentials) |
void |
setDefaultProperties(Properties properties) |
private static final org.slf4j.Logger logger
private static final Vector<OctopusEngine> octopusEngines
private boolean ended
private Credentials defaultCredentials
private Properties defaultProperties
private final FilesEngine filesEngine
private final JobsEngine jobsEngine
private final Adaptor[] adaptors
private OctopusEngine(Properties properties, Credentials credentials) throws OctopusException
credentials
- the credentials to use. Will NOT be copied.properties
- the properties to use. Will NOT be copied.OctopusException
public static Octopus newEngine(Properties properties, Credentials credentials) throws OctopusException
OctopusException
public static void endEngines()
public ImmutableTypedProperties getCombinedProperties(Properties properties)
public Credentials getCombinedCredentials(Credentials credentials)
public AdaptorInfo[] getAdaptorInfos()
getAdaptorInfos
in interface Octopus
public AdaptorInfo getAdaptorInfo(String adaptorName) throws OctopusException
getAdaptorInfo
in interface Octopus
OctopusException
public Adaptor getAdaptorFor(String scheme) throws OctopusException
scheme
- the scheme for which to get the adaptorOctopusException
public Adaptor getAdaptor(String name) throws OctopusException
OctopusException
public Credentials getDefaultCredentials()
getDefaultCredentials
in interface Octopus
public void setDefaultCredentials(Credentials credentials)
setDefaultCredentials
in interface Octopus
public Properties getDefaultProperties()
getDefaultProperties
in interface Octopus
public void setDefaultProperties(Properties properties)
setDefaultProperties
in interface Octopus
public Files files()
Octopus
public Jobs jobs()
Octopus