Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Private Attributes
Arc::JobSchedMetaData Class Reference

#include <job_sched_meta.h>

Collaboration diagram for Arc::JobSchedMetaData:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 JobSchedMetaData (void)
 JobSchedMetaData (const JobSchedMetaData &s)
 JobSchedMetaData (ByteArray &buffer)
ByteArrayserialize (void)
 ~JobSchedMetaData (void)
void setResourceID (const std::string &id)
const std::string & getResourceID (void)
void setFailure (const std::string &f)
const std::string & getFailure (void)
void setLastChecked (const Arc::Time &last_checked)
Arc::TimegetLastChecked (void)
void setLastUpdated (const Arc::Time &last_updated)
Arc::TimegetLastUpdated (void)
void setCreatedTime (const Arc::Time &created)
Arc::TimegetCreatedTime (void)
void setStartTime (const Arc::Time &start_time)
Arc::TimegetStartTime (void)
void setEndTime (const Arc::Time &end_time)
Arc::TimegetEndTime (void)
 operator std::string (void) const

Private Attributes

std::string resource_id_
std::string failure_
Arc::Time last_checked_
Arc::Time last_updated_
Arc::Time created_
Arc::Time start_time_
Arc::Time end_time_
ByteArray buffer_

Detailed Description

Definition at line 10 of file job_sched_meta.h.


Constructor & Destructor Documentation

Definition at line 10 of file job_sched_meta.cpp.

                                  :buffer_(0)
{
    // NOP;
}

Definition at line 15 of file job_sched_meta.cpp.

                                                           :buffer_(0)
{
    resource_id_ = s.resource_id_;
    failure_ = s.failure_;
    last_checked_ = s.last_checked_;
    last_updated_ = s.last_updated_;
    created_ = s.created_;
    start_time_ = s.start_time_;
    end_time_ = s.end_time_;
}

Definition at line 26 of file job_sched_meta.cpp.

{
    int buf_len = 0;
    char *buf = buffer.data();
    time_t t;
    
    resource_id_ = buf;
    buf_len = resource_id_.size() + 1;
    failure_ = buf + buf_len;
    buf_len += failure_.size() + 1;
    
    t = *(time_t *)(buf + buf_len);
    buf_len += sizeof(t);
    last_updated_.SetTime(t);
    
    t = *(time_t *)(buf + buf_len);
    buf_len += sizeof(t);
    last_checked_.SetTime(t);
    
    t = *(time_t *)(buf + buf_len);
    buf_len += sizeof(t);
    created_.SetTime(t);
    
    t = *(time_t *)(buf + buf_len);
    buf_len += sizeof(t);
    start_time_.SetTime(t);
    
    t = *(time_t *)(buf + buf_len);
    buf_len += sizeof(t);
    end_time_.SetTime(t);
}

Here is the call graph for this function:

Definition at line 78 of file job_sched_meta.cpp.

{
    // NOP
}

Member Function Documentation

Definition at line 37 of file job_sched_meta.h.

{ return created_; };

Here is the caller graph for this function:

Definition at line 41 of file job_sched_meta.h.

{ return end_time_; };

Here is the caller graph for this function:

const std::string& Arc::JobSchedMetaData::getFailure ( void  ) [inline]

Definition at line 31 of file job_sched_meta.h.

{ return failure_; };

Here is the caller graph for this function:

Definition at line 33 of file job_sched_meta.h.

{ return last_checked_; };

Here is the caller graph for this function:

Definition at line 35 of file job_sched_meta.h.

{ return last_updated_; };

Here is the caller graph for this function:

const std::string& Arc::JobSchedMetaData::getResourceID ( void  ) [inline]

Definition at line 29 of file job_sched_meta.h.

{ return resource_id_; };

Here is the caller graph for this function:

Definition at line 39 of file job_sched_meta.h.

{ return start_time_; };

Here is the caller graph for this function:

Arc::JobSchedMetaData::operator std::string ( void  ) const

Definition at line 83 of file job_sched_meta.cpp.

{
    std::string out =   "ResourceID: " + resource_id_ + "\n"
                      + "Failure: " + failure_ + "\n"
                      + "Last Checked: " + (std::string)last_checked_ + "\n"
                      + "Last Updated: " + (std::string)last_updated_ + "\n"
                      + "Created: " + (std::string)created_ + "\n"
                      + "Start Time: " + (std::string)start_time_ + "\n"
                      + "End Time: " + (std::string)end_time_ + "\n";
    return out;
}

Here is the call graph for this function:

Definition at line 58 of file job_sched_meta.cpp.

{
    time_t t;
    buffer_.clean();
    buffer_.append(resource_id_);
    buffer_.append(failure_);
    t = last_updated_.GetTime();
    buffer_.append(&t, sizeof(t));
    t = last_checked_.GetTime();
    buffer_.append(&t, sizeof(t));
    t = created_.GetTime();
    buffer_.append(&t, sizeof(t));
    t = start_time_.GetTime();
    buffer_.append(&t, sizeof(t));
    t = end_time_.GetTime();
    buffer_.append(&t, sizeof(t));
    
    return buffer_;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void Arc::JobSchedMetaData::setCreatedTime ( const Arc::Time created) [inline]

Definition at line 36 of file job_sched_meta.h.

{ created_ = created; };
void Arc::JobSchedMetaData::setEndTime ( const Arc::Time end_time) [inline]

Definition at line 40 of file job_sched_meta.h.

{ end_time_ = end_time; };

Here is the caller graph for this function:

void Arc::JobSchedMetaData::setFailure ( const std::string &  f) [inline]

Definition at line 30 of file job_sched_meta.h.

{ failure_ = f; };

Here is the caller graph for this function:

void Arc::JobSchedMetaData::setLastChecked ( const Arc::Time last_checked) [inline]

Definition at line 32 of file job_sched_meta.h.

{ last_checked_ = last_checked; };

Here is the caller graph for this function:

void Arc::JobSchedMetaData::setLastUpdated ( const Arc::Time last_updated) [inline]

Definition at line 34 of file job_sched_meta.h.

{ last_updated_ = last_updated; };

Here is the caller graph for this function:

void Arc::JobSchedMetaData::setResourceID ( const std::string &  id) [inline]

Definition at line 28 of file job_sched_meta.h.

{ resource_id_ = id; };

Here is the caller graph for this function:

void Arc::JobSchedMetaData::setStartTime ( const Arc::Time start_time) [inline]

Definition at line 38 of file job_sched_meta.h.

{ start_time_ = start_time; };

Here is the caller graph for this function:


Member Data Documentation

Definition at line 21 of file job_sched_meta.h.

Definition at line 17 of file job_sched_meta.h.

Definition at line 19 of file job_sched_meta.h.

std::string Arc::JobSchedMetaData::failure_ [private]

Definition at line 14 of file job_sched_meta.h.

Definition at line 15 of file job_sched_meta.h.

Definition at line 16 of file job_sched_meta.h.

std::string Arc::JobSchedMetaData::resource_id_ [private]

Definition at line 13 of file job_sched_meta.h.

Definition at line 18 of file job_sched_meta.h.


The documentation for this class was generated from the following files: