#include <VDirSurrogate.H>
Inheritance diagram for VDirSurrogate:
Public Member Functions | |
Text | host () throw () |
Text | port () throw () |
VDirSurrogate (time_t timestamp, ShortId sid, const Text host_="", const Text port_="", int executable=-1, Basics::uint64 size=(Basics::uint64)-1) throw (SRPC::failure) | |
void | resync (AccessControl::Identity who=NULL) throw (SRPC::failure) |
VestaSource::errorCode | read (void *buffer, int *nbytes, Basics::uint64 offset, AccessControl::Identity who=NULL) throw (SRPC::failure) |
VestaSource::errorCode | readWhole (std::ostream &out, AccessControl::Identity who=NULL) throw (SRPC::failure) |
time_t | timestamp () throw (SRPC::failure) |
bool | executable () throw (SRPC::failure) |
Basics::uint64 | size () throw (SRPC::failure) |
ShortId | shortId () throw (SRPC::failure) |
VestaSource::errorCode | lookup (Arc arc, VestaSource *&result, AccessControl::Identity who=NULL, unsigned int indexOffset=0) throw (SRPC::failure) |
VestaSource::errorCode | lookupIndex (unsigned int index, VestaSource *&result, char *arcbuf=NULL) throw (SRPC::failure) |
VestaSource::errorCode | lookupPathname (const char *pathname, VestaSource *&result, AccessControl::Identity who=NULL, char pathnameSep=PathnameSep) throw (SRPC::failure) |
VestaSource::errorCode | getBase (VestaSource *&result, AccessControl::Identity who=NULL) throw (SRPC::failure) |
VestaSource::errorCode | list (unsigned int firstIndex, VestaSource::listCallback callback, void *closure, AccessControl::Identity who=NULL, bool deltaOnly=false, unsigned int indexOffset=0) |
VestaSource::errorCode | write (const void *buffer, int *nbytes, Basics::uint64 offset, AccessControl::Identity who=NULL) throw (SRPC::failure) |
VestaSource::errorCode | setExecutable (bool x, AccessControl::Identity who=NULL) throw (SRPC::failure) |
VestaSource::errorCode | setSize (Basics::uint64 s, AccessControl::Identity who=NULL) throw (SRPC::failure) |
VestaSource::errorCode | setTimestamp (time_t ts, AccessControl::Identity who=NULL) throw (SRPC::failure) |
VestaSource::errorCode | reallyDelete (Arc arc, AccessControl::Identity who=NULL, bool existCheck=true, time_t timestamp=0) throw (SRPC::failure) |
VestaSource::errorCode | insertFile (Arc arc, ShortId sid, bool master, AccessControl::Identity who=NULL, VestaSource::dupeCheck chk=VestaSource::dontReplace, VestaSource **newvs=NULL, time_t timestamp=0, FP::Tag *fptag=NULL) throw (SRPC::failure) |
VestaSource::errorCode | insertMutableFile (Arc arc, ShortId sid, bool master, AccessControl::Identity who=NULL, VestaSource::dupeCheck chk=VestaSource::dontReplace, VestaSource **newvs=NULL, time_t timestamp=0) throw (SRPC::failure) |
VestaSource::errorCode | insertImmutableDirectory (Arc arc, VestaSource *dir, bool master, AccessControl::Identity who=NULL, VestaSource::dupeCheck chk=VestaSource::dontReplace, VestaSource **newvs=NULL, time_t timestamp=0, FP::Tag *fptag=NULL) throw (SRPC::failure) |
VestaSource::errorCode | insertAppendableDirectory (Arc arc, bool master, AccessControl::Identity who=NULL, VestaSource::dupeCheck chk=VestaSource::dontReplace, VestaSource **newvs=NULL, time_t timestamp=0) throw (SRPC::failure) |
VestaSource::errorCode | insertMutableDirectory (Arc arc, VestaSource *dir, bool master, AccessControl::Identity who=NULL, VestaSource::dupeCheck chk=VestaSource::dontReplace, VestaSource **newvs=NULL, time_t timestamp=0) throw (SRPC::failure) |
VestaSource::errorCode | insertGhost (Arc arc, bool master, AccessControl::Identity who=NULL, VestaSource::dupeCheck chk=VestaSource::dontReplace, VestaSource **newvs=NULL, time_t timestamp=0) throw (SRPC::failure) |
VestaSource::errorCode | insertStub (Arc arc, bool master, AccessControl::Identity who=NULL, VestaSource::dupeCheck chk=VestaSource::dontReplace, VestaSource **newvs=NULL, time_t timestamp=0) throw (SRPC::failure) |
VestaSource::errorCode | renameTo (Arc arc, VestaSource *fromDir, Arc fromArc, AccessControl::Identity who=NULL, VestaSource::dupeCheck chk=VestaSource::dontReplace, time_t timestamp=0) throw (SRPC::failure) |
VestaSource::errorCode | makeMutable (VestaSource *&result, ShortId sid=NullShortId, Basics::uint64 copyMax=(Basics::uint64)-1, AccessControl::Identity who=NULL) throw (SRPC::failure) |
VestaSource::errorCode | makeFilesImmutable (unsigned int threshold, AccessControl::Identity who=NULL) throw (SRPC::failure) |
VestaSource::errorCode | setIndexMaster (unsigned int index, bool state, AccessControl::Identity who=NULL) throw (SRPC::failure) |
VestaSource::errorCode | setMaster (bool state, AccessControl::Identity who=NULL) throw (SRPC::failure) |
VestaSource::errorCode | cedeMastership (const char *requestid, const char **grantidOut, AccessControl::Identity who=NULL) throw (SRPC::failure) |
bool | inAttribs (const char *name, const char *value) throw (SRPC::failure) |
char * | getAttrib (const char *name) throw (SRPC::failure) |
void | getAttrib (const char *name, VestaSource::valueCallback cb, void *cl) |
void | listAttribs (VestaSource::valueCallback cb, void *cl) |
void | getAttribHistory (VestaSource::historyCallback cb, void *cl) |
VestaSource::errorCode | writeAttrib (VestaSource::attribOp op, const char *name, const char *value, AccessControl::Identity who=NULL, time_t timestamp=0) throw (SRPC::failure) |
VestaSource::errorCode | measureDirectory (VestaSource::directoryStats &result, AccessControl::Identity who=NULL) throw (SRPC::failure) |
VestaSource::errorCode | collapseBase (AccessControl::Identity who=NULL) throw (SRPC::failure) |
virtual VestaSource * | copy () throw () |
Static Public Member Functions | |
static Text | defaultHost () throw () |
static Text | defaultPort () throw () |
static VestaSource::errorCode | createVolatileDirectory (const char *host, const char *port, Bit64 handle, VestaSource *&result, time_t timestamp=0, bool readOnlyExisting=true, Text reposHost="", Text reposPort="") throw (SRPC::failure) |
static VestaSource::errorCode | createVolatileDirectory (const char *host, Bit64 handle, VestaSource *&result, time_t timestamp=0, bool readOnlyExisting=true, Text reposHost="", Text reposPort="") throw (SRPC::failure) |
static VestaSource::errorCode | deleteVolatileDirectory (VestaSource *dir) throw (SRPC::failure) |
static void | getNFSInfo (char *&socket, LongId &root, LongId &muRoot) throw (SRPC::failure) |
static ShortId | fpToShortId (const FP::Tag &fptag, Text host, Text port) throw (SRPC::failure) |
static VestaSource * | repositoryRoot (Text host, Text port, AccessControl::Identity who=NULL) throw (SRPC::failure) |
static VestaSource * | mutableRoot (Text host, Text port, AccessControl::Identity who=NULL) throw (SRPC::failure) |
static VestaSource * | volatileRoot (Text host, Text port, AccessControl::Identity who=NULL) throw (SRPC::failure) |
static VestaSource * | LongIdLookup (LongId longid, Text host, Text port, AccessControl::Identity who=NULL) throw (SRPC::failure) |
static bool | LongIdValid (LongId longid, Text host, Text port, AccessControl::Identity who=NULL) throw (SRPC::failure) |
static VestaSource::errorCode | acquireMastership (const char *pathname, Text dstHost="", Text dstPort="", Text srcHost="", Text srcPort="", char pathnameSep=PathnameSep, AccessControl::Identity dwho=NULL, AccessControl::Identity swho=NULL) throw (SRPC::failure) |
static VestaSource::errorCode | replicate (const char *pathname, bool asStub=false, bool asGhost=false, Text dstHost="", Text dstPort="", Text srcHost="", Text srcPort="", char pathnameSep=PathnameSep, AccessControl::Identity dwho=NULL, AccessControl::Identity swho=NULL) throw (SRPC::failure) |
static VestaSource::errorCode | replicateAttribs (const char *pathname, bool includeAccess=true, Text dstHost="", Text dstPort="", Text srcHost="", Text srcPort="", char pathnameSep=PathnameSep, AccessControl::Identity dwho=NULL, AccessControl::Identity swho=NULL) throw (SRPC::failure) |
static void | getUserInfo (AccessControl::IdInfo &result, AccessControl::Identity who=NULL, AccessControl::Identity subject=NULL, Text reposHost="", Text reposPort="") throw (SRPC::failure) |
static void | refreshAccessTables (AccessControl::Identity who=NULL, Text reposHost="", Text reposPort="") throw (SRPC::failure) |
Private Attributes | |
time_t | timestampCache |
ShortId | sidCache |
int | executableCache |
Basics::uint64 | sizeCache |
Text | host_ |
Text | port_ |
Friends | |
void | VDirSurrogate_init () |
void | VDirSurrogate_init2 () |
|
Definition at line 107 of file VDirSurrogate.C. References VestaSourceSRPC::defaultHost(), and VDirSurrogateInit(). |
|
Definition at line 509 of file VDirSurrogate.C. References VestaSourceSRPC::AcquireMastership, VestaSourceSRPC::End(), SRPC::send_chars(), VestaSourceSRPC::send_identity(), SRPC::send_int(), VestaSourceSRPC::Start(), SRPC::start_call(), VDirSurrogateInit(), and VestaSourceSRPC::version. Referenced by main(). |
|
Reimplemented from VestaSource. Definition at line 1723 of file VDirSurrogate.C. References VestaSourceSRPC::CedeMastership, VestaSourceSRPC::End(), VRErrorCode::ok, SRPC::send_bytes(), SRPC::send_chars(), VestaSourceSRPC::send_identity(), VestaSourceSRPC::Start(), SRPC::start_call(), LongId::value, VDirSurrogateInit(), and VestaSourceSRPC::version. |
|
Reimplemented from VestaSource. Definition at line 1969 of file VDirSurrogate.C. References VestaSourceSRPC::CollapseBase, VestaSourceSRPC::End(), SRPC::send_bytes(), VestaSourceSRPC::send_identity(), VestaSourceSRPC::Start(), SRPC::start_call(), LongId::value, VDirSurrogateInit(), and VestaSourceSRPC::version. |
|
Reimplemented from VestaSource. Definition at line 2115 of file VDirSurrogate.C. References NEW_CONSTR. |
|
Definition at line 292 of file VDirSurrogate.C. References Text::cchars(), createVolatileDirectory(), Text::Empty(), VestaConfig::get_Text(), and VestaConfig::failure::msg. |
|
Definition at line 318 of file VDirSurrogate.C. References VestaSourceSRPC::CreateVolatileDirectory, VestaSourceSRPC::End(), NEW_CONSTR, VRErrorCode::ok, SRPC::send_bytes(), SRPC::send_chars(), SRPC::send_end(), SRPC::send_int(), VestaSourceSRPC::Start(), SRPC::start_call(), VDirSurrogateInit(), VestaSourceSRPC::version, VestaSource::volatileDirectory, and VestaSource::volatileROEDirectory. Referenced by CreateRootForDeriveds(), createVolatileDirectory(), RunTool(), and test_thread(). |
|
Definition at line 96 of file VDirSurrogate.C. References VestaSourceSRPC::defaultHost(). Referenced by VestaSource::host(), LongId::lookup(), main(), MastershipInit1(), LongId::valid(), and VDirSurrogate_init2(). |
|
Definition at line 102 of file VDirSurrogate.C. References VestaSourceSRPC::defaultInterface(). Referenced by LongId::lookup(), main(), MastershipInit1(), VestaSource::port(), LongId::valid(), and VDirSurrogate_init2(). |
|
Definition at line 373 of file VDirSurrogate.C. References VestaSourceSRPC::DeleteVolatileDirectory, VestaSourceSRPC::End(), host_, port_, SRPC::recv_end(), SRPC::recv_int(), SRPC::send_bytes(), SRPC::send_end(), VestaSourceSRPC::Start(), SRPC::start_call(), VDirSurrogateInit(), VestaSourceSRPC::version, VestaSource::volatileDirectory, and VestaSource::volatileROEDirectory. Referenced by DeleteRootForDeriveds(), DeleteRootForTool(), and test_thread(). |
|
Reimplemented from VestaSource. Definition at line 1802 of file VDirSurrogate.C. References executableCache, sizeCache, and timestampCache. |
|
Definition at line 415 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VestaSourceSRPC::FPToShortId, FP::Tag::Send(), VestaSourceSRPC::Start(), SRPC::start_call(), VDirSurrogateInit(), and VestaSourceSRPC::version. Referenced by test_thread(). |
|
|
Reimplemented from VestaAttribs. Definition at line 1476 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VestaSourceSRPC::GetAttrib, SRPC::recv_chars(), SRPC::recv_end(), SRPC::recv_int(), SRPC::send_bytes(), SRPC::send_chars(), SRPC::send_end(), VestaSourceSRPC::Start(), SRPC::start_call(), LongId::value, VDirSurrogateInit(), and VestaSourceSRPC::version. |
|
|
|
Definition at line 396 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VestaSourceSRPC::GetNFSInfo, SRPC::recv_bytes_here(), SRPC::recv_chars(), SRPC::recv_end(), SRPC::send_end(), VestaSourceSRPC::Start(), SRPC::start_call(), VDirSurrogateInit(), and VestaSourceSRPC::version. Referenced by RunTool::send_vdir(), and test_thread(). |
|
Definition at line 435 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VestaSourceSRPC::GetUserInfo, VestaSourceSRPC::send_identity(), VestaSourceSRPC::Start(), SRPC::start_call(), VDirSurrogateInit(), and VestaSourceSRPC::version. Referenced by main(). |
|
Reimplemented from VestaSource. Definition at line 44 of file VDirSurrogate.H. References host_. |
|
Reimplemented from VestaAttribs. Definition at line 1451 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VestaSourceSRPC::InAttribs, SRPC::recv_end(), SRPC::recv_int(), SRPC::send_bytes(), SRPC::send_chars(), SRPC::send_end(), VestaSourceSRPC::Start(), SRPC::start_call(), LongId::value, VDirSurrogateInit(), and VestaSourceSRPC::version. |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 234 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VestaSourceSRPC::Lookup, VRErrorCode::ok, VestaSourceSRPC::Start(), and VDirSurrogateInit(). Referenced by test_thread(), and LongId::valid(). |
|
|
|
|
Reimplemented from VestaSource. Definition at line 1647 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VestaSourceSRPC::MakeFilesImmutable, SRPC::send_bytes(), VestaSourceSRPC::send_identity(), SRPC::send_int(), VestaSourceSRPC::Start(), SRPC::start_call(), LongId::value, VDirSurrogateInit(), and VestaSourceSRPC::version. |
|
|
Reimplemented from VestaSource. Definition at line 1939 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VestaSourceSRPC::MeasureDirectory, VRErrorCode::ok, SRPC::send_bytes(), VestaSourceSRPC::send_identity(), VestaSourceSRPC::Start(), SRPC::start_call(), LongId::value, VDirSurrogateInit(), and VestaSourceSRPC::version. |
|
Definition at line 272 of file VDirSurrogate.C. References VestaSource::longid, MutableRootLongId, NEW_CONSTR, NullShortId, and VestaSource::resync(). Referenced by ReposUI::filenameToVS(). |
|
Reimplemented from VestaSource. Definition at line 45 of file VDirSurrogate.H. References port_. |
|
Reimplemented from VestaSource. Definition at line 1749 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VRErrorCode::ok, VestaSourceSRPC::Read, SRPC::send_bytes(), VestaSourceSRPC::send_identity(), SRPC::send_int(), VestaSourceSRPC::Start(), SRPC::start_call(), LongId::value, VDirSurrogateInit(), and VestaSourceSRPC::version. |
|
Reimplemented from VestaSource. Definition at line 1990 of file VDirSurrogate.C. References VestaSourceSRPC::compress_zlib_deflate, VestaSourceSRPC::End(), INFLATE_ECASE, SRPC::internal_trouble, NEW_PTRFREE_ARRAY, SRPC::not_implemented, VRErrorCode::ok, VestaSourceSRPC::ReadWholeCompressed, SRPC::send_bytes(), VestaSourceSRPC::send_identity(), VestaSourceSRPC::Start(), SRPC::start_call(), LongId::value, VDirSurrogateInit(), and VestaSourceSRPC::version. |
|
Reimplemented from VestaSource. Definition at line 990 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VestaSourceSRPC::ReallyDelete, SRPC::send_bytes(), SRPC::send_chars(), VestaSourceSRPC::send_identity(), VestaSourceSRPC::Start(), SRPC::start_call(), VDirSurrogateInit(), and VestaSourceSRPC::version. |
|
Definition at line 489 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VestaSourceSRPC::RefreshAccessTables, VestaSourceSRPC::send_identity(), VestaSourceSRPC::Start(), SRPC::start_call(), VDirSurrogateInit(), and VestaSourceSRPC::version. Referenced by main(). |
|
Definition at line 1351 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VestaSourceSRPC::RenameTo, SRPC::send_bytes(), SRPC::send_chars(), VestaSourceSRPC::send_identity(), VestaSourceSRPC::Start(), SRPC::start_call(), VDirSurrogateInit(), and VestaSourceSRPC::version. |
|
Definition at line 539 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VestaSourceSRPC::Replicate, SRPC::send_chars(), VestaSourceSRPC::send_identity(), SRPC::send_int(), VestaSourceSRPC::Start(), SRPC::start_call(), VDirSurrogateInit(), and VestaSourceSRPC::version. Referenced by test_thread(). |
|
Definition at line 571 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VestaSourceSRPC::ReplicateAttribs, SRPC::send_chars(), VestaSourceSRPC::send_identity(), SRPC::send_int(), VestaSourceSRPC::Start(), SRPC::start_call(), VDirSurrogateInit(), and VestaSourceSRPC::version. Referenced by test_thread(). |
|
Definition at line 262 of file VDirSurrogate.C. References VestaSource::longid, NEW_CONSTR, NullShortId, VestaSource::resync(), and RootLongId. Referenced by AcquireMastership(), ReposUI::filenameToVS(), main(), Replicate(), and ReplicateAttribs(). |
|
Reimplemented from VestaSource. Definition at line 603 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VestaSourceSRPC::Lookup, VRErrorCode::ok, VestaSourceSRPC::Start(), and VDirSurrogateInit(). |
|
Reimplemented from VestaSource. Definition at line 1862 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VRErrorCode::ok, SRPC::send_bytes(), VestaSourceSRPC::send_identity(), SRPC::send_int(), VestaSourceSRPC::SetExecutable, VestaSourceSRPC::Start(), SRPC::start_call(), LongId::value, VDirSurrogateInit(), and VestaSourceSRPC::version. |
|
Reimplemented from VestaSource. Definition at line 1670 of file VDirSurrogate.C. References VestaSourceSRPC::End(), SRPC::send_bytes(), VestaSourceSRPC::send_identity(), SRPC::send_int(), VestaSourceSRPC::SetIndexMaster, VestaSourceSRPC::Start(), SRPC::start_call(), LongId::value, VDirSurrogateInit(), and VestaSourceSRPC::version. |
|
Reimplemented from VestaSource. Definition at line 1694 of file VDirSurrogate.C. References VestaSourceSRPC::End(), LongId::getParent(), VRErrorCode::ok, SRPC::send_bytes(), VestaSourceSRPC::send_identity(), SRPC::send_int(), VestaSourceSRPC::SetIndexMaster, VestaSourceSRPC::Start(), SRPC::start_call(), LongId::value, VDirSurrogateInit(), and VestaSourceSRPC::version. |
|
Reimplemented from VestaSource. Definition at line 1887 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VRErrorCode::ok, SRPC::recv_end(), SRPC::recv_int(), SRPC::send_bytes(), SRPC::send_end(), VestaSourceSRPC::send_identity(), SRPC::send_int(), VestaSourceSRPC::SetSize, VestaSourceSRPC::Start(), SRPC::start_call(), LongId::value, VDirSurrogateInit(), and VestaSourceSRPC::version. |
|
Reimplemented from VestaSource. Definition at line 1914 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VRErrorCode::ok, SRPC::send_bytes(), VestaSourceSRPC::send_identity(), SRPC::send_int(), VestaSourceSRPC::SetTimestamp, VestaSourceSRPC::Start(), SRPC::start_call(), LongId::value, VDirSurrogateInit(), and VestaSourceSRPC::version. |
|
Reimplemented from VestaSource. Definition at line 443 of file VDirSurrogate.H. References sidCache. |
|
Reimplemented from VestaSource. Definition at line 1812 of file VDirSurrogate.C. References executableCache, sizeCache, and timestampCache. |
|
Reimplemented from VestaSource. Definition at line 1822 of file VDirSurrogate.C. References executableCache, sizeCache, and timestampCache. |
|
Definition at line 282 of file VDirSurrogate.C. References VestaSource::longid, NEW_CONSTR, NullShortId, VestaSource::resync(), and VolatileRootLongId. |
|
Reimplemented from VestaSource. Definition at line 1832 of file VDirSurrogate.C. References VestaSourceSRPC::End(), VRErrorCode::ok, SRPC::send_bytes(), VestaSourceSRPC::send_identity(), SRPC::send_int(), VestaSourceSRPC::Start(), SRPC::start_call(), LongId::value, VDirSurrogateInit(), VestaSourceSRPC::version, and VestaSourceSRPC::Write. |
|
Reimplemented from VestaSource. Definition at line 1619 of file VDirSurrogate.C. References VestaSourceSRPC::End(), SRPC::send_bytes(), SRPC::send_chars(), VestaSourceSRPC::send_identity(), SRPC::send_int(), VestaSourceSRPC::Start(), SRPC::start_call(), LongId::value, VDirSurrogateInit(), VestaSourceSRPC::version, and VestaSourceSRPC::WriteAttrib. |
|
Definition at line 55 of file VDirSurrogate.C. |
|
Definition at line 39 of file VDirSurrogateOnly.C. |
|
Definition at line 37 of file VDirSurrogate.H. Referenced by executable(), size(), and timestamp(). |
|
Definition at line 40 of file VDirSurrogate.H. Referenced by deleteVolatileDirectory(), getAttrib(), getAttribHistory(), host(), list(), and listAttribs(). |
|
Definition at line 40 of file VDirSurrogate.H. Referenced by deleteVolatileDirectory(), getAttrib(), getAttribHistory(), list(), listAttribs(), and port(). |
|
Definition at line 36 of file VDirSurrogate.H. Referenced by insertFile(), insertImmutableDirectory(), insertMutableFile(), and shortId(). |
|
Definition at line 38 of file VDirSurrogate.H. Referenced by executable(), size(), and timestamp(). |
|
Definition at line 35 of file VDirSurrogate.H. Referenced by executable(), size(), and timestamp(). |