Acs majordomo
![]() | Majordomo::CommandCertificatesReceived (MsgField *dataFld) Processes CMD_CERTIFICATES_RECEIVED command |
![]() | Majordomo::CommandControllACCount (MsgField *dataFld) Serves TO_CHECK_AC_COUNT command |
![]() | Majordomo::CommandDelFinderTbl (MsgField *dataFld) Serves the TO_DEL_FINDER_TBL command |
![]() | Majordomo::CommandTimeoutAllocation (MsgField *dataFld) Serves TO_ALLOC Processes timeout command for allocation |
![]() | Majordomo::DRCRFSGetFields (const MsgField *dataFld, GMessage **replyToAC, TID *replyToTID, Size *fileSize, RelTime **storageTime) Parses GMessage comming with CE_REQ_FOR_STOR command |
![]() | Majordomo::DRCReplyAllocation (const MsgField *dataFld) Serves the CE_REPLY_ALLOCATION message |
![]() | Majordomo::DRCReplyStorage (const MsgField *dataFld) Serves the reply to CE_DATA_TO_STOR Looks into the message, whether the storage was successful and prints the result to the stdout |
![]() | Majordomo::DRCRequestForFile (const MsgField *dataField, const ACID acid) Serves CMD_REQ_FOR_FILE message |
![]() | Majordomo::FillRequestForFile (GMessage *outMsg, MsgField * aFFID, GMessage *transportKey, Int depth, Int width) Sets the outMsg as RequestForFile |
![]() | Majordomo::FillRequestForHeaders (GMessage *outMsg, MsgField *aFAM, GMessage *transportKey, Int depth, Int width) Sets the outMsg as RequestForHeaders |
![]() | Majordomo::FindFile (ArrayGMessage *certificates) Tries to find file on Esos |
![]() | Majordomo::FindHeaders (ArrayGMessage *certificates) Tries to find headers on Esos |
![]() | Majordomo::LoadPublicKey () Returns Client's pubKey |
![]() | Majordomo::Majordomo (Acs * parent, LogFile * majordomoLogFile) Acs Majordomo constructor |
![]() | Majordomo::Majordomo (Client * parent, LogFile * logFile) Constructor of Majordomo in Client |
![]() | Majordomo::Majordomo (Eso * parent, LogFile * majordomoLogFile) Eso Majordomo constructor |
![]() | methods
|
attributes
Acs majordomo.. Processes various requests for certificates comming from network and takes apropriate action like sends back the requested certificates
virtual void* Run(void *)
Err Majordomo::CommandControllACCount(MsgField *dataFld)
Err Majordomo::CommandDelFinderTbl(MsgField *dataFld)
Err Majordomo::CommandTimeoutAllocation(MsgField *dataFld)
Err Majordomo::DRCRFSGetFields(const MsgField *dataFld, GMessage **replyToAC, TID *replyToTID, Size *fileSize, RelTime **storageTime)
Reply-To-ID: ID of a message assigned by sender (Client)
File-Size: Size of file Client whishes to store
Storage-Time: RelTime for which the file should be stored
replyToAC - out parameter for Reply-To access certificate
replyToTID - out parameter for Reply-To message ID
fileSize - out parameter for size of file whished to stored
storageTime - out parameter for time for which the file should be stored
Err Majordomo::DRCReplyAllocation(const MsgField *dataFld)
Err Majordomo::DRCReplyStorage(const MsgField *dataFld)
Err Majordomo::DRCRequestForFile(const MsgField *dataField, const ACID acid)
processes the incoming request for file
- searches for file on this server
- if not found, continues the search
in the search tree
- if found, sends the file back to the client
- KO in the case of bad structure of dataField
or if fatal error comes (ex. NULL ptr to Finder)
- OK otherwise
(that means even in case of mistake in any step
of the algorithm [ex. cannot send the message
back to client] - these situations are only
written to the logFile)
Err Majordomo::FillRequestForFile(GMessage *outMsg, MsgField * aFFID, GMessage *transportKey, Int depth, Int width)
Err Majordomo::FillRequestForHeaders(GMessage *outMsg, MsgField *aFAM, GMessage *transportKey, Int depth, Int width)
void Majordomo::FindFile(ArrayGMessage *certificates)
void Majordomo::FindHeaders(ArrayGMessage *certificates)
GMessage* Majordomo::LoadPublicKey()
Majordomo::Majordomo(Acs * parent, LogFile * majordomoLogFile)
logFile - Log file where to write messages
Majordomo::Majordomo(Client * parent, LogFile * logFile)
logFile - LogFile to write to.
Majordomo::Majordomo(Eso * parent, LogFile * majordomoLogFile)
majordomoLogFile - log file for debugging messages
alphabetic index hierarchy of classes
generated by doc++