MClientLib.h
1 /*****************************************************************************
2 **
3 ** Header file for Muster API Client lib
4 **
5 ** Name : MClientLib.h
6 ** Author : Leonardo Bernardini
7 ** Version : Alpha 9.0 Wed May 17th 2017
8 **
9 ** Copyright 2000-2017, Virtual Vertex
10 ** All Rights Reserved.
11 **
12 ** This file contains UNPUBLISHED PROPRIETARY SOURCE CODE.
13 ** The contents of this file may not be disclosed to third parties, copied
14 ** or duplicated in any form, in whole or in part, without the prior written
15 ** permission of the author.
16 **
17 *****************************************************************************/
18 
19 
20 #ifndef MCLIENTLIB_H
21 #define MCLIENTLIB_H
22 
23 #include <vector>
24 #include <string>
25 
26 #include "MClientLib/MError.h"
27 #include "MClientLib/MSession.h"
28 #include "MClientLib/MAuth.h"
29 #include "MClientLib/MConfiguration.h"
30 #include "MClientLib/MServerStatus.h"
31 #include "MClientLib/MLog.h"
32 #include "MClientLib/MChunk.h"
33 #include "MClientLib/MNode.h"
34 #include "MClientLib/MClient.h"
35 #include "MClientLib/MNClient.h"
36 #include "MClientLib/MJob.h"
37 #include "MClientLib/MPools.h"
38 #include "MClientLib/MRepository.h"
39 #include "MClientLib/MUser.h"
40 #include "MClientLib/MGroup.h"
41 #include "MClientLib/MDispatcherStatistics.h"
42 #include "MClientLib/MStatisticsSample.h"
43 #include "MClientLib/MHistoryChunk.h"
44 #include "MClientLib/MNodeConfiguration.h"
45 #include "MClientLib/MStringRef.h"
46 #include "MClientLib/MSamplesBoundaries.h"
47 #include "MClientLib/MBackupQuery.h"
48 #include "MClientLib/MBackupJob.h"
49 
50 #ifdef WIN32
51 // Windows definitions
52 #ifdef MCLIENTLIB_EXPORTS
53 #define MCLIENTLIB_API __declspec(dllexport)
54 #else
55 #define MCLIENTLIB_API __declspec(dllimport)
56 #endif
57 
58 // GetJob clashes with WIN32 GetJob API
59 #ifdef GetJob
60 #undef GetJob
61 #endif
62 
63 #else
64 
65 #ifndef MCLIENTLIB_EXPORTS
66 #ifdef LINUX
67 #define MCLIENTLIB_API
68 #else
69 #define MCLIENTLIB_API
70 #endif
71 #else
72 #define MCLIENTLIB_API
73 #endif
74 
75 #endif
76 
77 namespace MClientLib {
78 
92  enum kPlatforms {
94  kPlatformLinux = 0x02,
95  kPlatformOSX = 0x04
96  } ;
97 
99  enum kIpVersion {
100  kIPBoth = 0,
103  };
104 
106  enum kLogLevel {
107  kLogLevelSevere = 1,
108  kLogLevelInformation,
109  kLogLevelExtended,
110  kLogLevelDebug
111  };
112 
115 
116  kD2HBegin = 0,
149  kH2DBegin = 200,
183  kN2DBegin = 400,
190  kD2NBegin = 600,
198  kC2DBegin = 800,
406  kD2CBegin = 1000,
539  kC2HBegin = 1200,
563  kH2CBegin = 1400,
581  };
582 
585  kLoginAdmin = 0x00,
590  };
591 
598  };
599 
614  MCLIENTLIB_API MUSTERERR InitializeLibrary(const char* module);
615 
618  MCLIENTLIB_API void ShutdownLibrary();
619 
623  MCLIENTLIB_API std::string GetLibraryPath();
624 
628  MCLIENTLIB_API int GetPlatform();
629 
633  MCLIENTLIB_API void LoadTemplates(const char* templatesPath);
634 
638  MCLIENTLIB_API MUSTERCLIENT* InitializeClientSession(void);
639 
643  MCLIENTLIB_API void ShutdownClientSession(MUSTERCLIENT* m);
644 
649  MCLIENTLIB_API void SetClientSessionAsync(MUSTERCLIENT* m, bool state);
650 
659  MCLIENTLIB_API MUSTERERR Connect(MUSTERCLIENT* m,const char* clientAddress, int clientPort,long maxSocketReadBytes = 65000000,
660  long maxSocketWriteBytes = 65000000);
661 
666  MCLIENTLIB_API MUSTERERR Disconnect(MUSTERCLIENT* m);
667 
672  MCLIENTLIB_API MUSTERERR MNetTask(MUSTERCLIENT* m);
673 
682  MCLIENTLIB_API MUSTERERR MNetSendMessage(MUSTERCLIENT* m,int message, int actionId,const char* parameters = 0, bool waitForCompletion = true);
683 
690  MCLIENTLIB_API MUSTERERR MNetWaitForMessage(MUSTERCLIENT* m,int message, int actionId = 0);
691 
699  MCLIENTLIB_API MUSTERERR MNetWaitForMessages(MUSTERCLIENT* m,int messages[], int messagesCount, int actionId = 0);
700 
706  MCLIENTLIB_API MUSTERERR MNetWaitForActionCompletation(MUSTERCLIENT* m, int actionId);
707 
712  MCLIENTLIB_API MUSTERERR MNetGetNextMessage(MUSTERCLIENT* m);
713 
718  MCLIENTLIB_API int MNetGetCurrentMessage(MUSTERCLIENT* m);
719 
724  MCLIENTLIB_API int MNetGetCurrentMessageActionId(MUSTERCLIENT* m);
725 
730  MCLIENTLIB_API std::vector<std::string> MNetGetCurrentMessageParameters(MUSTERCLIENT* m);
731 
736  MCLIENTLIB_API char* MNetGetCurrentMessageData(MUSTERCLIENT* m);
737 
743  MCLIENTLIB_API MUSTERERR Authenticate(MUSTERCLIENT*m, const char* password);
744 
750  MCLIENTLIB_API MUSTERERR GetNodeConfiguration(MUSTERCLIENT* m, MNodeConfiguration& configurationObject);
751 
757  MCLIENTLIB_API MUSTERERR SendNodeConfiguration(MUSTERCLIENT* m, MNodeConfiguration& configurationObject);
758 
764  MCLIENTLIB_API MUSTERERR GetActivityLogs(MUSTERCLIENT*m, std::vector<std::string>& logs);
765 
772  MCLIENTLIB_API MUSTERERR GetActivityLogContent(MUSTERCLIENT*m, const char* filename,MStringRef& out);
773 
779  MCLIENTLIB_API MUSTERERR RemoveActivityLog(MUSTERCLIENT*m, const char* filename);
780 
786  MCLIENTLIB_API MUSTERERR GetProcessesLogs(MUSTERCLIENT*m, std::vector<std::string>& logs);
787 
794  MCLIENTLIB_API MUSTERERR GetProcessesLogContent(MUSTERCLIENT* m, const char* filename,MStringRef& out);
795 
801  MCLIENTLIB_API MUSTERERR RemoveProcessesLog(MUSTERCLIENT* m, const char* filename);
802 
806  MCLIENTLIB_API MUSTER* InitializeSession(void);
807 
811  MCLIENTLIB_API void ShutdownSession(MUSTER* m);
812 
817  MCLIENTLIB_API void SetSessionAsync(MUSTER* m, bool state);
818 
827  MCLIENTLIB_API MUSTERERR Connect(MUSTER* m,const char* dispatcherAddress, int dispatcherPort,long maxSocketReadBytes = 65000000,
828  long maxSocketWriteBytes = 65000000);
829 
834  MCLIENTLIB_API MUSTERERR Disconnect(MUSTER* m);
835 
840  MCLIENTLIB_API MUSTERERR MNetTask(MUSTER* m);
841 
850  MCLIENTLIB_API MUSTERERR MNetSendMessage(MUSTER* m,int message, int actionId,const char* parameters = 0, bool waitForCompletion = true);
851 
858  MCLIENTLIB_API MUSTERERR MNetWaitForMessage(MUSTER* m,int message, int actionId = 0);
859 
867  MCLIENTLIB_API MUSTERERR MNetWaitForMessages(MUSTER* m,int messages[], int messagesCount, int actionId = 0);
868 
874  MCLIENTLIB_API MUSTERERR MNetWaitForActionCompletation(MUSTER* m, int actionId);
875 
880  MCLIENTLIB_API MUSTERERR MNetGetNextMessage(MUSTER* m);
881 
886  MCLIENTLIB_API int MNetGetCurrentMessage(MUSTER* m);
887 
892  MCLIENTLIB_API int MNetGetCurrentMessageActionId(MUSTER* m);
893 
898  MCLIENTLIB_API std::vector<std::string> MNetGetCurrentMessageParameters(MUSTER* m);
899 
904  MCLIENTLIB_API char* MNetGetCurrentMessageData(MUSTER* m);
905 
910  MCLIENTLIB_API MServerStatus GetServerStatus(MUSTER* m);
911 
916  MCLIENTLIB_API MUSTERAUTH GetAuthenticationStatus(MUSTER* m);
917 
925  MCLIENTLIB_API MUSTERERR GetJobs(MUSTER*m, int filterMask, std::vector<MJob>& jobs, bool queryArchived);
926 
933  MCLIENTLIB_API MUSTERERR GetNodes(MUSTER*m, int filterMask, std::vector<MNode>& nodes);
934 
941  MCLIENTLIB_API MUSTERERR GetLogs(MUSTER*m, int filterMask, std::vector<MLog>& logs);
942 
950  MCLIENTLIB_API MUSTERERR GetChunks(MUSTER*m, long jobId, int filterMask, std::vector<MChunk>& chunks);
951 
958  MCLIENTLIB_API MUSTERERR GetJob(MUSTER*m, MJob& job, long jobId);
959 
966  MCLIENTLIB_API MUSTERERR GetNode(MUSTER*m,MNode& node, long nodeId);
967 
975  MCLIENTLIB_API MUSTERERR GetChunk(MUSTER*m, MChunk& chunk, long jobId, long chunkId);
976 
984  MCLIENTLIB_API MUSTERERR Authenticate(MUSTER* m, const char* username, const char* password, bool skipDirectoryServer = false);
985 
990  MCLIENTLIB_API MUSTERERR AcquireServerStatus(MUSTER* m);
991 
996  MCLIENTLIB_API MUSTERERR SynchronizeTemplates(MUSTER* m);
997 
1003  MCLIENTLIB_API MUSTERERR GetDispatcherConfiguration(MUSTER* m, MDispatcherConfiguration& configurationObject);
1004 
1010  MCLIENTLIB_API MUSTERERR SendDispatcherConfiguration(MUSTER* m, MDispatcherConfiguration& configurationObject);
1011 
1017  MCLIENTLIB_API MUSTERERR GetDispatcherLDAPConfiguration(MUSTER* m, MDispatcherConfigurationLDAP& configurationObject);
1018 
1024  MCLIENTLIB_API MUSTERERR SendDispatcherLDAPConfiguration(MUSTER* m, MDispatcherConfigurationLDAP& configurationObject);
1025 
1031  MCLIENTLIB_API MUSTERERR GetPools(MUSTER*m, MPools& pools);
1032 
1038  MCLIENTLIB_API MUSTERERR SetPools(MUSTER*m, MPools& pools);
1039 
1046  MCLIENTLIB_API MUSTERERR GetAccounts(MUSTER* m , std::vector<MUser>& users, std::vector<MGroup>& groups);
1047 
1054  MCLIENTLIB_API MUSTERERR SendAccounts(MUSTER* m, std::vector<MUser>& users, std::vector<MGroup>& groups);
1055 
1061  MCLIENTLIB_API MUSTERERR AddUser(MUSTER* m, MUser& user);
1062 
1069  MCLIENTLIB_API MUSTERERR GetUser(MUSTER* m , const char* userName,MUser& user );
1070 
1076  MCLIENTLIB_API MUSTERERR ConfigureUser(MUSTER* m, MUser& user);
1077 
1083  MCLIENTLIB_API MUSTERERR RemoveUser(MUSTER* m, const char* userName);
1084 
1090  MCLIENTLIB_API MUSTERERR AddGroup(MUSTER* m, MGroup& group);
1091 
1098  MCLIENTLIB_API MUSTERERR GetGroup(MUSTER* m , const char* groupName,MGroup& group );
1099 
1105  MCLIENTLIB_API MUSTERERR ConfigureGroup(MUSTER* m, MGroup& group);
1106 
1112  MCLIENTLIB_API MUSTERERR RemoveGroup(MUSTER* m, const char* groupName);
1113 
1119  MCLIENTLIB_API MUSTERERR GetRepositories(MUSTER*m, std::vector<MRepository>& repositories);
1120 
1126  MCLIENTLIB_API MUSTERERR SetRepositories(MUSTER*m, std::vector<MRepository>& repositories);
1127 
1133  MCLIENTLIB_API MUSTERERR GetActivityLogs(MUSTER*m, std::vector<std::string>& logs);
1134 
1141  MCLIENTLIB_API MUSTERERR GetActivityLogContent(MUSTER*m, const char* filename,MStringRef& out);
1142 
1148  MCLIENTLIB_API MUSTERERR RemoveActivityLog(MUSTER*m, const char* filename);
1149 
1155  MCLIENTLIB_API MUSTERERR GetActionLogs(MUSTER*m, std::vector<std::string>& logs);
1156 
1163  MCLIENTLIB_API MUSTERERR GetActionLogContent(MUSTER*m, const char* filename,MStringRef& out);
1164 
1170  MCLIENTLIB_API MUSTERERR RemoveActionLog(MUSTER*m, const char* filename);
1171 
1178  MCLIENTLIB_API MUSTERERR GetBackupBounds(MUSTER*m, MBackupQueryBoundaries& boundaries);
1179 
1186  MCLIENTLIB_API MUSTERERR GetBackupJobs(MUSTER*m, MBackupQuery& query, std::vector<MBackupJob>& jobs);
1187 
1193  MCLIENTLIB_API MUSTERERR GetHistoryBounds(MUSTER*m, MSamplesBoundaries& boundaries);
1194 
1202  MCLIENTLIB_API MUSTERERR GetStatisticsHistory(MUSTER*m, long startingTime, long endingTime, std::vector<MStatisticsSample>& samples);
1203 
1210  MCLIENTLIB_API MUSTERERR ClearStatisticsHistory(MUSTER*m, long startingTime, long endingTime);
1211 
1221  MCLIENTLIB_API MUSTERERR GetJobsHistory(MUSTER*m, long startingTime, long endingTime, const char* filterField, const char* filter, std::vector<MHistoryChunk>& samples);
1222 
1229  MCLIENTLIB_API MUSTERERR ClearJobsHistory(MUSTER*m, long startingTime, long endingTime);
1230 
1237  MCLIENTLIB_API MUSTERERR GetJobHistory(MUSTER*m, long jobId, std::vector<MHistoryChunk>& samples);
1238 
1244  MCLIENTLIB_API MUSTERERR GetStatistics(MUSTER*m, MDispatcherStatistics& statistics);
1245 
1250  MCLIENTLIB_API MUSTERERR ActionWaitDbFlush(MUSTER* m);
1251 
1256  MCLIENTLIB_API MUSTERERR ActionForceLDAPUpdate(MUSTER* m);
1257 
1263  MCLIENTLIB_API MUSTERERR ActionImportQueue(MUSTER* m, MStringRef& queueInput);
1264 
1270  MCLIENTLIB_API MUSTERERR ActionExportQueue(MUSTER* m, MStringRef& queueOutput);
1271 
1276  MCLIENTLIB_API MUSTERERR ActionSoftRestart(MUSTER* m);
1277 
1283  MCLIENTLIB_API MUSTERERR ActionRunPython(MUSTER* m, const char* pythonCode);
1284 
1290  MCLIENTLIB_API MUSTERERR ActionRunPythonFile(MUSTER* m, const char* pythonFilePath);
1291 
1292 
1297  MCLIENTLIB_API MUSTERERR ActionResetCounters(MUSTER* m);
1298 
1303  MCLIENTLIB_API MUSTERERR ActionChangeStatus(MUSTER* m);
1304 
1311  MCLIENTLIB_API MUSTERERR ActionChangePassword(MUSTER* m,const char* oldPassword, const char* newPassword);
1312 
1318  MCLIENTLIB_API MUSTERERR ActionSendJob(MUSTER* m, MJob& job);
1319 
1325  MCLIENTLIB_API MUSTERERR ActionEditJob(MUSTER* m, MJob& job);
1326 
1332  MCLIENTLIB_API MUSTERERR ActionCreateFolder(MUSTER* m, MJob& job);
1333 
1339  MCLIENTLIB_API MUSTERERR NodeActionSoftRestart(MUSTER* m, long nodeId);
1340 
1346  MCLIENTLIB_API MUSTERERR NodeActionPause(MUSTER* m, long nodeId);
1347 
1353  MCLIENTLIB_API MUSTERERR NodeActionResume(MUSTER* m, long nodeId);
1354 
1361  MCLIENTLIB_API MUSTERERR NodeActionTimedPause(MUSTER* m, long nodeId, unsigned long long time);
1362 
1369  MCLIENTLIB_API MUSTERERR NodeActionTimedResume(MUSTER* m, long nodeId, unsigned long long time);
1370 
1376  MCLIENTLIB_API MUSTERERR NodeActionKillAndGo(MUSTER* m, long nodeId);
1377 
1383  MCLIENTLIB_API MUSTERERR NodeActionKillAndRedo(MUSTER* m, long nodeId);
1384 
1390  MCLIENTLIB_API MUSTERERR NodeActionKillAndPause(MUSTER* m, long nodeId);
1391 
1397  MCLIENTLIB_API MUSTERERR NodeActionRemove(MUSTER* m, long nodeId);
1398 
1399 
1406  MCLIENTLIB_API MUSTERERR NodeActionChangeNotes(MUSTER* m, long nodeId, const char* notes);
1407 
1414  MCLIENTLIB_API MUSTERERR NodeActionRunPython(MUSTER* m, long nodeId, const char* pythonCode);
1415 
1422  MCLIENTLIB_API MUSTERERR NodeActionRunPythonFile(MUSTER* m, long nodeId, const char* pythonFilePath);
1423 
1431  MCLIENTLIB_API MUSTERERR NodeActionStartReserv(MUSTER* m, long nodeId, long reservId, const std::string& reservVersion);
1432 
1440  MCLIENTLIB_API MUSTERERR NodeActionTerminateReserv(MUSTER* m, long nodeId, long reservId, const std::string& reservVersion);
1441 
1447  MCLIENTLIB_API MUSTERERR NodeActionSoftRestart(MUSTER* m, std::vector<long> id);
1448 
1454  MCLIENTLIB_API MUSTERERR NodeActionPause(MUSTER* m, std::vector<long> id);
1455 
1461  MCLIENTLIB_API MUSTERERR NodeActionResume(MUSTER* m, std::vector<long> id);
1462 
1469  MCLIENTLIB_API MUSTERERR NodeActionTimedPause(MUSTER* m, std::vector<long> id, unsigned long long time);
1470 
1477  MCLIENTLIB_API MUSTERERR NodeActionTimedResume(MUSTER* m, std::vector<long> id, unsigned long long time);
1478 
1484  MCLIENTLIB_API MUSTERERR NodeActionKillAndGo(MUSTER* m, std::vector<long> id);
1485 
1491  MCLIENTLIB_API MUSTERERR NodeActionKillAndRedo(MUSTER* m, std::vector<long> id);
1492 
1498  MCLIENTLIB_API MUSTERERR NodeActionKillAndPause(MUSTER* m, std::vector<long> id);
1499 
1505  MCLIENTLIB_API MUSTERERR NodeActionRemove(MUSTER* m, std::vector<long> id);
1506 
1513  MCLIENTLIB_API MUSTERERR NodeActionChangeNotes(MUSTER* m, std::vector<long> id, const char* notes);
1514 
1521  MCLIENTLIB_API MUSTERERR NodeActionRunPython(MUSTER* m, std::vector<long> id, const char* pythonCode);
1522 
1529  MCLIENTLIB_API MUSTERERR NodeActionRunPythonFile(MUSTER* m, std::vector<long> id, const char* pythonFilePath);
1530 
1538  MCLIENTLIB_API MUSTERERR NodeActionStartReserv(MUSTER* m, std::vector<long> id, long reservId, const std::string& reservVersion);
1539 
1547  MCLIENTLIB_API MUSTERERR NodeActionTerminateReserv(MUSTER* m, std::vector<long> id, long reservId, const std::string& reservVersion);
1548 
1554  MCLIENTLIB_API MUSTERERR JobActionRestartFrameCheck(MUSTER* m, long jobId);
1555 
1561  MCLIENTLIB_API MUSTERERR JobActionKillAndPause(MUSTER* m, long jobId);
1562 
1568  MCLIENTLIB_API MUSTERERR JobActionKillAndRedo(MUSTER* m, long jobId);
1569 
1575  MCLIENTLIB_API MUSTERERR JobActionKillAndGoOn(MUSTER* m, long jobId);
1576 
1582  MCLIENTLIB_API MUSTERERR JobActionUnlock(MUSTER* m, long jobId);
1583 
1589  MCLIENTLIB_API MUSTERERR JobActionLock(MUSTER* m, long jobId);
1590 
1596  MCLIENTLIB_API MUSTERERR JobActionArchive(MUSTER* m, long jobId);
1597 
1603  MCLIENTLIB_API MUSTERERR JobActionUnarchive(MUSTER* m, long jobId);
1604 
1610  MCLIENTLIB_API MUSTERERR JobActionPause(MUSTER* m, long jobId);
1611 
1617  MCLIENTLIB_API MUSTERERR JobActionResume(MUSTER* m, long jobId);
1618 
1624  MCLIENTLIB_API MUSTERERR JobActionReinit(MUSTER* m, long jobId);
1625 
1632  MCLIENTLIB_API MUSTERERR JobActionRename(MUSTER* m, long jobId,const char* name);
1633 
1640  MCLIENTLIB_API MUSTERERR JobActionSetProject(MUSTER* m, long jobId,const char* groupName);
1641 
1648  MCLIENTLIB_API MUSTERERR JobActionSetDepartment(MUSTER* m, long jobId,const char* departmentName);
1649 
1656  MCLIENTLIB_API MUSTERERR JobActionSetCamera(MUSTER* m, long jobId,const char* cameraName);
1657 
1664  MCLIENTLIB_API MUSTERERR JobActionSetShot(MUSTER* m, long jobId,const char* shotName);
1665 
1672  MCLIENTLIB_API MUSTERERR JobActionSetSequence(MUSTER* m, long jobId,const char* sequenceName);
1673 
1680  MCLIENTLIB_API MUSTERERR JobActionSetOwner(MUSTER* m, long jobId,const char* ownerName);
1681 
1688  MCLIENTLIB_API MUSTERERR JobActionSetPriority(MUSTER* m, long jobId,int priority);
1689 
1696  MCLIENTLIB_API MUSTERERR JobActionSetEmergencyQueue(MUSTER* m, long jobId, bool state);
1697 
1698 
1705  MCLIENTLIB_API MUSTERERR JobActionSetPools(MUSTER* m, long jobId,const char* pools);
1706 
1713  MCLIENTLIB_API MUSTERERR JobActionSetExcludedPools(MUSTER* m, long jobId,const char* pools);
1714 
1721  MCLIENTLIB_API MUSTERERR JobActionSetMaximumNodes(MUSTER* m, long jobId,int maximumNodes);
1722 
1729  MCLIENTLIB_API MUSTERERR JobActionSetParent(MUSTER* m, long jobId,long parentId);
1730 
1738  MCLIENTLIB_API MUSTERERR JobActionSetTemplate(MUSTER* m, long jobId,int templateId,const std::string& version);
1739 
1746  MCLIENTLIB_API MUSTERERR JobActionSetDepends(MUSTER* m, long jobId,const char* depends);
1747 
1754  MCLIENTLIB_API MUSTERERR JobActionSetDependMode(MUSTER* m, long jobId,int dependMode);
1755 
1762  MCLIENTLIB_API MUSTERERR JobActionSetDependLinkMode(MUSTER* m, long jobId, int dependLinkMode);
1763 
1770  MCLIENTLIB_API MUSTERERR JobActionSetStartsOn(MUSTER* m, long jobId,long long int time);
1771 
1778  MCLIENTLIB_API MUSTERERR JobActionSetResumeOn(MUSTER* m, long jobId,long long int time);
1779 
1786  MCLIENTLIB_API MUSTERERR JobActionSetPauseOn(MUSTER* m, long jobId,long long int time);
1787 
1794  MCLIENTLIB_API MUSTERERR JobActionSetNotes(MUSTER* m, long jobId,const char* notes);
1795 
1801  MCLIENTLIB_API MUSTERERR JobActionDelete(MUSTER* m, long jobId);
1802 
1812  MCLIENTLIB_API MUSTERERR JobActionSetAttribute(MUSTER* m, long jobId,const char* attributeName, bool enable, const char* attributeValue);
1813 
1821  MCLIENTLIB_API MUSTERERR JobActionRemoveAttribute(MUSTER* m, long jobId, const char* attributeName);
1822 
1831  MCLIENTLIB_API MUSTERERR JobActionSetChunkTimeoutOverride(MUSTER* m, long jobId,bool enable,int timeout);
1832 
1841  MCLIENTLIB_API MUSTERERR JobActionSetChunkMaximumRequeueOverride(MUSTER* m, long jobId,bool enable,int maximumRequeue);
1842 
1851  MCLIENTLIB_API MUSTERERR JobActionSetOverrideMailNotificationsAtJobLevel(MUSTER* m, long jobId,bool enable,int notificationType);
1852 
1861  MCLIENTLIB_API MUSTERERR JobActionSetOverrideMailNotificationsAtChunkLevel(MUSTER* m, long jobId,bool enable,int notificationType);
1862 
1871  MCLIENTLIB_API MUSTERERR JobActionSetOverrideNotificatorNotificationsAtJobLevel(MUSTER* m, long jobId, bool enable, int notificationType);
1872 
1881  MCLIENTLIB_API MUSTERERR JobActionSetOverrideNotificatorNotificationsAtChunkLevel(MUSTER* m, long jobId, bool enable, int notificationType);
1882 
1891  MCLIENTLIB_API MUSTERERR JobActionSetOverrideMobileNotificationsAtJobLevel(MUSTER* m, long jobId, bool enable, int notificationType);
1892 
1901  MCLIENTLIB_API MUSTERERR JobActionSetOverrideMobileNotificationsAtChunkLevel(MUSTER* m, long jobId, bool enable, int notificationType);
1902 
1911  MCLIENTLIB_API MUSTERERR JobActionSetOverrideStartMailNotificationsAtJobLevel(MUSTER* m, long jobId, bool enable, int notificationType);
1912 
1921  MCLIENTLIB_API MUSTERERR JobActionSetOverrideStartMailNotificationsAtChunkLevel(MUSTER* m, long jobId, bool enable, int notificationType);
1922 
1931  MCLIENTLIB_API MUSTERERR JobActionSetOverrideStartNotificatorNotificationsAtJobLevel(MUSTER* m, long jobId, bool enable, int notificationType);
1932 
1941  MCLIENTLIB_API MUSTERERR JobActionSetOverrideStartNotificatorNotificationsAtChunkLevel(MUSTER* m, long jobId, bool enable, int notificationType);
1942 
1951  MCLIENTLIB_API MUSTERERR JobActionSetOverrideStartMobileNotificationsAtJobLevel(MUSTER* m, long jobId, bool enable, int notificationType);
1952 
1961  MCLIENTLIB_API MUSTERERR JobActionSetOverrideStartMobileNotificationsAtChunkLevel(MUSTER* m, long jobId, bool enable, int notificationType);
1962 
1971  MCLIENTLIB_API MUSTERERR JobActionSetMinimumLogicalUnits(MUSTER* m, long jobId,bool enable,int minimumLogicalUnits);
1972 
1980  MCLIENTLIB_API MUSTERERR JobActionSetMinimumCores(MUSTER* m, long jobId,bool enable,int minimumCores);
1981 
1989  MCLIENTLIB_API MUSTERERR JobActionSetMinimumPhysicalUnits(MUSTER* m, long jobId,bool enable,int minimumPhysicalUnits);
1990 
1998  MCLIENTLIB_API MUSTERERR JobActionSetBorrowInstances(MUSTER* m, long jobId, bool enable, int borrowInstances);
1999 
2007  MCLIENTLIB_API MUSTERERR JobActionSetMinimumPhysicalGPUsUnits(MUSTER* m, long jobId, bool enable, int minimumPhysicalGPUsUnits);
2008 
2016  MCLIENTLIB_API MUSTERERR JobActionSetMinimumCoresSpeed(MUSTER* m, long jobId,bool enable,double minimumCoreSpeed);
2017 
2025  MCLIENTLIB_API MUSTERERR JobActionSetMinimumRamAmount(MUSTER* m, long jobId,bool enable,double minimumRamAmount);
2026 
2034  MCLIENTLIB_API MUSTERERR JobActionSetMinimumDiskSpaceAmount(MUSTER* m, long jobId,bool enable,double minimumDiskSpace);
2035 
2043  MCLIENTLIB_API MUSTERERR JobActionSetProcessValidExitCodes(MUSTER* m, long jobId,bool enable,const char* validExitCodes);
2044 
2051  MCLIENTLIB_API MUSTERERR JobActionSetExitCodesErrorCheckType(MUSTER* m, long jobId, MJob::kErrorChecksType type);
2052 
2059  MCLIENTLIB_API MUSTERERR JobActionSetLogsErrorCheckType(MUSTER* m, long jobId, MJob::kErrorChecksType type);
2060 
2067  MCLIENTLIB_API MUSTERERR JobActionSetLogsParsingRules(MUSTER* m, long jobId,const std::vector<MClientLib::MTextFileRule>& rules);
2068 
2076  MCLIENTLIB_API MUSTERERR JobActionSetProcessWarningExitCodes(MUSTER* m, long jobId,bool enable,const char* warningExitCodes);
2077 
2085  MCLIENTLIB_API MUSTERERR JobActionSetProcessErrorExitCodes(MUSTER* m, long jobId,bool enable,const char* errorExitCodes);
2086 
2094  MCLIENTLIB_API MUSTERERR JobActionRestore(MUSTER* m, long jobId, int jobRestoreActionMode, int jobRestoreReparentId);
2095 
2102  MCLIENTLIB_API MUSTERERR JobActionBackup(MUSTER* m, long jobId, int jobBackupOverwriteMode);
2103 
2110  MCLIENTLIB_API MUSTERERR JobActionBackupAndDelete(MUSTER* m, long jobId, int jobBackupOverwriteMode);
2111 
2112 
2118  MCLIENTLIB_API MUSTERERR JobBackupRemove(MUSTER* m, long jobId);
2119 
2125  MCLIENTLIB_API MUSTERERR JobActionRestartFrameCheck(MUSTER* m, std::vector<long> id);
2126 
2132  MCLIENTLIB_API MUSTERERR JobActionKillAndPause(MUSTER* m, std::vector<long> id);
2133 
2139  MCLIENTLIB_API MUSTERERR JobActionKillAndRedo(MUSTER* m, std::vector<long> id);
2140 
2146  MCLIENTLIB_API MUSTERERR JobActionKillAndGoOn(MUSTER* m, std::vector<long> id);
2147 
2153  MCLIENTLIB_API MUSTERERR JobActionUnlock(MUSTER* m, std::vector<long> id);
2154 
2160  MCLIENTLIB_API MUSTERERR JobActionLock(MUSTER* m, std::vector<long> id);
2161 
2167  MCLIENTLIB_API MUSTERERR JobActionArchive(MUSTER* m, std::vector<long> id);
2168 
2174  MCLIENTLIB_API MUSTERERR JobActionUnarchive(MUSTER* m, std::vector<long> id);
2175 
2181  MCLIENTLIB_API MUSTERERR JobActionPause(MUSTER* m, std::vector<long> id);
2182 
2188  MCLIENTLIB_API MUSTERERR JobActionResume(MUSTER* m, std::vector<long> id);
2189 
2195  MCLIENTLIB_API MUSTERERR JobActionReinit(MUSTER* m, std::vector<long> id);
2196 
2203  MCLIENTLIB_API MUSTERERR JobActionRename(MUSTER* m, std::vector<long> id, const char* name);
2204 
2211  MCLIENTLIB_API MUSTERERR JobActionSetProject(MUSTER* m, std::vector<long> id,const char* groupName);
2212 
2219  MCLIENTLIB_API MUSTERERR JobActionSetDepartment(MUSTER* m, std::vector<long> id,const char* departmentName);
2220 
2221 
2228  MCLIENTLIB_API MUSTERERR JobActionSetCamera(MUSTER* m, std::vector<long> id,const char* cameraName);
2229 
2236  MCLIENTLIB_API MUSTERERR JobActionSetSequence(MUSTER* m, std::vector<long> id,const char* sequenceName);
2237 
2244  MCLIENTLIB_API MUSTERERR JobActionSetShot(MUSTER* m, std::vector<long> id,const char* shotName);
2245 
2252  MCLIENTLIB_API MUSTERERR JobActionSetOwner(MUSTER* m, std::vector<long> id,const char* ownerName);
2253 
2260  MCLIENTLIB_API MUSTERERR JobActionSetPriority(MUSTER* m, std::vector<long> id,int priority);
2261 
2268  MCLIENTLIB_API MUSTERERR JobActionSetEmergencyQueue(MUSTER* m, std::vector<long> id, bool enabled);
2269 
2276  MCLIENTLIB_API MUSTERERR JobActionSetPools(MUSTER* m,std::vector<long> id,const char* pools);
2277 
2284  MCLIENTLIB_API MUSTERERR JobActionSetExcludedPools(MUSTER* m, std::vector<long> id,const char* pools);
2285 
2292  MCLIENTLIB_API MUSTERERR JobActionSetMaximumNodes(MUSTER* m,std::vector<long> id,int maximumNodes);
2293 
2300  MCLIENTLIB_API MUSTERERR JobActionSetParent(MUSTER* m, std::vector<long> id,long parentId);
2301 
2309  MCLIENTLIB_API MUSTERERR JobActionSetTemplate(MUSTER* m, std::vector<long> id,int templateId, const std::string& version);
2310 
2317  MCLIENTLIB_API MUSTERERR JobActionSetDepends(MUSTER* m, std::vector<long> id,const char* depends);
2318 
2325  MCLIENTLIB_API MUSTERERR JobActionSetDependMode(MUSTER* m, std::vector<long> id,int dependMode);
2326 
2333  MCLIENTLIB_API MUSTERERR JobActionSetDependLinkMode(MUSTER* m, std::vector<long> id, int dependLinkMode);
2334 
2341  MCLIENTLIB_API MUSTERERR JobActionSetStartsOn(MUSTER* m, std::vector<long> id,long long int time);
2342 
2349  MCLIENTLIB_API MUSTERERR JobActionSetResumeOn(MUSTER* m,std::vector<long> id,long long int time);
2350 
2357  MCLIENTLIB_API MUSTERERR JobActionSetPauseOn(MUSTER* m,std::vector<long> id,long long int time);
2358 
2365  MCLIENTLIB_API MUSTERERR JobActionSetNotes(MUSTER* m, std::vector<long> id,const char* notes);
2366 
2372  MCLIENTLIB_API MUSTERERR JobActionDelete(MUSTER* m, std::vector<long> id);
2373 
2383  MCLIENTLIB_API MUSTERERR JobActionSetAttribute(MUSTER* m, std::vector<long> id,const char* attributeName, bool enable, const char* attributeValue);
2384 
2392  MCLIENTLIB_API MUSTERERR JobActionRemoveAttribute(MUSTER* m, std::vector<long> id, const char* attributeName);
2393 
2402  MCLIENTLIB_API MUSTERERR JobActionSetChunkTimeoutOverride(MUSTER* m, std::vector<long> id,bool enable,int timeout);
2403 
2412  MCLIENTLIB_API MUSTERERR JobActionSetChunkMaximumRequeueOverride(MUSTER* m,std::vector<long> id,bool enable,int maximumRequeue);
2413 
2422  MCLIENTLIB_API MUSTERERR JobActionSetOverrideMailNotificationsAtJobLevel(MUSTER* m,std::vector<long> id,bool enable,int notificationType);
2423 
2432  MCLIENTLIB_API MUSTERERR JobActionSetOverrideMailNotificationsAtChunkLevel(MUSTER* m, std::vector<long> id,bool enable,int notificationType);
2433 
2442  MCLIENTLIB_API MUSTERERR JobActionSetOverrideNotificatorNotificationsAtJobLevel(MUSTER* m, std::vector<long> id, bool enable, int notificationType);
2443 
2452  MCLIENTLIB_API MUSTERERR JobActionSetOverrideNotificatorNotificationsAtChunkLevel(MUSTER* m, std::vector<long> id, bool enable, int notificationType);
2453 
2462  MCLIENTLIB_API MUSTERERR JobActionSetOverrideMobileNotificationsAtJobLevel(MUSTER* m, std::vector<long> id, bool enable, int notificationType);
2463 
2472  MCLIENTLIB_API MUSTERERR JobActionSetOverrideMobileNotificationsAtChunkLevel(MUSTER* m, std::vector<long> id, bool enable, int notificationType);
2473 
2482  MCLIENTLIB_API MUSTERERR JobActionSetOverrideStartMailNotificationsAtJobLevel(MUSTER* m, std::vector<long> id, bool enable, int notificationType);
2483 
2492  MCLIENTLIB_API MUSTERERR JobActionSetOverrideStartMailNotificationsAtChunkLevel(MUSTER* m, std::vector<long> id, bool enable, int notificationType);
2493 
2502  MCLIENTLIB_API MUSTERERR JobActionSetOverrideStartNotificatorNotificationsAtJobLevel(MUSTER* m, std::vector<long> id, bool enable, int notificationType);
2503 
2512  MCLIENTLIB_API MUSTERERR JobActionSetOverrideStartNotificatorNotificationsAtChunkLevel(MUSTER* m, std::vector<long> id, bool enable, int notificationType);
2513 
2522  MCLIENTLIB_API MUSTERERR JobActionSetOverrideStartMobileNotificationsAtJobLevel(MUSTER* m, std::vector<long> id, bool enable, int notificationType);
2523 
2532  MCLIENTLIB_API MUSTERERR JobActionSetOverrideStartMobileNotificationsAtChunkLevel(MUSTER* m, std::vector<long> id, bool enable, int notificationType);
2533 
2542  MCLIENTLIB_API MUSTERERR JobActionSetMinimumLogicalUnits(MUSTER* m, std::vector<long> id,bool enable,int minimumLogicalUnits);
2543 
2552  MCLIENTLIB_API MUSTERERR JobActionSetMinimumCores(MUSTER* m, std::vector<long> id,bool enable,int minimumCores);
2553 
2562  MCLIENTLIB_API MUSTERERR JobActionSetMinimumPhysicalUnits(MUSTER* m, std::vector<long> id,bool enable,int minimumPhysicalUnits);
2563 
2572  MCLIENTLIB_API MUSTERERR JobActionSetBorrowInstances(MUSTER* m, std::vector<long> id, bool enable, int borrowInstances);
2573 
2582  MCLIENTLIB_API MUSTERERR JobActionSetMinimumPhysicalGPUsUnits(MUSTER* m, std::vector<long> id, bool enable, int minimumPhysicalGPUsUnits);
2583 
2592  MCLIENTLIB_API MUSTERERR JobActionSetMinimumCoresSpeed(MUSTER* m, std::vector<long> id,bool enable,double minimumCoreSpeed);
2593 
2602  MCLIENTLIB_API MUSTERERR JobActionSetMinimumRamAmount(MUSTER* m, std::vector<long> id,bool enable,double minimumRamAmount);
2603 
2612  MCLIENTLIB_API MUSTERERR JobActionSetMinimumDiskSpaceAmount(MUSTER* m, std::vector<long> id,bool enable,double minimumDiskSpace);
2613 
2621  MCLIENTLIB_API MUSTERERR JobActionSetExitCodesErrorCheckType(MUSTER* m, std::vector<long> id, MJob::kErrorChecksType type);
2622 
2630  MCLIENTLIB_API MUSTERERR JobActionSetLogsErrorCheckType(MUSTER* m, std::vector<long> id, MJob::kErrorChecksType type);
2631 
2639  MCLIENTLIB_API MUSTERERR JobActionSetLogsParsingRules(MUSTER* m, std::vector<long> id, const std::vector<MClientLib::MTextFileRule>& rules);
2640 
2649  MCLIENTLIB_API MUSTERERR JobActionSetProcessValidExitCodes(MUSTER* m, std::vector<long> id,bool enable,const char* validExitCodes);
2650 
2659  MCLIENTLIB_API MUSTERERR JobActionSetProcessWarningExitCodes(MUSTER* m, std::vector<long> id,bool enable,const char* warningExitCodes);
2660 
2669  MCLIENTLIB_API MUSTERERR JobActionSetProcessErrorExitCodes(MUSTER* m, std::vector<long> id,bool enable,const char* errorExitCodes);
2670 
2679  MCLIENTLIB_API MUSTERERR JobActionRestore(MUSTER* m, std::vector<long> ids, int jobRestoreActionMode, int jobRestoreReparentId);
2680 
2688  MCLIENTLIB_API MUSTERERR JobActionBackup(MUSTER* m, std::vector<long> ids, int jobBackupOverwriteMode);
2689 
2697  MCLIENTLIB_API MUSTERERR JobActionBackupAndDelete(MUSTER* m, std::vector<long> ids, int jobBackupOverwriteMode);
2698 
2705  MCLIENTLIB_API MUSTERERR JobBackupRemove(MUSTER* m, std::vector<long> ids);
2706 
2714  MCLIENTLIB_API MUSTERERR ChunkActionSetOnHold(MUSTER* m,long jobId,long chunkId);
2715 
2723  MCLIENTLIB_API MUSTERERR ChunkActionResetRequeue(MUSTER* m,long jobId,long chunkId);
2724 
2732  MCLIENTLIB_API MUSTERERR ChunkActionSetCompleted(MUSTER* m,long jobId,long chunkId);
2733 
2741  MCLIENTLIB_API MUSTERERR ChunkActionResetRequeue(MUSTER* m,long jobId,std::vector<long> id);
2742 
2750  MCLIENTLIB_API MUSTERERR ChunkActionSetOnHold(MUSTER* m,long jobId,std::vector<long> id);
2751 
2759  MCLIENTLIB_API MUSTERERR ChunkActionSetCompleted(MUSTER* m,long jobId,std::vector<long> id);
2760 
2763 }
2764 
2765 
2766 #endif
MCLIENTLIB_API MUSTERERR SendAccounts(MUSTER *m, std::vector< MUser > &users, std::vector< MGroup > &groups)
MCLIENTLIB_API MUSTERERR JobActionSetBorrowInstances(MUSTER *m, std::vector< long > id, bool enable, int borrowInstances)
MCLIENTLIB_API MUSTERERR RemoveActivityLog(MUSTER *m, const char *filename)
MCLIENTLIB_API MUSTERERR GetActivityLogContent(MUSTER *m, const char *filename, MStringRef &out)
MCLIENTLIB_API MUSTERERR NodeActionKillAndRedo(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API MUSTERERR AddGroup(MUSTER *m, MGroup &group)
MCLIENTLIB_API MUSTERERR JobActionSetNotes(MUSTER *m, std::vector< long > id, const char *notes)
MCLIENTLIB_API MUSTERERR JobActionSetOverrideStartMailNotificationsAtChunkLevel(MUSTER *m, std::vector< long > id, bool enable, int notificationType)
MCLIENTLIB_API MUSTERERR GetNodes(MUSTER *m, int filterMask, std::vector< MNode > &nodes)
MCLIENTLIB_API MUSTERERR JobActionSetOverrideNotificatorNotificationsAtChunkLevel(MUSTER *m, std::vector< long > id, bool enable, int notificationType)
MCLIENTLIB_API MUSTERERR SetPools(MUSTER *m, MPools &pools)
MCLIENTLIB_API MUSTERERR ChunkActionResetRequeue(MUSTER *m, long jobId, std::vector< long > id)
MCLIENTLIB_API MUSTERERR JobActionSetTemplate(MUSTER *m, std::vector< long > id, int templateId, const std::string &version)
MCLIENTLIB_API MUSTERERR ChunkActionSetCompleted(MUSTER *m, long jobId, std::vector< long > id)
MCLIENTLIB_API MUSTERERR MNetGetNextMessage(MUSTER *m)
MCLIENTLIB_API MUSTERERR JobActionSetOverrideStartMobileNotificationsAtJobLevel(MUSTER *m, std::vector< long > id, bool enable, int notificationType)
MCLIENTLIB_API MUSTERERR NodeActionStartReserv(MUSTER *m, std::vector< long > id, long reservId, const std::string &reservVersion)
MCLIENTLIB_API MUSTERERR GetLogs(MUSTER *m, int filterMask, std::vector< MLog > &logs)
MCLIENTLIB_API MUSTERERR JobActionSetCamera(MUSTER *m, std::vector< long > id, const char *cameraName)
MCLIENTLIB_API MUSTERERR NodeActionSoftRestart(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API MUSTERCLIENT * InitializeClientSession(void)
MCLIENTLIB_API MUSTERERR MNetWaitForMessages(MUSTER *m, int messages[], int messagesCount, int actionId=0)
MCLIENTLIB_API MUSTERERR JobActionSetDependLinkMode(MUSTER *m, std::vector< long > id, int dependLinkMode)
MCLIENTLIB_API MUSTERERR RemoveUser(MUSTER *m, const char *userName)
MCLIENTLIB_API MUSTERERR JobActionLock(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API MUSTERERR NodeActionTimedPause(MUSTER *m, std::vector< long > id, unsigned long long time)
MCLIENTLIB_API MUSTERERR JobActionSetProcessWarningExitCodes(MUSTER *m, std::vector< long > id, bool enable, const char *warningExitCodes)
MCLIENTLIB_API MUSTERERR JobActionSetParent(MUSTER *m, std::vector< long > id, long parentId)
MCLIENTLIB_API MUSTERERR JobActionSetProject(MUSTER *m, std::vector< long > id, const char *groupName)
MCLIENTLIB_API MUSTERERR JobActionSetPools(MUSTER *m, std::vector< long > id, const char *pools)
MCLIENTLIB_API MUSTERERR JobActionSetOverrideStartNotificatorNotificationsAtJobLevel(MUSTER *m, std::vector< long > id, bool enable, int notificationType)
MCLIENTLIB_API MUSTERERR ActionRunPython(MUSTER *m, const char *pythonCode)
MCLIENTLIB_API MUSTERERR SendDispatcherLDAPConfiguration(MUSTER *m, MDispatcherConfigurationLDAP &configurationObject)
MCLIENTLIB_API MUSTERERR GetDispatcherLDAPConfiguration(MUSTER *m, MDispatcherConfigurationLDAP &configurationObject)
MCLIENTLIB_API MUSTERERR NodeActionRunPythonFile(MUSTER *m, std::vector< long > id, const char *pythonFilePath)
MCLIENTLIB_API MUSTERERR ClearJobsHistory(MUSTER *m, long startingTime, long endingTime)
MCLIENTLIB_API MUSTERERR ActionCreateFolder(MUSTER *m, MJob &job)
MCLIENTLIB_API MUSTERERR MNetWaitForActionCompletation(MUSTER *m, int actionId)
MCLIENTLIB_API MServerStatus GetServerStatus(MUSTER *m)
MCLIENTLIB_API MUSTERERR GetStatistics(MUSTER *m, MDispatcherStatistics &statistics)
MCLIENTLIB_API MUSTERERR GetJobHistory(MUSTER *m, long jobId, std::vector< MHistoryChunk > &samples)
MCLIENTLIB_API void ShutdownSession(MUSTER *m)
MCLIENTLIB_API MUSTERERR JobActionSetSequence(MUSTER *m, std::vector< long > id, const char *sequenceName)
struct MClientLib::MUSTER MUSTER
Client lib MUSTER session structure.
MCLIENTLIB_API int MNetGetCurrentMessage(MUSTER *m)
MCLIENTLIB_API MUSTERERR JobActionSetMinimumPhysicalGPUsUnits(MUSTER *m, std::vector< long > id, bool enable, int minimumPhysicalGPUsUnits)
MCLIENTLIB_API MUSTERERR JobActionSetOverrideMailNotificationsAtJobLevel(MUSTER *m, std::vector< long > id, bool enable, int notificationType)
MCLIENTLIB_API MUSTERERR NodeActionTimedResume(MUSTER *m, std::vector< long > id, unsigned long long time)
MCLIENTLIB_API MUSTERERR ActionSendJob(MUSTER *m, MJob &job)
MCLIENTLIB_API MUSTERERR JobActionSetMinimumLogicalUnits(MUSTER *m, std::vector< long > id, bool enable, int minimumLogicalUnits)
MCLIENTLIB_API MUSTERERR JobActionSetStartsOn(MUSTER *m, std::vector< long > id, long long int time)
MCLIENTLIB_API MUSTERERR JobActionSetOverrideMobileNotificationsAtJobLevel(MUSTER *m, std::vector< long > id, bool enable, int notificationType)
MCLIENTLIB_API MUSTERERR JobActionArchive(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API MUSTERERR GetNode(MUSTER *m, MNode &node, long nodeId)
MCLIENTLIB_API MUSTERERR Disconnect(MUSTER *m)
MCLIENTLIB_API MUSTERERR SetRepositories(MUSTER *m, std::vector< MRepository > &repositories)
MCLIENTLIB_API std::vector< std::string > MNetGetCurrentMessageParameters(MUSTER *m)
MCLIENTLIB_API MUSTERERR GetNodeConfiguration(MUSTERCLIENT *m, MNodeConfiguration &configurationObject)
MCLIENTLIB_API MUSTERERR GetJobs(MUSTER *m, int filterMask, std::vector< MJob > &jobs, bool queryArchived)
MCLIENTLIB_API MUSTERERR JobActionSetDepartment(MUSTER *m, std::vector< long > id, const char *departmentName)
MCLIENTLIB_API MUSTERERR RemoveActionLog(MUSTER *m, const char *filename)
MCLIENTLIB_API MUSTERERR MNetSendMessage(MUSTER *m, int message, int actionId, const char *parameters=0, bool waitForCompletion=true)
MCLIENTLIB_API MUSTERERR JobBackupRemove(MUSTER *m, std::vector< long > ids)
MCLIENTLIB_API MUSTERERR GetJob(MUSTER *m, MJob &job, long jobId)
MCLIENTLIB_API MUSTERERR JobActionSetAttribute(MUSTER *m, std::vector< long > id, const char *attributeName, bool enable, const char *attributeValue)
MCLIENTLIB_API MUSTERERR SendDispatcherConfiguration(MUSTER *m, MDispatcherConfiguration &configurationObject)
MCLIENTLIB_API MUSTERERR GetHistoryBounds(MUSTER *m, MSamplesBoundaries &boundaries)
MCLIENTLIB_API MUSTERERR GetRepositories(MUSTER *m, std::vector< MRepository > &repositories)
MCLIENTLIB_API MUSTERERR ActionImportQueue(MUSTER *m, MStringRef &queueInput)
MCLIENTLIB_API MUSTERERR JobActionKillAndGoOn(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API MUSTERERR JobActionSetOverrideMobileNotificationsAtChunkLevel(MUSTER *m, std::vector< long > id, bool enable, int notificationType)
MCLIENTLIB_API MUSTERERR ActionSoftRestart(MUSTER *m)
MCLIENTLIB_API MUSTERERR JobActionSetOverrideStartMailNotificationsAtJobLevel(MUSTER *m, std::vector< long > id, bool enable, int notificationType)
MCLIENTLIB_API MUSTERERR JobActionSetOverrideMailNotificationsAtChunkLevel(MUSTER *m, std::vector< long > id, bool enable, int notificationType)
MCLIENTLIB_API MUSTERERR JobActionSetOverrideNotificatorNotificationsAtJobLevel(MUSTER *m, std::vector< long > id, bool enable, int notificationType)
MCLIENTLIB_API MUSTERERR MNetTask(MUSTER *m)
MCLIENTLIB_API MUSTERERR ActionEditJob(MUSTER *m, MJob &job)
MCLIENTLIB_API MUSTER * InitializeSession(void)
MCLIENTLIB_API int GetPlatform()
MCLIENTLIB_API MUSTERERR JobActionRename(MUSTER *m, std::vector< long > id, const char *name)
MCLIENTLIB_API MUSTERERR AddUser(MUSTER *m, MUser &user)
MCLIENTLIB_API MUSTERERR NodeActionPause(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API MUSTERERR NodeActionChangeNotes(MUSTER *m, std::vector< long > id, const char *notes)
MCLIENTLIB_API MUSTERERR JobActionSetMinimumPhysicalUnits(MUSTER *m, std::vector< long > id, bool enable, int minimumPhysicalUnits)
MCLIENTLIB_API MUSTERERR JobActionSetResumeOn(MUSTER *m, std::vector< long > id, long long int time)
kErrorChecksType
Job error check type enumeration.
Definition: MJob.h:208
MCLIENTLIB_API MUSTERERR ChunkActionSetOnHold(MUSTER *m, long jobId, std::vector< long > id)
MCLIENTLIB_API char * MNetGetCurrentMessageData(MUSTER *m)
MCLIENTLIB_API MUSTERERR JobActionRemoveAttribute(MUSTER *m, std::vector< long > id, const char *attributeName)
MCLIENTLIB_API MUSTERERR ConfigureGroup(MUSTER *m, MGroup &group)
MCLIENTLIB_API int MNetGetCurrentMessageActionId(MUSTER *m)
MCLIENTLIB_API MUSTERERR SendNodeConfiguration(MUSTERCLIENT *m, MNodeConfiguration &configurationObject)
MCLIENTLIB_API MUSTERERR JobActionBackup(MUSTER *m, std::vector< long > ids, int jobBackupOverwriteMode)
MCLIENTLIB_API MUSTERERR NodeActionRunPython(MUSTER *m, std::vector< long > id, const char *pythonCode)
MCLIENTLIB_API MUSTERERR NodeActionTerminateReserv(MUSTER *m, std::vector< long > id, long reservId, const std::string &reservVersion)
MCLIENTLIB_API MUSTERERR JobActionSetDependMode(MUSTER *m, std::vector< long > id, int dependMode)
MCLIENTLIB_API MUSTERERR ActionWaitDbFlush(MUSTER *m)
MCLIENTLIB_API MUSTERERR JobActionSetMinimumCoresSpeed(MUSTER *m, std::vector< long > id, bool enable, double minimumCoreSpeed)
MCLIENTLIB_API MUSTERERR JobActionPause(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API MUSTERERR JobActionUnarchive(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API MUSTERERR ConfigureUser(MUSTER *m, MUser &user)
MCLIENTLIB_API void ShutdownLibrary()
MCLIENTLIB_API MUSTERAUTH GetAuthenticationStatus(MUSTER *m)
MCLIENTLIB_API MUSTERERR GetBackupBounds(MUSTER *m, MBackupQueryBoundaries &boundaries)
MCLIENTLIB_API MUSTERERR Connect(MUSTER *m, const char *dispatcherAddress, int dispatcherPort, long maxSocketReadBytes=65000000, long maxSocketWriteBytes=65000000)
MCLIENTLIB_API MUSTERERR GetUser(MUSTER *m, const char *userName, MUser &user)
MCLIENTLIB_API MUSTERERR JobActionSetExcludedPools(MUSTER *m, std::vector< long > id, const char *pools)
MCLIENTLIB_API MUSTERERR GetPools(MUSTER *m, MPools &pools)
MCLIENTLIB_API MUSTERERR ActionForceLDAPUpdate(MUSTER *m)
MCLIENTLIB_API MUSTERERR SynchronizeTemplates(MUSTER *m)
MCLIENTLIB_API MUSTERERR JobActionSetOverrideStartNotificatorNotificationsAtChunkLevel(MUSTER *m, std::vector< long > id, bool enable, int notificationType)
MCLIENTLIB_API MUSTERERR NodeActionKillAndPause(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API MUSTERERR ActionRunPythonFile(MUSTER *m, const char *pythonFilePath)
MCLIENTLIB_API MUSTERERR GetStatisticsHistory(MUSTER *m, long startingTime, long endingTime, std::vector< MStatisticsSample > &samples)
MCLIENTLIB_API MUSTERERR JobActionSetProcessValidExitCodes(MUSTER *m, std::vector< long > id, bool enable, const char *validExitCodes)
MCLIENTLIB_API MUSTERERR JobActionSetChunkMaximumRequeueOverride(MUSTER *m, std::vector< long > id, bool enable, int maximumRequeue)
MCLIENTLIB_API MUSTERERR GetAccounts(MUSTER *m, std::vector< MUser > &users, std::vector< MGroup > &groups)
MCLIENTLIB_API void ShutdownClientSession(MUSTERCLIENT *m)
MCLIENTLIB_API MUSTERERR JobActionKillAndRedo(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API std::string GetLibraryPath()
struct MClientLib::MUSTERAUTH MUSTERAUTH
Structure holding a Muster login authorization result.
MCLIENTLIB_API MUSTERERR NodeActionResume(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API MUSTERERR ActionChangeStatus(MUSTER *m)
MCLIENTLIB_API MUSTERERR MNetWaitForMessage(MUSTER *m, int message, int actionId=0)
MCLIENTLIB_API MUSTERERR JobActionSetLogsParsingRules(MUSTER *m, std::vector< long > id, const std::vector< MClientLib::MTextFileRule > &rules)
MCLIENTLIB_API MUSTERERR ClearStatisticsHistory(MUSTER *m, long startingTime, long endingTime)
MCLIENTLIB_API MUSTERERR GetDispatcherConfiguration(MUSTER *m, MDispatcherConfiguration &configurationObject)
MCLIENTLIB_API MUSTERERR JobActionRestore(MUSTER *m, std::vector< long > ids, int jobRestoreActionMode, int jobRestoreReparentId)
MCLIENTLIB_API MUSTERERR ActionExportQueue(MUSTER *m, MStringRef &queueOutput)
MCLIENTLIB_API MUSTERERR JobActionSetMaximumNodes(MUSTER *m, std::vector< long > id, int maximumNodes)
MCLIENTLIB_API MUSTERERR JobActionSetPriority(MUSTER *m, std::vector< long > id, int priority)
MCLIENTLIB_API MUSTERERR JobActionSetMinimumDiskSpaceAmount(MUSTER *m, std::vector< long > id, bool enable, double minimumDiskSpace)
MCLIENTLIB_API MUSTERERR JobActionSetLogsErrorCheckType(MUSTER *m, std::vector< long > id, MJob::kErrorChecksType type)
MCLIENTLIB_API MUSTERERR InitializeLibrary(const char *module)
MCLIENTLIB_API MUSTERERR JobActionSetDepends(MUSTER *m, std::vector< long > id, const char *depends)
MCLIENTLIB_API void SetSessionAsync(MUSTER *m, bool state)
MCLIENTLIB_API MUSTERERR JobActionSetExitCodesErrorCheckType(MUSTER *m, std::vector< long > id, MJob::kErrorChecksType type)
MCLIENTLIB_API MUSTERERR JobActionSetChunkTimeoutOverride(MUSTER *m, std::vector< long > id, bool enable, int timeout)
MCLIENTLIB_API MUSTERERR GetProcessesLogContent(MUSTERCLIENT *m, const char *filename, MStringRef &out)
MCLIENTLIB_API MUSTERERR JobActionReinit(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API MUSTERERR JobActionDelete(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API MUSTERERR JobActionKillAndPause(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API MUSTERERR JobActionSetProcessErrorExitCodes(MUSTER *m, std::vector< long > id, bool enable, const char *errorExitCodes)
MCLIENTLIB_API MUSTERERR ActionChangePassword(MUSTER *m, const char *oldPassword, const char *newPassword)
MCLIENTLIB_API MUSTERERR Authenticate(MUSTER *m, const char *username, const char *password, bool skipDirectoryServer=false)
MCLIENTLIB_API MUSTERERR GetActionLogContent(MUSTER *m, const char *filename, MStringRef &out)
MCLIENTLIB_API MUSTERERR GetBackupJobs(MUSTER *m, MBackupQuery &query, std::vector< MBackupJob > &jobs)
MCLIENTLIB_API MUSTERERR JobActionSetPauseOn(MUSTER *m, std::vector< long > id, long long int time)
MCLIENTLIB_API MUSTERERR RemoveGroup(MUSTER *m, const char *groupName)
MCLIENTLIB_API MUSTERERR JobActionSetShot(MUSTER *m, std::vector< long > id, const char *shotName)
MCLIENTLIB_API MUSTERERR JobActionSetOwner(MUSTER *m, std::vector< long > id, const char *ownerName)
struct MClientLib::MUSTERCLIENT MUSTERCLIENT
Client lib MUSTERCLIENT session structure.
MCLIENTLIB_API void SetClientSessionAsync(MUSTERCLIENT *m, bool state)
MCLIENTLIB_API MUSTERERR AcquireServerStatus(MUSTER *m)
MCLIENTLIB_API MUSTERERR JobActionUnlock(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API MUSTERERR JobActionBackupAndDelete(MUSTER *m, std::vector< long > ids, int jobBackupOverwriteMode)
MCLIENTLIB_API MUSTERERR GetJobsHistory(MUSTER *m, long startingTime, long endingTime, const char *filterField, const char *filter, std::vector< MHistoryChunk > &samples)
MCLIENTLIB_API MUSTERERR ActionResetCounters(MUSTER *m)
MCLIENTLIB_API MUSTERERR NodeActionKillAndGo(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API void LoadTemplates(const char *templatesPath)
MCLIENTLIB_API MUSTERERR GetProcessesLogs(MUSTERCLIENT *m, std::vector< std::string > &logs)
MCLIENTLIB_API MUSTERERR GetActionLogs(MUSTER *m, std::vector< std::string > &logs)
MCLIENTLIB_API MUSTERERR JobActionSetMinimumCores(MUSTER *m, std::vector< long > id, bool enable, int minimumCores)
MCLIENTLIB_API MUSTERERR NodeActionRemove(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API MUSTERERR RemoveProcessesLog(MUSTERCLIENT *m, const char *filename)
MCLIENTLIB_API MUSTERERR JobActionResume(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API MUSTERERR JobActionSetEmergencyQueue(MUSTER *m, std::vector< long > id, bool enabled)
MCLIENTLIB_API MUSTERERR GetActivityLogs(MUSTER *m, std::vector< std::string > &logs)
MCLIENTLIB_API MUSTERERR JobActionSetOverrideStartMobileNotificationsAtChunkLevel(MUSTER *m, std::vector< long > id, bool enable, int notificationType)
MCLIENTLIB_API MUSTERERR JobActionRestartFrameCheck(MUSTER *m, std::vector< long > id)
MCLIENTLIB_API MUSTERERR JobActionSetMinimumRamAmount(MUSTER *m, std::vector< long > id, bool enable, double minimumRamAmount)
MCLIENTLIB_API MUSTERERR GetGroup(MUSTER *m, const char *groupName, MGroup &group)
MCLIENTLIB_API MUSTERERR GetChunks(MUSTER *m, long jobId, int filterMask, std::vector< MChunk > &chunks)
MCLIENTLIB_API MUSTERERR GetChunk(MUSTER *m, MChunk &chunk, long jobId, long chunkId)