123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- /*##############################################################################
- 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.
- ############################################################################## */
- // *** Include file generated by HIDL Version 1.3 from environment.scm ***
- // *** Not to be hand edited (changes will be lost on re-generation) ***
- #ifndef environment_SCM_INCL
- #define environment_SCM_INCL
- #include "jiface.hpp"
- #include "dasubs.hpp"
- #ifdef ENVIRONMENT_EXPORTS
- #define ENVIRONMENT_API DECL_EXPORT
- #else
- #define ENVIRONMENT_API DECL_IMPORT
- #endif
- interface IPropertyTree; // Not yet SCM-compliant
- interface IEnvironment; // Forward reference
- interface ISDSSubscription;// Forward reference
- interface IConstEnvBase : extends IInterface
- {
- virtual IStringVal & getXML(IStringVal & str) const = 0;
- virtual IStringVal & getName(IStringVal & str) const = 0;
- virtual IPropertyTree & getPTree() const = 0;
- };
- interface IConstDomainInfo : extends IConstEnvBase
- {
- virtual void getAccountInfo(IStringVal & name, IStringVal & pw) const = 0;
- virtual void getSnmpSecurityString(IStringVal & securityString) const = 0;
- virtual void getSSHAccountInfo(IStringVal & name, IStringVal & sshKeyFile, IStringVal& sshKeyPassphrase) const = 0;
- };
- enum EnvMachineState
- {
- MachineStateAvailable = 0,
- MachineStateUnavailable = 1,
- MachineStateUnknown = 2
- };
- enum EnvMachineOS
- {
- MachineOsW2K = 0,
- MachineOsSolaris = 1,
- MachineOsLinux = 2,
- MachineOsUnknown = 3,
- MachineOsSize = 4
- };
- interface IConstComputerTypeInfo : extends IConstEnvBase
- {
- virtual EnvMachineOS getOS() const = 0;
- virtual unsigned getNicSpeedMbitSec() const = 0;
- };
- interface IConstMachineInfo : extends IConstEnvBase
- {
- virtual IConstDomainInfo * getDomain() const = 0;
- virtual IStringVal & getNetAddress(IStringVal & str) const = 0;
- virtual unsigned getNicSpeedMbitSec() const = 0;
- virtual IStringVal & getDescription(IStringVal & str) const = 0;
- virtual EnvMachineOS getOS() const = 0;
- virtual EnvMachineState getState() const = 0;
- };
- interface IConstMachineInfoIterator : extends IIteratorOf<IConstMachineInfo>
- {
- virtual unsigned count() const = 0;
- };
- interface IConstInstanceInfo : extends IConstEnvBase
- {
- virtual IConstMachineInfo * getMachine() const = 0;
- virtual IStringVal & getEndPoint(IStringVal & str) const = 0;
- virtual unsigned getPort() const = 0;
- virtual IStringVal & getExecutableDirectory(IStringVal & str) const = 0;
- virtual bool getRunInfo(IStringVal & progpath, IStringVal & workdir, const char * defaultprogname) const = 0;
- };
- interface IConstDropZoneInfo : extends IConstEnvBase
- {
- virtual IStringVal & getComputerName(IStringVal & str) const = 0;
- virtual IStringVal & getDescription(IStringVal & str) const = 0;
- virtual IStringVal & getDirectory(IStringVal & str) const = 0;
- virtual IStringVal & getUMask(IStringVal & str) const = 0;
- virtual bool isECLWatchVisible() const = 0;
- };
- interface IConstDropZoneInfoIterator : extends IIteratorOf<IConstDropZoneInfo>
- {
- virtual unsigned count() const = 0;
- };
- interface IConstEnvironment : extends IConstEnvBase
- {
- virtual IConstDomainInfo * getDomain(const char * name) const = 0;
- virtual IConstMachineInfo * getMachine(const char * name) const = 0;
- virtual IConstMachineInfo * getMachineByAddress(const char * netaddress) const = 0;
- virtual IConstMachineInfo * getMachineForLocalHost() const = 0;
- virtual IConstDropZoneInfo * getDropZone(const char * name) const = 0;
- virtual IConstDropZoneInfo * getDropZoneByComputer(const char * computer) const = 0;
- virtual IConstInstanceInfo * getInstance(const char * type, const char * version, const char * domain) const = 0;
- virtual IConstComputerTypeInfo * getComputerType(const char * name) const = 0;
- virtual bool getRunInfo(IStringVal & path, IStringVal & dir, const char * type, const char * version, const char * machineaddr, const char * defaultprogname) const = 0;
- virtual IEnvironment & lock() const = 0;
- virtual bool isConstEnvironment() const = 0;
- virtual void clearCache() = 0;
- virtual IConstMachineInfoIterator * getMachineIterator() const = 0;
- virtual IConstDropZoneInfo * getDropZoneByComputer(const char * computer, const char * dzname) const = 0;
- virtual IConstDropZoneInfoIterator * getDropZoneIteratorByComputer(const char * computer) const = 0;
- // returns a drop zone that is defined on IP with the shortest path that's a parent of targetPath
- virtual IConstDropZoneInfo * getDropZoneByAddressPath(const char * netaddress, const char *targetPath) const = 0;
- virtual IConstDropZoneInfoIterator * getDropZoneIterator() const = 0;
- };
- interface IEnvironment : extends IConstEnvironment
- {
- virtual void commit() = 0;
- virtual void rollback() = 0;
- virtual void setXML(const char * (null)) = 0;
- virtual void preload() = 0;
- };
- interface IEnvironmentFactory : extends IInterface
- {
- virtual IConstEnvironment * openEnvironment() = 0;
- virtual IEnvironment * updateEnvironment() = 0;
- virtual IEnvironment * loadLocalEnvironmentFile(const char * filename) = 0;
- virtual IEnvironment * loadLocalEnvironment(const char * xml) = 0;
- virtual SubscriptionId subscribe(ISDSSubscription * pSubHandler) = 0;
- virtual void unsubscribe(SubscriptionId id) = 0;
- virtual void validateCache() = 0;
- };
- class StringBuffer;
- extern "C" ENVIRONMENT_API IEnvironmentFactory * getEnvironmentFactory();
- extern "C" ENVIRONMENT_API void closeEnvironment();
- #endif // _environment_SCM_INCL
- //end
|