|
ensembl-hive
2.7.0
|
Public Member Functions | |
| public Scalar | do_GET () |
| public Scalar | do_FTP () |
| public Boolean | do_FTP_to_file () |
| protected | _retry_sleep () |
| protected | _get_http_tiny () |
| protected | _get_lwp () |
| protected | _get_lwp_to_file () |
A collection of subroutines aimed to helping network based operations. The code will use HTTP::Tiny for all HTTP operations if available. Otherwise it will delegate to LWP. LWP is currently the only supported target for FTP.
| protected Bio::EnsEMBL::Utils::Net::_get_http_tiny | ( | ) |
Undocumented method
Code:
| protected Bio::EnsEMBL::Utils::Net::_get_lwp | ( | ) |
Undocumented method
Code:
| protected Bio::EnsEMBL::Utils::Net::_get_lwp_to_file | ( | ) |
Undocumented method
Code:
| protected Bio::EnsEMBL::Utils::Net::_retry_sleep | ( | ) |
Undocumented method
Code:
| public Scalar Bio::EnsEMBL::Utils::Net::do_FTP | ( | ) |
Arg [1] : string $uri Arg [2] : int; $total_attempts The number of times to try the URI before throwing an exception Arg [3] : number; $sleep Amount of time to sleep between attempts. Delegates onto Time::HiRes so floating point numbers are supported Description : Performs a FTP fetch using a non-authenticated connection ( however some servers will allow you to encode this in the URI). Returntype : Scalar of the contents of the remote URL. Do not use to retrieve very large amounts of data. Example :
Exceptions : If we could not retrieve the resource after the specified
number of attempts.
Status : Stable
Code:
| public Boolean Bio::EnsEMBL::Utils::Net::do_FTP_to_file | ( | ) |
Arg [1] : string $uri Arg [2] : int; $total_attempts The number of times to try the URI before throwing an exception Arg [3] : number; $sleep Amount of time to sleep between attempts. Delegates onto Time::HiRes so floating point numbers are supported Description : Performs a FTP fetch using a non-authenticated connection ( however some servers will allow you to encode this in the URI). Returntype : Boolean true if download was successful. Example :
Exceptions : If we could not retrieve the resource after the specified
number of attempts.
Status : Stable
Code:
| public Scalar Bio::EnsEMBL::Utils::Net::do_GET | ( | ) |
Arg [1] : string $url The URL to fetch including all parameters
Arg [2] : int; $total_attempts The number of times to try the URL
before throwing an exception
Arg [3] : number; $sleep Amount of time to sleep between attempts.
Delegates onto Time::HiRes so floating point numbers are
supported
Description : Performs a HTTP GET method call to return the specified remote
resource.
Returntype : Scalar of the contents of the remote URL. Do not use to
retrieve very large amounts of data.
Example : Exceptions : If we could not retrieve the resource after the specified
number of attempts.
Status : Stable
Code: