getTerminateProxiesOnCompletion
boolean session.getTerminateProxiesOnCompletion ( )
Description
Determine whether proxies are set to be terminated when the scrape ends.
Parameters
This method does not receive any parameters.
Return Values
Returns true if a proxy will be terminated; otherwise, it returns false.
Change Log
Version | Description |
---|---|
5.0 | Available for all editions. |
Examples
Check Termination Setting
// Log whether proxies are being terminated or not
if ( session.getTerminateProxiesOnCompletion() )
{
session.log( "Anonymous Proxies are set to be terminated with the scrape." );
}
else
{
session.log( "Anonymous Proxies are set to continue running after the scrape is finished." );
}
if ( session.getTerminateProxiesOnCompletion() )
{
session.log( "Anonymous Proxies are set to be terminated with the scrape." );
}
else
{
session.log( "Anonymous Proxies are set to continue running after the scrape is finished." );
}
See Also
- setTerminateProxiesOnCompletion() [session] - Sets whether or not proxies should terminate when the scrape has finished
scraper on 08/10/2010 at 11:23 am
- Printer-friendly version
- Login or register to post comments