5 // Compilation C++ recquise
\r
7 #error Host.hpp requires C++ compilation (use a .cxx suffix)
\r
15 // Default constructor.
\r
18 // Copy constructor.
\r
19 Host(const Host& rHost);
\r
28 static Host& getByName(const char* hostName)
\r
29 throw(HostNotFoundException);
\r
31 static int getNumber(void);
\r
33 static Host& currentHost(void);
\r
35 static int all(Host** hosts);
\r
38 const char* getName(void) const;
\r
40 void setData(void* data);
\r
44 void* getData(void) const;
\r
46 int Host::getRunningTaskNumber(void) const;
\r
48 double getSpeed(void) const;
\r
50 bool hasData(void) const;
\r
52 bool isAvailble(void) const;
\r
54 void put(int channel, const Task& rTask)
\r
55 throw(NativeException);
\r
57 void put(int channel, Task task, double timeout)
\r
58 throw(NativeException);
\r
60 void Host::putBounded(int channel, const Task& rTask, double maxRate)
\r
61 throw(NativeException);
\r
64 void send(const Task& rTask)
\r
65 throw(NativeException);
\r
67 void send(const char* alias, const Task& rTask)
\r
68 throw(NativeException);
\r
70 void send(const Task& rTask, double timeout)
\r
71 throw(NativeException);
\r
73 void send(const char* alias, const Task& rTask, double timeout)
\r
74 throw(NativeException);
\r
76 void sendBounded(const Task& rTask, double maxRate)
\r
77 throw(NativeException);
\r
79 void sendBounded(const char* alias, const Task& rTask, double maxRate)
\r
80 throw(NativeException);
\r
86 m_host_t nativeHost;
\r
92 #endif // !MSG_HOST_HPP