Class ECtransContainer
java.lang.Object
ecmwf.common.ectrans.ECtransContainer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
The Class TransferURL. -
Constructor Summary
ConstructorsConstructorDescriptionECtransContainer
(ECtransProvider defaultProvider) Instantiates a new ectrans container.ECtransContainer
(ECtransProvider defaultProvider, boolean cookieEnabled) Instantiates a new ectrans container. -
Method Summary
Modifier and TypeMethodDescriptionvoid
asyncExec
(ecmwf.common.ectrans.ECtransAction action, String cookie, String ecuser, String remote, String location) Async exec.void
asyncExec
(ecmwf.common.ectrans.ECtransAction action, String cookie, String ecuser, String remote, String location, ECtransCallback callback) Async exec.void
asyncExec
(ecmwf.common.ectrans.ECtransAction action, String cookie, String ecuser, String remote, String location, Options connectOptions, ECtransCallback callback) Async exec.void
asyncExec
(RemoteProvider provider, ECUser ecuser, MSUser msuser, ECtransDestination destination, ecmwf.common.ectrans.ECtransAction action, String cookie, String location) Async exec.void
asyncExec
(RemoteProvider provider, ECUser ecuser, MSUser msuser, ECtransDestination destination, ecmwf.common.ectrans.ECtransAction action, String cookie, String location, ECtransCallback callback) Async exec.void
close()
Close.void
close
(RemoteProvider provider) Close.boolean
close
(RemoteProvider provider, ECUser ecuser, MSUser msuser, ECtransDestination destination, String cookie, String location) Close.boolean
Close.boolean
Close.getAttribute
(String attributeName) Gets the attribute.Gets the MBean info.getTransferURL
(ECtransHistory history, String ecuser, String remote, String location, boolean hidePassword) Gets the transfer url.getTransferURL
(RemoteProvider provider, ECtransHistory history, String ecuser, String remote, String location, boolean hidePassword) Gets the transfer url.Invoke.boolean
setAttribute
(String name, Object value) Sets the attribute.void
syncExec
(ecmwf.common.ectrans.ECtransAction action, String cookie, String ecuser, String remote, String location, boolean interruptible) Sync exec.void
syncExec
(ecmwf.common.ectrans.ECtransAction action, String cookie, String ecuser, String remote, String location, ECtransCallback callback, boolean interruptible) Sync exec.void
syncExec
(RemoteProvider provider, ECUser ecuser, MSUser msuser, ECtransDestination destination, ecmwf.common.ectrans.ECtransAction action, String cookie, String location, boolean interruptible) Sync exec.void
syncExec
(RemoteProvider provider, ECUser ecuser, MSUser msuser, ECtransDestination destination, ecmwf.common.ectrans.ECtransAction action, String cookie, String location, ECtransCallback callback, boolean interruptible) Sync exec.
-
Constructor Details
-
ECtransContainer
Instantiates a new ectrans container.- Parameters:
defaultProvider
- the default provider
-
ECtransContainer
Instantiates a new ectrans container.- Parameters:
defaultProvider
- the default providercookieEnabled
- the cookie enabled
-
-
Method Details
-
getAttribute
Gets the attribute. Gets the attribute.- Specified by:
getAttribute
in interfaceMBeanService
- Parameters:
attributeName
- the attribute name- Returns:
- the attribute
- Throws:
AttributeNotFoundException
- the attribute not found exceptionMBeanException
- the MBean exception
-
getMBeanInfo
Gets the MBean info. Gets the MBean info.- Specified by:
getMBeanInfo
in interfaceMBeanService
- Returns:
- the MBean info
-
invoke
public Object invoke(String operationName, Object[] params, String[] signature) throws NoSuchMethodException, MBeanException Invoke. Invoke.- Specified by:
invoke
in interfaceMBeanService
- Parameters:
operationName
- the operation nameparams
- the paramssignature
- the signature- Returns:
- the object
- Throws:
NoSuchMethodException
- the no such method exceptionMBeanException
- the MBean exception
-
setAttribute
public boolean setAttribute(String name, Object value) throws InvalidAttributeValueException, MBeanException Sets the attribute. Sets the attribute.- Specified by:
setAttribute
in interfaceMBeanService
- Parameters:
name
- the namevalue
- the value- Returns:
- true, if successful
- Throws:
InvalidAttributeValueException
- the invalid attribute value exceptionMBeanException
- the MBean exception
-
syncExec
public void syncExec(ecmwf.common.ectrans.ECtransAction action, String cookie, String ecuser, String remote, String location, boolean interruptible) throws ECtransException, IOException Sync exec.- Parameters:
action
- the actioncookie
- the cookieecuser
- the ecuserremote
- the remotelocation
- the locationinterruptible
- the interruptible- Throws:
ECtransException
- the ectrans exceptionIOException
- Signals that an I/O exception has occurred.
-
syncExec
public void syncExec(ecmwf.common.ectrans.ECtransAction action, String cookie, String ecuser, String remote, String location, ECtransCallback callback, boolean interruptible) throws ECtransException, IOException Sync exec.- Parameters:
action
- the actioncookie
- the cookieecuser
- the ecuserremote
- the remotelocation
- the locationcallback
- the callbackinterruptible
- the interruptible- Throws:
ECtransException
- the ectrans exceptionIOException
- Signals that an I/O exception has occurred.
-
syncExec
public void syncExec(RemoteProvider provider, ECUser ecuser, MSUser msuser, ECtransDestination destination, ecmwf.common.ectrans.ECtransAction action, String cookie, String location, boolean interruptible) throws ECtransException, IOException Sync exec.- Parameters:
provider
- the providerecuser
- the ecusermsuser
- the msuserdestination
- the destinationaction
- the actioncookie
- the cookielocation
- the locationinterruptible
- the interruptible- Throws:
ECtransException
- the ectrans exceptionIOException
- Signals that an I/O exception has occurred.
-
syncExec
public void syncExec(RemoteProvider provider, ECUser ecuser, MSUser msuser, ECtransDestination destination, ecmwf.common.ectrans.ECtransAction action, String cookie, String location, ECtransCallback callback, boolean interruptible) throws ECtransException, IOException Sync exec.- Parameters:
provider
- the providerecuser
- the ecusermsuser
- the msuserdestination
- the destinationaction
- the actioncookie
- the cookielocation
- the locationcallback
- the callbackinterruptible
- the interruptible- Throws:
ECtransException
- the ectrans exceptionIOException
- Signals that an I/O exception has occurred.
-
asyncExec
public void asyncExec(ecmwf.common.ectrans.ECtransAction action, String cookie, String ecuser, String remote, String location) throws ECtransException Async exec.- Parameters:
action
- the actioncookie
- the cookieecuser
- the ecuserremote
- the remotelocation
- the location- Throws:
ECtransException
- the ectrans exception
-
asyncExec
public void asyncExec(ecmwf.common.ectrans.ECtransAction action, String cookie, String ecuser, String remote, String location, Options connectOptions, ECtransCallback callback) throws ECtransException Async exec.- Parameters:
action
- the actioncookie
- the cookieecuser
- the ecuserremote
- the remotelocation
- the locationconnectOptions
- the connect optionscallback
- the callback- Throws:
ECtransException
- the ectrans exception
-
asyncExec
public void asyncExec(ecmwf.common.ectrans.ECtransAction action, String cookie, String ecuser, String remote, String location, ECtransCallback callback) throws ECtransException Async exec.- Parameters:
action
- the actioncookie
- the cookieecuser
- the ecuserremote
- the remotelocation
- the locationcallback
- the callback- Throws:
ECtransException
- the ectrans exception
-
asyncExec
public void asyncExec(RemoteProvider provider, ECUser ecuser, MSUser msuser, ECtransDestination destination, ecmwf.common.ectrans.ECtransAction action, String cookie, String location) throws ECtransException Async exec.- Parameters:
provider
- the providerecuser
- the ecusermsuser
- the msuserdestination
- the destinationaction
- the actioncookie
- the cookielocation
- the location- Throws:
ECtransException
- the ectrans exception
-
asyncExec
public void asyncExec(RemoteProvider provider, ECUser ecuser, MSUser msuser, ECtransDestination destination, ecmwf.common.ectrans.ECtransAction action, String cookie, String location, ECtransCallback callback) throws ECtransException Async exec.- Parameters:
provider
- the providerecuser
- the ecusermsuser
- the msuserdestination
- the destinationaction
- the actioncookie
- the cookielocation
- the locationcallback
- the callback- Throws:
ECtransException
- the ectrans exception
-
getTransferURL
public ECtransContainer.TransferURL getTransferURL(ECtransHistory history, String ecuser, String remote, String location, boolean hidePassword) throws ECtransException Gets the transfer url.- Parameters:
history
- the historyecuser
- the ecuserremote
- the remotelocation
- the locationhidePassword
- the hide password- Returns:
- the transfer url
- Throws:
ECtransException
- the ectrans exception
-
getTransferURL
public ECtransContainer.TransferURL getTransferURL(RemoteProvider provider, ECtransHistory history, String ecuser, String remote, String location, boolean hidePassword) throws ECtransException Gets the transfer url.- Parameters:
provider
- the providerhistory
- the historyecuser
- the ecuserremote
- the remotelocation
- the locationhidePassword
- the hide password- Returns:
- the transfer url
- Throws:
ECtransException
- the ectrans exception
-
close
public boolean close(String cookie, String ecuser, String remote, String location) throws IOException Close.- Parameters:
cookie
- the cookieecuser
- the ecuserremote
- the remotelocation
- the location- Returns:
- true, if successful
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
close
public boolean close(RemoteProvider provider, String cookie, String ecuser, String remote, String location) throws IOException Close.- Parameters:
provider
- the providercookie
- the cookieecuser
- the ecuserremote
- the remotelocation
- the location- Returns:
- true, if successful
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
close
public boolean close(RemoteProvider provider, ECUser ecuser, MSUser msuser, ECtransDestination destination, String cookie, String location) throws IOException Close.- Parameters:
provider
- the providerecuser
- the ecusermsuser
- the msuserdestination
- the destinationcookie
- the cookielocation
- the location- Returns:
- true, if successful
- Throws:
IOException
- Signals that an I/O exception has occurred.
-
close
Close.- Throws:
IOException
- Signals that an I/O exception has occurred.
-
close
Close.- Parameters:
provider
- the provider- Throws:
IOException
- Signals that an I/O exception has occurred.
-