* static methods to retrieve event and status names
authorMichal Voců <michal@ruk.cuni.cz>
Mon, 16 Apr 2007 10:30:41 +0000 (10:30 +0000)
committerMichal Voců <michal@ruk.cuni.cz>
Mon, 16 Apr 2007 10:30:41 +0000 (10:30 +0000)
org.glite.lb.client-interface/interface/Event.h.T
org.glite.lb.client-interface/interface/JobStatus.h.T

index 3e1d52b..b337531 100644 (file)
@@ -235,6 +235,16 @@ public:
         */
        const std::vector<std::pair<Attr,AttrType> >  & getAttrs(void) const;
 
+       /** Event name.
+        *
+        * Retrieves string representation of the event type.
+        * \param[in] type Symbolic name of the event type.
+        * \returns String name of the event.
+        * \throw Exception Invalid event type.
+        *
+        */
+       static const std::string getEventName(Type type);
+
 private:
        static void     destroyFlesh(void *);
        CountRef<Event> *flesh;
index 5acde1a..94a1866 100644 (file)
@@ -220,6 +220,16 @@ public:
         * \returns List of attributes.
         */
        const std::vector<std::pair<Attr,AttrType> >& getAttrs(void) const;
+
+       /** Get name of state.
+        *
+        * Retrieve string representation of symbolic job state.
+        * \param[in] state Symbolic state name.
+        * \returns String state name.
+        * \throw Exception Invalid state.
+        *
+        */
+       static const std::string &getStateName(Code state);
   
        /** Default constructor.
         *