libtbx.server.FileClient
index
/net/chevy/raid1/rwgk/dist/cctbx_project/libtbx/server/FileClient.py

 
Modules
       
libtbx.server.SocketServer
cPickle
os
pickle
socket
sys

 
Classes
       
FileClient

 
class FileClient
     Methods defined here:
FileExists(self, *arg, **kw)
GetHost(self, *arg, **kw)
GetPort(self, *arg, **kw)
GetServerDetails(self, *arg, **kw)
LockFile(self, *arg, **kw)
ReadFile(self, *arg, **kw)
ReadPickleFile(self, *arg, **kw)
UnlockFile(self, *arg, **kw)
WriteFile(self, *arg, **kw)
WritePickleFile(self, *arg, **kw)
__init__(self, host='', port=8000)
__repr__(self)
getpid(self, *arg, **kw)
shutdown(self)
tester(self, *arg, **kw)

 
Functions
       
LockReadPickleProcessWritePickleUnlock(client, file, id, func)
Same as above except a pickled obj is used.
LockReadProcessWriteUnlock(client, file, id, func)
This method will lock a file, read the contents and pass it to
the user defined function.  This function should return the
return item and the new contents of the file.  The contents is
writing and the file unlocked.