123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668 |
- /*##############################################################################
- HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- http://www.apache.org/licenses/LICENSE-2.0
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- ############################################################################## */
- ////////////////////////////////////////////////////////////
- // ===========================================================================
- ESPStruct TpMachine
- {
- string Name;
- string Netaddress;
- [min_ver("1.09")] string ConfigNetaddress;
- string Domain;
- string Directory;
- string Type;
- string Available;
- int OS;
- string Path;
- int Port;
- [min_ver("1.18")] int ProcessNumber;
- [min_ver("1.30")] unsigned Channels;
- };
- // ===========================================================================
- ESPStruct TpCluster
- {
- string Type;
- string Name;
- [min_ver("1.03")] string QueueName;
- string Build;
- string Directory;
- string LogDirectory;
- string Desc;
- [max_ver("1.16")] string Prefix;
- string Path;
- string DataModel;
- int OS;
- [min_ver("1.15")] bool HasThorSpareProcess;
- [min_ver("1.12")] ESParray<ESPstruct TpMachine> TpMachines;
- };
- // ===========================================================================
- // ===========================================================================
- ESPStruct TpLogicalCluster
- {
- string Name;
- string Queue;
- [min_ver("1.14")] string LanguageVersion;
- [min_ver("1.11")] string Process;
- [min_ver("1.22")] string Type;
- };
- // ===========================================================================
- // ===========================================================================
- ESPStruct [nil_remove] TpGroup
- {
- string Name;
- [min_ver("1.21")] string Kind;
- [min_ver("1.21")] bool ReplicateOutputs;
- };
- // ===========================================================================
- ESPStruct TpDali
- {
- string Name;
- string Description;
- string Build;
- string BackupComputer;
- string BackupDirectory;
- string Type;
- string Path;
- string LogDirectory;
- [min_ver("1.27")] string AuditLogDirectory;
- ESParray<ESPstruct TpMachine> TpMachines;
- };
- // ===========================================================================
- ESPStruct TpEclServer
- {
- string Name;
- string Description;
- string Build;
- string LogDirectory;
- string Type;
- string Path;
- ESParray<ESPstruct TpMachine> TpMachines;
- };
- // ===========================================================================
- ESPStruct TpEclAgent
- {
- string Name;
- string Description;
- string Build;
- string Type;
- string Path;
- string DaliServer;
- string LogDir;
- ESParray<ESPstruct TpMachine> TpMachines;
- //ESPstruct TpAgentExec AgentExec;
- };
- // ===========================================================================
- ESPStruct TpAgentExec
- {
- string DaliServer;
- string LogDir;
- };
- // ===========================================================================
- ESPStruct TpEclScheduler
- {
- string Name;
- string Description;
- string Build;
- string LogDirectory;
- string Type;
- string Path;
- ESParray<ESPstruct TpMachine> TpMachines;
- };
- // ===========================================================================
- ESPStruct [nil_remove] TpBinding
- {
- string Name;
- string Service;
- string ServiceType;
- [min_ver("1.23")] string BindingType;
- [min_ver("1.24")] string ServiceBuildSet;
- string Port;
- string Protocol;
- };
- ESPStruct TpEspServicePlugin
- {
- string ShortName;
- string LongName;
- string FolderName;
- string WidgetName;
- };
- // ===========================================================================
- ESPStruct TpEspServer
- {
- string Name;
- string Description;
- string Build;
- string Type;
- string Path;
- string LogDirectory;
- ESParray<ESPstruct TpMachine> TpMachines;
- ESParray<ESPstruct TpBinding> TpBindings;
- };
- // ===========================================================================
- ESPStruct TpDfuServer
- {
- string Name;
- string Description;
- string Build;
- string Queue;
- string Type;
- string Path;
- string LogDirectory;
- ESParray<ESPstruct TpMachine> TpMachines;
- };
- // ===========================================================================
- ESPStruct TpSashaServer
- {
- string Name;
- string Description;
- string Build;
- string Path;
- string LogDirectory;
- ESParray<ESPstruct TpMachine> TpMachines;
- };
- // ===========================================================================
- ESPStruct TpLdapServer
- {
- string Name;
- string Description;
- string Build;
- string Path;
- ESParray<ESPstruct TpMachine> TpMachines;
- };
- // ===========================================================================
- ESPStruct TpDropZone
- {
- string Name;
- string Description;
- string Build;
- string Path;
- [min_ver("1.26")]bool ECLWatchVisible;
- [min_ver("1.26")]string UMask;
- ESParray<ESPstruct TpMachine> TpMachines;
- };
- // ===========================================================================
- ESPStruct TpMySqlServer
- {
- string Name;
- string Description;
- string Build;
- string Path;
- ESParray<ESPstruct TpMachine> TpMachines;
- };
- // ===========================================================================
- ESPStruct TpFTSlave
- {
- string Name;
- string Description;
- string Build;
- string Path;
- ESParray<ESPstruct TpMachine> TpMachines;
- };
- // ===========================================================================
- ESPStruct TpDkcSlave
- {
- string Name;
- string Description;
- string Build;
- string Path;
- ESParray<ESPstruct TpMachine> TpMachines;
- };
- // ===========================================================================
- ESPStruct TpGenesisServer
- {
- string Name;
- string Description;
- string Build;
- string Path;
- ESParray<ESPstruct TpMachine> TpMachines;
- };
- // ===========================================================================
- ESPStruct TpSparkThor
- {
- string Name;
- string Build;
- string ThorClusterName;
- string ThorPath;
- unsigned SparkExecutorCores;
- int64 SparkExecutorMemory;
- unsigned SparkMasterPort;
- unsigned SparkMasterWebUIPort;
- unsigned SparkWorkerCores;
- int64 SparkWorkerMemory;
- unsigned SparkWorkerPort;
- string LogDirectory;
- string Path;
- ESParray<ESPstruct TpMachine> TpMachines;
- };
- // ===========================================================================
- ESPStruct TpQueue
- {
- string Name;
- string WorkUnit;
- };
- // ===========================================================================
- ESPStruct TpServices
- {
- ESParray<ESPstruct TpDali> TpDalis;
- ESParray<ESPstruct TpDfuServer> TpDfuServers;
- ESParray<ESPstruct TpDkcSlave> TpDkcSlaves;
- ESParray<ESPstruct TpDropZone> TpDropZones;
- ESParray<ESPstruct TpEclAgent> TpEclAgents;
- ESParray<ESPstruct TpEclServer> TpEclServers;
- ESParray<ESPstruct TpEclServer> TpEclCCServers;
- [min_ver("1.16")] ESParray<ESPstruct TpEclScheduler> TpEclSchedulers;
- ESParray<ESPstruct TpEspServer> TpEspServers;
- ESParray<ESPstruct TpFTSlave> TpFTSlaves;
- ESParray<ESPstruct TpGenesisServer> TpGenesisServers;
- ESParray<ESPstruct TpLdapServer> TpLdapServers;
- ESParray<ESPstruct TpMySqlServer> TpMySqlServers;
- ESParray<ESPstruct TpSashaServer> TpSashaServers;
- [min_ver("1.28")] ESParray<ESPstruct TpSparkThor> TpSparkThors;
- };
- ESPStruct TpClusterNameType
- {
- string Name;
- string Type;
- bool IsDefault;
- };
- ESPrequest TpListTargetClustersRequest
- {
- };
- ESPresponse [exceptions_inline] TpListTargetClustersResponse
- {
- ESParray<ESPstruct TpClusterNameType> TargetClusters;
- };
- // ===========================================================================
- ESPStruct TpTargetCluster
- {
- string Name;
- string Prefix;
- TpQueryType Type;
- ESParray<ESPstruct TpCluster> TpClusters;
- ESParray<ESPstruct TpEclServer> TpEclCCServers;
- [min_ver("1.19")] ESParray<ESPstruct TpEclServer> TpEclServers;
- ESParray<ESPstruct TpEclAgent> TpEclAgents;
- [min_ver("1.16")] ESParray<ESPstruct TpEclScheduler> TpEclSchedulers;
- };
- ESPStruct TpQueryType
- {
- TPCLUSTER;
- TPNODE;
- };
- ESPrequest TpTargetClusterQueryRequest
- {
- TpQueryType Type;
- string Name;
- bool ShowDetails(false);
- };
- ESPresponse [exceptions_inline]TpTargetClusterQueryResponse
- {
- //bool EncapsulatedSystem;
- //bool EnablePreflightInfo;
- bool ShowDetails(false);
- int MemThreshold;
- int DiskThreshold;
- int CpuThreshold;
- string MemThresholdType;
- string DiskThresholdType;
- [min_ver("1.13")] string PreflightProcessFilter;
- [min_ver("1.20")] string AcceptLanguage;
- ESParray<ESPstruct TpTargetCluster> TpTargetClusters;
- };
- ESPrequest TpClusterQueryRequest
- {
- TpQueryType Type;
- };
- ESPresponse [exceptions_inline]TpClusterQueryResponse
- {
- [min_ver("1.08")] bool EnableSNMP;
- [min_ver("1.20")] string AcceptLanguage;
- ESParray<ESPstruct TpCluster> TpClusters;
- };
- ESPrequest TpLogicalClusterQueryRequest
- {
- string EclServerQueue;
- };
- ESPresponse [exceptions_inline] TpLogicalClusterQueryResponse
- {
- ESParray<ESPstruct TpLogicalCluster> TpLogicalClusters;
- };
- ESPrequest [nil_remove] TpGroupQueryRequest
- {
- [min_ver("1.21")] string Kind;
- };
- ESPresponse [exceptions_inline] TpGroupQueryResponse
- {
- ESParray<ESPstruct TpGroup> TpGroups;
- };
- ESPrequest TpClusterInfoRequest
- {
- //Type of Node the parent is....
- string Name;
- };
- ESPresponse [exceptions_inline,encode(0)] TpClusterInfoResponse
- {
- string Name;
- string WorkUnit;
- [min_ver("1.10")] ESParray<ESPstruct TpQueue> TpQueues;
- };
- SCMenum TpMachineType
- {
- TPMACHINECLUSTER
- };
- ESPrequest [] TpMachineQueryRequest
- {
- //Type of Node the parent is....
- TpMachineType Type;
- string Cluster;
- string OldIP;
- //Path to Parent within Dali(Encoded to prevent back-engineering)
- string Path;
- //installation path for corresponding component for monitoring processes
- string Directory;
- string LogDirectory;
- };
- ESPresponse [exceptions_inline] TpMachineQueryResponse
- {
- bool EnablePreflightInfo;
- [min_ver("1.15")] bool HasThorSpareProcess;
- TpMachineType Type;
- string Cluster;
- string OldIP;
- string LogDirectory;
- //Path to Parent within Dali(Encoded to prevent back-engineering)
- //This is echoed back from request and is used for swap node.
- string Path;
- int MemThreshold;
- int DiskThreshold;
- int CpuThreshold;
- string MemThresholdType;
- string DiskThresholdType;
- [min_ver("1.13")] string PreflightProcessFilter;
- [min_ver("1.08")] bool EnableSNMP;
- [min_ver("1.20")] string AcceptLanguage;
- ESParray<ESPstruct TpMachine> TpMachines;
- };
- ESPrequest [] TpMachineInfoRequest
- {
- string Name;
- string NetAddress;
- };
- ESPresponse [exceptions_inline] TpMachineInfoResponse
- {
- ESPstruct TpMachine MachineInfo;
- };
- ESPrequest TpServiceQueryRequest
- {
- //Path to Parent within Dali(Encoded to prevent back-engineering)
- string Type;
- };
- ESPresponse [nil_remove, exceptions_inline] TpServiceQueryResponse
- {
- int MemThreshold;
- int DiskThreshold;
- int CpuThreshold;
- [min_ver("1.07")] bool EncapsulatedSystem;
- [min_ver("1.08")] bool EnableSNMP;
- [min_ver("1.13")] string PreflightProcessFilter;
- [min_ver("1.20")] string AcceptLanguage;
- string MemThresholdType;
- string DiskThresholdType;
- ESPstruct TpServices ServiceList;
- };
- ESPrequest TpSetMachineStatusRequest
- {
- string MachinePath;
- string StatusValue;
- };
- ESPresponse [exceptions_inline] TpSetMachineStatusResponse
- {
- bool TpSetMachineStatusResult;
- };
- ESPrequest TpSwapNodeRequest
- {
- string Cluster;
- string OldIP;
- string NewIP;
- };
- ESPresponse [exceptions_inline] TpSwapNodeResponse
- {
- bool TpSwapNodeResult;
- };
- ESPrequest [nil_remove] TpXMLFileRequest
- {
- string Name;
- };
- ESPresponse [exceptions_inline] TpXMLFileResponse
- {
- [http_content("application/octet-stream")] binary thefile;
- };
- ESPrequest [nil_remove] TpLogFileRequest
- {
- string Name;
- string Type;
- int LastHours;
- [min_ver("1.05")] string StartDate;
- [min_ver("1.05")] string EndDate;
- [min_ver("1.05")] int FirstRows;
- [min_ver("1.05")] int LastRows;
- [min_ver("1.05")] int FilterType(0);
- [min_ver("1.05")] bool Reversely(false);
- [min_ver("1.05")] bool Zip(false);
- [min_ver("1.05")] int PageNumber(0);
- [min_ver("1.05")] bool LoadData(false);
- [min_ver("1.29")] bool IncludeLogFieldNames(true);
- };
- ESPresponse [exceptions_inline] TpLogFileResponse
- {
- [min_ver("1.05")] string Name;
- [min_ver("1.05")] string Type;
- [min_ver("1.05")] string StartDate;
- [min_ver("1.05")] string EndDate;
- [min_ver("1.05")] int LastHours;
- [min_ver("1.05")] int FirstRows;
- [min_ver("1.05")] int LastRows;
- [min_ver("1.05")] bool Reversely;
- [min_ver("1.05")] bool Zip;
- [min_ver("1.05")] int FilterType;
- [min_ver("1.05")] string LogData;
- [min_ver("1.05")] bool HasDate(true);
- [min_ver("1.05")] int64 FileSize;
- [min_ver("1.05")] int64 PageFrom(0);
- [min_ver("1.05")] int64 PageTo;
- [min_ver("1.05")] int PageNumber(0);
- [min_ver("1.05")] int PrevPage(-1);
- [min_ver("1.05")] int NextPage(-1);
- [min_ver("1.06")] int TotalPages;
- [min_ver("1.20")] string AcceptLanguage;
- [min_ver("1.29")] ESParray<string> LogFieldNames;
- };
- ESPrequest [nil_remove] SystemLogRequest
- {
- string Name;
- string Type;
- int Zip;
- };
- ESPresponse [exceptions_inline] SystemLogResponse
- {
- [http_content("application/octet-stream")] binary thefile;
- };
- SCMenum OS_TYPE
- {
- OS_WINDOWS,
- OS_SOLARIS,
- OS_LINUX
- };
- ESPrequest TpGetComponentFileRequest
- {
- string CompType;
- string CompName;
- string NetAddress;
- string Directory;
- string FileType;
- int OsType;
- string PlainText;
- };
- ESPresponse [exceptions_inline] TpGetComponentFileResponse
- {
- [http_content("application/octet-stream")] binary FileContents;
- };
- ESPrequest TpThorStatusRequest
- {
- string Name;
- };
- ESPresponse [exceptions_inline,encode(0)] TpThorStatusResponse
- {
- string Name;
- string Queue;
- string Group;
- string ThorMasterIPAddress;
- int Port;
- string StartTime;
- string LogFile;
- string Wuid;
- string Graph;
- int SubGraph;
- int SubGraphDuration;
- int AutoRefresh;
- };
- ESPrequest TpGetServicePluginsRequest
- {
- };
- ESPresponse [exceptions_inline,encode(0)] TpGetServicePluginsResponse
- {
- ESParray<ESPstruct TpEspServicePlugin, Plugin> Plugins;
- };
- ESPrequest TpDropZoneQueryRequest
- {
- string Name;
- bool ECLWatchVisibleOnly;
- };
- ESPresponse [nil_remove, exceptions_inline] TpDropZoneQueryResponse
- {
- ESParray<ESPstruct TpDropZone> TpDropZones;
- };
- ESPservice [auth_feature("DEFERRED"), noforms, version("1.30"), cache_group("ESPWsTP"), exceptions_inline("./smc_xslt/exceptions.xslt")] WsTopology
- {
- ESPmethod [cache_seconds(180), cache_global(1), resp_xsl_default("/esp/xslt/targetclusters.xslt")] TpTargetClusterQuery(TpTargetClusterQueryRequest, TpTargetClusterQueryResponse);
- ESPmethod [cache_seconds(180), cache_global(1), resp_xsl_default("/esp/xslt/topology.xslt")] TpClusterQuery(TpClusterQueryRequest, TpClusterQueryResponse);
- ESPmethod [cache_seconds(180), cache_global(1)] TpLogicalClusterQuery(TpLogicalClusterQueryRequest, TpLogicalClusterQueryResponse);
- ESPmethod [cache_seconds(180), cache_global(1)] TpGroupQuery(TpGroupQueryRequest, TpGroupQueryResponse);
- ESPmethod [cache_seconds(180), cache_global(1), resp_xsl_default("/esp/xslt/machines.xslt")] TpMachineQuery(TpMachineQueryRequest, TpMachineQueryResponse);
- ESPmethod [cache_seconds(180), cache_global(1), resp_xsl_default("/esp/xslt/cluster_info.xslt")] TpClusterInfo(TpClusterInfoRequest, TpClusterInfoResponse);
- ESPmethod [cache_seconds(180), cache_global(1), resp_xsl_default("/esp/xslt/thor_status.xslt")] TpThorStatus(TpThorStatusRequest, TpThorStatusResponse);
- ESPmethod [cache_seconds(180), cache_global(1), min_ver("1.26")] TpDropZoneQuery(TpDropZoneQueryRequest, TpDropZoneQueryResponse);
- ESPmethod [cache_seconds(180), cache_global(1), resp_xsl_default("/esp/xslt/services.xslt")] TpServiceQuery(TpServiceQueryRequest, TpServiceQueryResponse);
- ESPmethod [clear_cache_group] TpSetMachineStatus(TpSetMachineStatusRequest, TpSetMachineStatusResponse);
- ESPmethod [clear_cache_group] TpSwapNode(TpSwapNodeRequest, TpSwapNodeResponse);
- ESPmethod [cache_seconds(180)] TpXMLFile(TpXMLFileRequest, TpXMLFileResponse);
- ESPmethod [resp_xsl_default("/esp/xslt/tplog.xslt")] TpLogFile(TpLogFileRequest, TpLogFileResponse);
- ESPmethod [resp_xsl_default("/esp/xslt/tplogdisplay.xslt")] TpLogFileDisplay(TpLogFileRequest, TpLogFileResponse);
- ESPmethod TpGetComponentFile(TpGetComponentFileRequest, TpGetComponentFileResponse);
- ESPmethod [cache_seconds(180), cache_global(1)] TpGetServicePlugins(TpGetServicePluginsRequest, TpGetServicePluginsResponse);
- ESPmethod [cache_seconds(180), cache_global(1)] TpListTargetClusters(TpListTargetClustersRequest, TpListTargetClustersResponse);
- ESPmethod [cache_seconds(180), cache_global(1), min_ver(1.25)] TpMachineInfo(TpMachineInfoRequest, TpMachineInfoResponse);
- ESPmethod SystemLog(SystemLogRequest, SystemLogResponse);
- };
- SCMexportdef(WSWU);
- SCMapi(WSWU) IClientWsTopology *createWsTopologyClient();
|