Package gavo :: Package votable :: Module tapquery :: Class ADQLSyncJob
[frames] | no frames]

Class ADQLSyncJob

source code

   object --+    
            |    
_WithEndpoint --+
                |
               ADQLSyncJob

A facade for a synchronous TAP Job.

This really is just a very glorified urllib.urlopen. Maybe some superficial parallels to ADQLTAPJob are useful.

You can construct it, add uploads, and then start or run the thing. Methods that make no sense at all for sync jobs ("phase") silently return some more or less sensible fakes.

Instance Methods
 
__init__(self, endpointURL, query=None, jobId=None, lang='ADQL', userParams={}, timeout=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
postToService(self, params) source code
 
delete(self, usePOST=None) source code
 
abort(self)
does nothing.
source code
 
raiseIfError(self) source code
 
waitForPhases(self, phases, pollInterval=None, increment=None, giveUpAfter=None) source code
 
start(self) source code
 
run(self, pollInterval=None) source code
 
openResult(self, simple=True) source code
 
setParameter(self, key, value) source code
 
getErrorFromServer(self) source code
 
addUpload(self, name, data) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
  info
  phase
  quote
  owner
  parameters
  allResults

Inherited from object: __class__

Method Details

__init__(self, endpointURL, query=None, jobId=None, lang='ADQL', userParams={}, timeout=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

abort(self)

source code 

does nothing.

You could argue that this could come from a different thread and we could try to interrupt the ongoing request. Well, if you want it, try it yourself or ask the author.


Property Details

info

Get Method:
unreachable.info(self)

phase

Get Method:
unreachable.phase(self)

quote

Get Method:
unreachable.quote(self)

owner

Get Method:
unreachable.owner(self)

parameters

Get Method:
unreachable.parameters(self)

allResults

Get Method:
unreachable.allResults(self)