irods
4.3.0
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
![]() ![]() |
#include "irods/rods.h"
#include "irods/objMetaOpr.hpp"
#include "irods/dataObjRepl.h"
#include "irods/rsGlobalExtern.hpp"
#include "irods/rcGlobalExtern.h"
Go to the source code of this file.
int _rsCollRsync | ( | rsComm_t * | rsComm, |
dataObjInp_t * | dataObjInp, | ||
char * | srcColl, | ||
char * | destColl | ||
) |
Definition at line 2649 of file reDataObjOpr.cpp.
References _rsCollRsync(), addKeyVal(), clearMsParamArray(), COLL_OBJ_T, CollInp::collName, CollEnt::collName, DataObjInp::condInput, DATA_OBJ_T, CollEnt::dataName, CollInp::flags, freeCollEnt(), LOG_ERROR, MAX_NAME_LEN, NULL, DataObjInp::objPath, CollEnt::objType, rodsLog(), rodsLogError(), rsCloseCollection(), rsDataObjRsync(), rsMkCollR(), rsOpenCollection(), rsReadCollection(), rstrcpy(), RSYNC_DEST_PATH_KW, and splitPathByKey().
Referenced by _rsCollRsync(), and msiCollRsync().
msiCollCreate | ( | msParam_t * | inpParam1, |
msParam_t * | inpParam2, | ||
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - a CollInp_MS_T or a STR_MS_T which would be taken as dataObj path. |
[in] | inpParam2 | - a STR_MS_T which specifies the flags integer. A flags value of 1 means the parent collections will be created too. |
[out] | outParam | - a INT_MS_T containing the status. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | upon success |
Definition at line 2003 of file reDataObjOpr.cpp.
References addKeyVal(), clearKeyVal(), CollInp::collName, CollInp::condInput, fillIntInMsParam(), LOG_ERROR, NULL, parseMspForCollInp(), parseMspForPosInt(), RE_TEST_MACRO, RECURSIVE_OPR__KW, RsComm::rError, rodsLog(), rodsLogAndErrorMsg(), rsCollCreate(), RuleExecInfo::rsComm, and RuleExecInfo::status.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiCollRepl | ( | msParam_t * | collection, |
msParam_t * | msKeyValStr, | ||
msParam_t * | status, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | collection | - A CollInp_MS_T or a STR_MS_T with the irods path of the collection to replicate. |
[in] | msKeyValStr | - Optional - a STR_MS_T. This is the special msKeyValStr format of keyWd1=value1++++keyWd2=value2++++keyWd3=value3... If the keyWd is not specified (without the '=' char), the value is assumed to be the target resource ("destRescName") for backward compatibility. Valid keyWds are:
|
[out] | status | - a CollOprStat_t for detailed operation status. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | on success |
Definition at line 2900 of file reDataObjOpr.cpp.
References ADMIN_FLAG, ALL_FLAG, BACKUP_RESC_NAME_FLAG, COLL_NAME_FLAG, CollInp::condInput, DEST_RESC_NAME_FLAG, DEST_RESC_NAME_KW, fillIntInMsParam(), FORCE_CHKSUM_FLAG, FORCE_CHKSUM_KW, LOG_ERROR, irods::experimental::make_key_value_proxy(), NO_COMPUTE_KW, NULL, parseMsKeyValStrForCollInp(), parseMspForCollInp(), RE_TEST_MACRO, REG_CHKSUM_KW, REPL_NUM_FLAG, RsComm::rError, RESC_NAME_FLAG, rodsLog(), rodsLogAndErrorMsg(), rsCollRepl(), RuleExecInfo::rsComm, RuleExecInfo::status, UPDATE_REPL_FLAG, VERIFY_CHKSUM_FLAG, and VERIFY_CHKSUM_KW.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiCollRsync | ( | msParam_t * | inpParam1, |
msParam_t * | inpParam2, | ||
msParam_t * | inpParam3, | ||
msParam_t * | inpParam4, | ||
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - a STR_MS_T which specifies the source collection path. |
[in] | inpParam2 | - a STR_MS_T which specifies the target collection path. |
[in] | inpParam3 | - Optional - a STR_MS_T which specifies the target resource. |
[in] | inpParam4 | - Optional - a STR_MS_T which specifies the rsync mode (RSYNC_MODE_KW). Valid mode is IRODS_TO_IRODS. |
[out] | outParam | - a INT_MS_T containing the status. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | on success |
Definition at line 2556 of file reDataObjOpr.cpp.
References _rsCollRsync(), clearKeyVal(), DataObjInp::condInput, DEST_RESC_NAME_KW, fillIntInMsParam(), getValByKey(), IRODS_TO_LOCAL, LOCAL_TO_IRODS, LOG_ERROR, NULL, parseMspForCondInp(), parseMspForStr(), RE_TEST_MACRO, RsComm::rError, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, RSYNC_MODE_KW, and RuleExecInfo::status.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiDataObjChksum | ( | msParam_t * | inpParam1, |
msParam_t * | msKeyValStr, | ||
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - A DataObjInp_MS_T or a STR_MS_T which would be taken as dataObj path. |
[in] | msKeyValStr | - Optional - a STR_MS_T. This is the special msKeyValStr format of keyWd1=value1++++keyWd2=value2++++keyWd3=value3... If the keyWd is not specified (without the '=' char), the value is assumed to be the target resource ("destRescName") for backward compatibility. Valid keyWds are:
|
[out] | outParam | - a STR_MS_T containing the chksum value. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | upon success |
Definition at line 1561 of file reDataObjOpr.cpp.
References CHKSUM_ALL_FLAG, clearKeyVal(), DataObjInp::condInput, fillStrInMsParam(), FORCE_CHKSUM_FLAG, KEY_WORD_KW, LOG_ERROR, NULL, OBJ_PATH_FLAG, DataObjInp::objPath, parseMsKeyValStrForDataObjInp(), parseMspForDataObjInp(), RE_TEST_MACRO, REPL_NUM_FLAG, RsComm::rError, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, rsDataObjChksum(), RuleExecInfo::status, and VERIFY_CHKSUM_FLAG.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiDataObjClose | ( | msParam_t * | inpParam, |
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam | - inpParam is a msParam of type INT_MS_T or STR_MS_T. |
[out] | outParam | - outParam is a msParam of type INT_MS_T. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | on success |
Definition at line 303 of file reDataObjOpr.cpp.
References clearKeyVal(), DataObjCloseInp_MS_T, fillIntInMsParam(), MsParam::inOutStruct, LOG_ERROR, NULL, parseMspForPosInt(), RE_TEST_MACRO, RsComm::rError, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, rsDataObjClose(), RuleExecInfo::status, and MsParam::type.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiDataObjCopy | ( | msParam_t * | inpParam1, |
msParam_t * | inpParam2, | ||
msParam_t * | msKeyValStr, | ||
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
This microservice copies a file from one logical (source) collection to another logical (destination) collection that is physically located in the input resource
[in] | inpParam1 | - a DataObjCopyInp_MS_T or DataObjInp_MS_T which is the source DataObjInp or STR_MS_T which would be the source object path. |
[in] | inpParam2 | - Optional - a DataObjInp_MS_T which is the destination DataObjInp or STR_MS_T which would be the destination object path. |
[in] | msKeyValStr | - Optional - a STR_MS_T. This is the special msKeyValStr format of keyWd1=value1++++keyWd2=value2++++keyWd3=value3... If the keyWd is not specified (without the '=' char), the value is assumed to be the target resource ("destRescName") for backward compatibility. Valid keyWds are:
|
[out] | outParam | - a INT_MS_T for the status. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | on success |
Definition at line 1128 of file reDataObjOpr.cpp.
References clearKeyVal(), DATA_TYPE_FLAG, DEST_RESC_NAME_FLAG, DEST_RESC_NAME_KW, DataObjCopyInp::destDataObjInp, FILE_PATH_FLAG, fillIntInMsParam(), FORCE_FLAG_FLAG, LOG_ERROR, NULL, NUM_THREADS_FLAG, OBJ_PATH_FLAG, DataObjInp::objPath, parseMsKeyValStrForDataObjInp(), parseMspForDataObjCopyInp(), parseMspForDataObjInp(), RE_TEST_MACRO, RsComm::rError, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, rsDataObjCopy(), DataObjCopyInp::srcDataObjInp, RuleExecInfo::status, and VERIFY_CHKSUM_FLAG.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiDataObjGet | ( | msParam_t * | inpParam1, |
msParam_t * | msKeyValStr, | ||
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - A DataObjInp_MS_T or STR_MS_T which would be taken as dataObj path. |
[in] | msKeyValStr | - Optional - a STR_MS_T. This is the special msKeyValStr format of keyWd1=value1++++keyWd2=value2++++keyWd3=value3... If the keyWd is not specified (without the '=' char), the value is assumed to be the client's local file path ("localPath") for backward compatibility.. Valid keyWds are:
|
[out] | outParam | - a INT_MS_T containing the status. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | on success |
Definition at line 1431 of file reDataObjOpr.cpp.
References addMsParam(), RsComm::apiInx, CL_GET_ACTION, clearDataObjInp(), clearMsParamArray(), DataObjInp_MS_T, fillIntInMsParam(), FORCE_FLAG_FLAG, LOCAL_PATH_FLAG, LOCAL_PATH_KW, LOG_ERROR, NULL, NUM_THREADS_FLAG, OBJ_PATH_FLAG, DataObjInp::objPath, parseMsKeyValStrForDataObjInp(), parseMspForDataObjInp(), RE_TEST_MACRO, REPL_NUM_FLAG, RsComm::rError, RESC_NAME_FLAG, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, sendAndRecvBranchMsg(), RuleExecInfo::status, SYS_SVR_TO_CLI_MSI_REQUEST, and VERIFY_CHKSUM_FLAG.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiDataObjLseek | ( | msParam_t * | inpParam1, |
msParam_t * | inpParam2, | ||
msParam_t * | inpParam3, | ||
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - a msParam of type DataObjLseekInp_MS_T or INT_MS_T or a STR_MS_T which would be the descriptor. |
[in] | inpParam2 | - Optional - a msParam of type INT_MS_T or DOUBLE_MS_T or a STR_MS_T which would be the offset. |
[in] | inpParam3 | - Optional - a msParam of type INT_MS_T or a STR_MS_T which would be from where. Can be SEEK_SET, SEEK_CUR, and SEEK_END. |
[out] | outParam | - a msParam of type Double_MS_T or DataObjLseekOut_MS_T which is the return status. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
positive | on success |
Definition at line 399 of file reDataObjOpr.cpp.
References DataObjLseekInp_MS_T, DataObjLseekOut_MS_T, DOUBLE_MS_T, fillMsParam(), MsParam::inOutStruct, INT_MS_T, OpenedDataObjInp::l1descInx, LOG_ERROR, NULL, OpenedDataObjInp::offset, RE_TEST_MACRO, RsComm::rError, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, rsDataObjLseek(), RuleExecInfo::status, STR_MS_T, MsParam::type, and OpenedDataObjInp::whence.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiDataObjOpen | ( | msParam_t * | inpParam, |
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam | - a msParam of type DataObjInp_MS_T or a STR_MS_T which would be taken as msKeyValStr. msKeyValStr - This is the special msKeyValStr format of keyWd1=value1++++keyWd2=value2++++keyWd3=value3... If the keyWd is not specified (without the '=' char), the value is assumed to be the path of the data object("objPath") for backward compatibility. Valid keyWds are:
|
[out] | outParam | - a msParam of type INT_MS_T containing the descriptor of the open. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
positive | on success |
Definition at line 205 of file reDataObjOpr.cpp.
References clearKeyVal(), fillIntInMsParam(), LOG_ERROR, NULL, OBJ_PATH_FLAG, OBJ_PATH_KW, OPEN_FLAGS_FLAG, parseMsKeyValStrForDataObjInp(), parseMspForDataObjInp(), RE_TEST_MACRO, REPL_NUM_FLAG, RsComm::rError, RESC_NAME_FLAG, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, rsDataObjOpen(), RuleExecInfo::status, STR_MS_T, and MsParam::type.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiDataObjPhymv | ( | msParam_t * | inpParam1, |
msParam_t * | inpParam2, | ||
msParam_t * | inpParam3, | ||
msParam_t * | inpParam4, | ||
msParam_t * | inpParam5, | ||
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - A DataObjInp_MS_T or STR_MS_T which would be taken as dataObj path. |
[in] | inpParam2 | - Optional - a STR_MS_T which specifies the dest resourceName. |
[in] | inpParam3 | - Optional - a STR_MS_T which specifies the src resourceName. |
[in] | inpParam4 | - Optional - a STR_MS_T which specifies the replNum. |
[in] | inpParam5 | - Optional - a STR_MS_T which specifies the ADMIN_KW. |
[out] | outParam | - a INT_MS_T containing the status. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | upon success |
Definition at line 1671 of file reDataObjOpr.cpp.
References ADMIN_KW, clearKeyVal(), DataObjInp::condInput, DEST_RESC_NAME_KW, fillIntInMsParam(), LOG_ERROR, NULL, DataObjInp::objPath, parseMspForCondInp(), parseMspForDataObjInp(), RE_TEST_MACRO, REPL_NUM_KW, RsComm::rError, RESC_NAME_KW, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, rsDataObjPhymv(), and RuleExecInfo::status.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiDataObjPut | ( | msParam_t * | inpParam1, |
msParam_t * | inpParam2, | ||
msParam_t * | msKeyValStr, | ||
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - A DataObjInp_MS_T or STR_MS_T which would be taken as dataObj path. |
[in] | inpParam2 | - Optional - a STR_MS_T which specifies the resource. |
[in] | msKeyValStr | - Optional - a STR_MS_T. This is the special msKeyValStr format of keyWd1=value1++++keyWd2=value2++++keyWd3=value3... If the keyWd is not specified (without the '=' char), the value is assumed to be the client's local file path ("localPath") for backward compatibility. Valid keyWds are:
|
[out] | outParam | - a INT_MS_T containing the status. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | on success |
Definition at line 1279 of file reDataObjOpr.cpp.
References addMsParam(), ALL_FLAG, RsComm::apiInx, CL_PUT_ACTION, clearDataObjInp(), clearMsParamArray(), DataObjInp::condInput, DATA_TYPE_FLAG, DataObjInp_MS_T, DEST_RESC_NAME_FLAG, DEST_RESC_NAME_KW, FILE_PATH_FLAG, fillIntInMsParam(), FORCE_FLAG_FLAG, LOCAL_PATH_FLAG, LOCAL_PATH_KW, LOG_ERROR, NULL, NUM_THREADS_FLAG, OBJ_PATH_FLAG, DataObjInp::objPath, parseMsKeyValStrForDataObjInp(), parseMspForCondInp(), parseMspForDataObjInp(), RE_TEST_MACRO, REPL_NUM_FLAG, RsComm::rError, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, sendAndRecvBranchMsg(), RuleExecInfo::status, SYS_SVR_TO_CLI_MSI_REQUEST, and VERIFY_CHKSUM_FLAG.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiDataObjRead | ( | msParam_t * | inpParam1, |
msParam_t * | inpParam2, | ||
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - a msParam of type DataObjReadInp_MS_T or INT_MS_T or STR_MS_T which would be the descriptor. |
[in] | inpParam2 | - Optional - a msParam of type INT_MS_T or STR_MS_T which would be the length. |
[out] | outParam | - a msParam of type BUF_LEN_MS_T. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
positive | on success |
Definition at line 558 of file reDataObjOpr.cpp.
References DataObjReadInp_MS_T, fillBufLenInMsParam(), MsParam::inOutStruct, OpenedDataObjInp::l1descInx, OpenedDataObjInp::len, LOG_ERROR, NULL, parseMspForPosInt(), RE_TEST_MACRO, RsComm::rError, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, rsDataObjRead(), RuleExecInfo::status, and MsParam::type.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiDataObjRename | ( | msParam_t * | inpParam1, |
msParam_t * | inpParam2, | ||
msParam_t * | inpParam3, | ||
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - A taObjCopyInp_MS_T or STR_MS_T which would be taken as the src dataObj path. |
[in] | inpParam2 | - Optional - A DataObjInp_MS_T which is the destination DataObjInp or STR_MS_T which would be the destination object Path. |
[in] | inpParam3 | - Optional - a INT_MS_T or STR_MS_T which specifies the object type. A 0 means data obj and > 0 mean collection. |
[out] | outParam | - a INT_MS_T containing the status. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | upon success |
Definition at line 1786 of file reDataObjOpr.cpp.
References clearKeyVal(), DataObjCopyInp::destDataObjInp, fillIntInMsParam(), LOG_ERROR, NULL, DataObjInp::objPath, DataObjInp::oprType, parseMspForDataObjCopyInp(), parseMspForDataObjInp(), parseMspForPosInt(), RE_TEST_MACRO, RENAME_COLL, RENAME_DATA_OBJ, RsComm::rError, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, rsDataObjRename(), DataObjCopyInp::srcDataObjInp, and RuleExecInfo::status.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiDataObjRepl | ( | msParam_t * | inpParam1, |
msParam_t * | msKeyValStr, | ||
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - a msParam of type DataObjInp_MS_T or STR_MS_T which would be the obj Path. |
[in] | msKeyValStr | - Optional - a STR_MS_T. This is the special msKeyValStr format of keyWd1=value1++++keyWd2=value2++++keyWd3=value3... If the keyWd is not specified (without the '=' char), the value is assumed to be the target resource ("destRescName") for backward compatibility. Valid keyWds are:
|
[out] | outParam | - a msParam of type INT_MS_T which is a status of the operation. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | on success |
Definition at line 962 of file reDataObjOpr.cpp.
References ADMIN_FLAG, ALL_FLAG, BACKUP_RESC_NAME_FLAG, clearKeyVal(), DataObjInp::condInput, DEST_RESC_NAME_FLAG, DEST_RESC_NAME_KW, fillIntInMsParam(), FORCE_CHKSUM_FLAG, FORCE_CHKSUM_KW, LOG_ERROR, irods::experimental::make_key_value_proxy(), NO_COMPUTE_KW, NULL, NUM_THREADS_FLAG, OBJ_PATH_FLAG, DataObjInp::objPath, parseMsKeyValStrForDataObjInp(), parseMspForDataObjInp(), RBUDP_PACK_SIZE_FLAG, RBUDP_SEND_RATE_FLAG, RBUDP_TRANSFER_FLAG, RE_TEST_MACRO, REG_CHKSUM_KW, REPL_NUM_FLAG, RsComm::rError, RESC_NAME_FLAG, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, rsDataObjRepl(), RuleExecInfo::status, UPDATE_REPL_FLAG, VERIFY_CHKSUM_FLAG, and VERIFY_CHKSUM_KW.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiDataObjRsync | ( | msParam_t * | inpParam1, |
msParam_t * | inpParam2, | ||
msParam_t * | inpParam3, | ||
msParam_t * | inpParam4, | ||
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - A DataObjInp_MS_T or STR_MS_T which would be taken as dataObj path. |
[in] | inpParam2 | - Optional - a STR_MS_T which specifies the rsync mode (RSYNC_MODE_KW). Valid mode is IRODS_TO_IRODS and IRODS_TO_COLLECTION. |
[in] | inpParam3 | - Optional - a STR_MS_T which specifies the resource value (DEST_RESC_NAME_KW). |
[in] | inpParam4 | - Optional - a STR_MS_T which specifies the (RSYNC_DEST_PATH_KW). For IRODS_TO_IRODS, this is the target path. For IRODS_TO_COLLECTION, this is the top level target collection. e.g., if dataObj (inpParam1) is /tempZone/home/rods/foo and the target collection (inpParam4) is /tempZone/archive, then the target path is /tempZone/archive/home/rods/foo. |
[out] | outParam | - a INT_MS_T containing the status. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | on success |
Definition at line 2401 of file reDataObjOpr.cpp.
References addKeyVal(), clearKeyVal(), clearMsParamArray(), DataObjInp::condInput, DEST_RESC_NAME_KW, fillIntInMsParam(), getValByKey(), IRODS_TO_COLLECTION, IRODS_TO_IRODS, IRODS_TO_LOCAL, LOCAL_TO_IRODS, LOG_ERROR, MAX_NAME_LEN, NULL, DataObjInp::objPath, parseMspForCondInp(), parseMspForDataObjInp(), RE_TEST_MACRO, RsComm::rError, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, rsDataObjRsync(), RSYNC_DEST_PATH_KW, RSYNC_MODE_KW, and RuleExecInfo::status.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiDataObjTrim | ( | msParam_t * | inpParam1, |
msParam_t * | inpParam2, | ||
msParam_t * | inpParam3, | ||
msParam_t * | inpParam4, | ||
msParam_t * | inpParam5, | ||
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - A DataObjInp_MS_T or STR_MS_T which would be taken as dataObj path. |
[in] | inpParam2 | - Optional - a STR_MS_T which specifies the resourceName. |
[in] | inpParam3 | - Optional - a STR_MS_T which specifies the replNum. |
[in] | inpParam4 | - Optional - a STR_MS_T which specifies the minimum number of copies to keep. |
[in] | inpParam5 | - Optional - a STR_MS_T which specifies the ADMIN_KW. |
[out] | outParam | - a INT_MS_T containing the status. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
1 | if a replica is trimmed, 0 if nothing trimmed |
Definition at line 1892 of file reDataObjOpr.cpp.
References ADMIN_KW, clearKeyVal(), DataObjInp::condInput, COPIES_KW, fillIntInMsParam(), LOG_ERROR, NULL, DataObjInp::objPath, parseMspForCondInp(), parseMspForDataObjInp(), RE_TEST_MACRO, REPL_NUM_KW, RsComm::rError, RESC_NAME_KW, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, rsDataObjTrim(), and RuleExecInfo::status.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiDataObjUnlink | ( | msParam_t * | inpParam, |
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam | - a msParam of type DataObjInp_MS_T or STR_MS_T which would be taken as msKeyValStr. msKeyValStr - This is the special msKeyValStr format of keyWd1=value1++++keyWd2=value2++++keyWd3=value3... If the keyWd is not specified (without the '=' char), the value is assumed to be the path of the data object("objPath") for backward compatibility. Valid keyWds are:
|
[out] | outParam | - a msParam of type INT_MS_T for the status. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | on success |
Definition at line 823 of file reDataObjOpr.cpp.
References ADMIN_RMTRASH_FLAG, clearKeyVal(), fillIntInMsParam(), FORCE_FLAG_FLAG, LOG_ERROR, NULL, OBJ_PATH_FLAG, OBJ_PATH_KW, DataObjInp::objPath, parseMsKeyValStrForDataObjInp(), parseMspForDataObjInp(), RE_TEST_MACRO, RsComm::rError, RMTRASH_FLAG, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, rsDataObjUnlink(), RuleExecInfo::status, STR_MS_T, MsParam::type, and UNREG_FLAG.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiDataObjWrite | ( | msParam_t * | inpParam1, |
msParam_t * | inpParam2, | ||
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - a msParam of type DataObjWriteInp_MS_T or INT_MS_T or a STR_MS_T which would be the descriptor. |
[in] | inpParam2 | - Optional - a msParam of type BUF_LEN_MS_T or a STR_MS_T, the input is inpOutBuf and the length of the buffer in the BBuf.
|
[out] | outParam | - a msParam of type INT_MS_T for the length written. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
positive | on success |
Definition at line 667 of file reDataObjOpr.cpp.
References BytesBuf::buf, DataObjWriteInp_MS_T, fillIntInMsParam(), getMsParamByLabel(), if(), MsParam::inOutStruct, MsParam::inpOutBuf, OpenedDataObjInp::l1descInx, OpenedDataObjInp::len, BytesBuf::len, LOG_ERROR, RuleExecInfo::msParamArray, NULL, parseMspForPosInt(), RE_TEST_MACRO, RsComm::rError, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, rsDataObjWrite(), RuleExecInfo::status, ExecCmdOut::stderrBuf, ExecCmdOut::stdoutBuf, STR_MS_T, and MsParam::type.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiExecCmd | ( | msParam_t * | inpParam1, |
msParam_t * | inpParam2, | ||
msParam_t * | inpParam3, | ||
msParam_t * | inpParam4, | ||
msParam_t * | inpParam5, | ||
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - a ExecCmd_MS_T or a STR_MS_T which specify the command (cmd) to execute. |
[in] | inpParam2 | - Optional - a STR_MS_T which specifies the argv (cmdArgv) of the command |
[in] | inpParam3 | - Optional - a STR_MS_T which specifies the host address (execAddr) to execute to command. |
[in] | inpParam4 | - Optional - a STR_MS_T which specifies an iRODS file path (hintPath). The command will be executed on the host where this file is stored. |
[in] | inpParam5 | - Optional - A INT_MS_T or a STR_MS_T. If it is greater than zero, the resolved physical path from the logical hintPath (inpParam4) will be used as the first argument the command. |
[out] | outParam | - a ExecCmdOut_MS_T containing the status of the command execution and the stdout/strerr output. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | on success |
Definition at line 2764 of file reDataObjOpr.cpp.
References addKeyVal(), ExecCmd::addPathToArgv, clearKeyVal(), ExecCmd::cmd, ExecCmd::cmdArgv, ExecCmd::condInput, EXEC_CMD_RULE_KW, EXEC_MY_RULE_KW, ExecCmd::execAddr, ExecCmdOut_MS_T, fillMsParam(), ExecCmd::hintPath, HUGE_NAME_LEN, LOG_ERROR, LONG_NAME_LEN, MAX_NAME_LEN, NULL, parseMspForExecCmdInp(), parseMspForPosInt(), parseMspForStr(), RE_TEST_MACRO, RsComm::rError, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, rsExecCmd(), rstrcpy(), RuleExecInfo::ruleName, and RuleExecInfo::status.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table(), and startMonScript().
msiObjStat | ( | msParam_t * | inpParam1, |
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - A DataObjInp_MS_T or STR_MS_T which would be taken as dataObj path. |
[out] | outParam | - a RodsObjStat_MS_T containing the rodsObjStat_t struct of the object. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | on success |
Definition at line 2308 of file reDataObjOpr.cpp.
References clearKeyVal(), fillMsParam(), LOG_ERROR, NULL, DataObjInp::objPath, parseMspForDataObjInp(), RE_TEST_MACRO, RsComm::rError, rodsLog(), rodsLogAndErrorMsg(), RodsObjStat_MS_T, RuleExecInfo::rsComm, rsObjStat(), and RuleExecInfo::status.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiPhyPathReg | ( | msParam_t * | inpParam1, |
msParam_t * | inpParam2, | ||
msParam_t * | inpParam3, | ||
msParam_t * | inpParam4, | ||
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - A DataObjInp_MS_T or STR_MS_T which would be taken as object path. The path can be a data object or a collection path. |
[in] | inpParam2 | - Optional - a STR_MS_T which specifies the dest resourceName. |
[in] | inpParam3 | - Optional - a STR_MS_T which specifies the physical path to be registered. |
[in] | inpParam4 | - Optional - a STR_MS_T which specifies whether the path to be registered is a directory. A keyword string "collection" indicates the path is a directory. A "null" string indicates the path is a file. A "mountPoint" (MOUNT_POINT_STR) means mounting the file directory given in inpParam3. A "linkPoint" (LINK_POINT_STR) means soft link the collection given in inpParam3. A "unmount" (UNMOUNT_STR) means unmount the collection. |
[out] | outParam | - a INT_MS_T containing the status. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | upon success |
Definition at line 2205 of file reDataObjOpr.cpp.
References clearKeyVal(), DataObjInp::condInput, DEST_RESC_NAME_KW, FILE_PATH_KW, fillIntInMsParam(), LOG_ERROR, NULL, DataObjInp::objPath, parseMspForCondInp(), parseMspForDataObjInp(), parseMspForPhyPathReg(), RE_TEST_MACRO, RsComm::rError, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, rsPhyPathReg(), and RuleExecInfo::status.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiRmColl | ( | msParam_t * | inpParam1, |
msParam_t * | msKeyValStr, | ||
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - a CollInp_MS_T or a STR_MS_T which would be taken as dataObj path. |
[in] | msKeyValStr | - This is the special msKeyValStr format of keyWd1=value1++++keyWd2=value2++++keyWd3=value3... If the keyWd is not specified (without the '=' char), the value is assumed to be one of the keywords listed below for backwards compatibility. Valid keyWds are :
|
[out] | outParam | - an INT_MS_T containing the status. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | upon success |
Definition at line 2096 of file reDataObjOpr.cpp.
References addKeyVal(), ADMIN_RMTRASH_FLAG, clearKeyVal(), COLL_NAME_FLAG, CollInp::collName, CollInp::condInput, fillIntInMsParam(), FORCE_FLAG_FLAG, KEY_WORD_KW, LOG_ERROR, NULL, parseMsKeyValStrForCollInp(), parseMspForCollInp(), RE_TEST_MACRO, RECURSIVE_OPR__KW, RsComm::rError, RMTRASH_FLAG, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, rsRmColl(), and RuleExecInfo::status.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiTarFileCreate | ( | msParam_t * | inpParam1, |
msParam_t * | inpParam2, | ||
msParam_t * | inpParam3, | ||
msParam_t * | inpParam4, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - A StructFileExtAndRegInp_MS_T or a STR_MS_T which would be taken as dataObj path. |
[in] | inpParam2 | - A STR_MS_T which specifies the target collection. |
[in] | inpParam3 | - optional - A STR_MS_T which specifies the target resource. |
[out] | inpParam4 | - optional - A STR_MS_T which specifies if the force flag is set. Set it to "force" if the force option is needed, otherwise no force option will be used. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | upon success |
Definition at line 3191 of file reDataObjOpr.cpp.
References addKeyVal(), StructFileExtAndRegInp::collection, StructFileExtAndRegInp::condInput, DEST_RESC_NAME_KW, FORCE_FLAG_KW, MsParam::inOutStruct, LOG_ERROR, NULL, StructFileExtAndRegInp::objPath, RE_TEST_MACRO, RsComm::rError, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, rsStructFileBundle(), RuleExecInfo::status, STR_MS_T, StructFileExtAndRegInp_MS_T, and MsParam::type.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().
msiTarFileExtract | ( | msParam_t * | inpParam1, |
msParam_t * | inpParam2, | ||
msParam_t * | inpParam3, | ||
msParam_t * | outParam, | ||
ruleExecInfo_t * | rei | ||
) |
[in] | inpParam1 | - A StructFileExtAndRegInp_MS_T or a STR_MS_T which would be taken as dataObj path. |
[in] | inpParam2 | - A STR_MS_T which specifies the target collection. |
[in] | inpParam3 | - optional - A STR_MS_T which specifies the target resource. |
[out] | outParam | - An INT_MS_T containing the status. |
[in,out] | rei | - The RuleExecInfo structure that is automatically handled by the rule engine. The user does not include rei as a parameter in the rule invocation. |
0 | upon success |
Definition at line 3048 of file reDataObjOpr.cpp.
References addKeyVal(), StructFileExtAndRegInp::collection, StructFileExtAndRegInp::condInput, DATA_TYPE_KW, ModDataObjMetaInp::dataObjInfo, DataObjInfo::dataType, DEST_RESC_NAME_KW, RuleExecInfo::doi, ERROR, fillIntInMsParam(), MsParam::inOutStruct, LOG_ERROR, NAME_LEN, NULL, StructFileExtAndRegInp::objPath, RE_TEST_MACRO, ModDataObjMetaInp::regParam, RsComm::rError, RESC_NAME_KW, rodsLog(), rodsLogAndErrorMsg(), RuleExecInfo::rsComm, rsModDataObjMeta(), rsStructFileExtAndReg(), RuleExecInfo::status, STR_MS_T, StructFileExtAndRegInp_MS_T, and MsParam::type.
Referenced by irods::lookup_table< ValueType, KeyType, HashType >::lookup_table().