#------------------------------------------------------------
# Copyright (C) 2008 RoyaltyShare, Inc.   All Rights Reserved
# $Id$
#------------------------------------------------------------
package BookPub::Sale::Job::FetchSalesFeeds;

use strict;
use warnings;

use Sys::Hostname;

use lib '/app/tools/common/lib';
use Common::Log;
use Common::Assert;
use Common::RSApp;

use lib '/app/tools/bookpub/lib';
use BookPub::Config;

use lib '/app/tools/job/lib';
use Job::Job;

use base 'Job::Job';

sub _generateCommandLine {
    my ($self) = @_;

    # Let's go ahead and construct everything now.
    #
    my $clientID = $self->clientID();

    my $config     = BookPub::Config->new();
    my $scriptPath = $config->get('rdas_script_dir');

    my $commandLine = "nice $scriptPath/fetch_sales_data -c $clientID -f";

    return $commandLine;
}

# why bother logging someplace special?
#
#sub generateLogBasePath
#{
#    my ($self) = @_;
#
#    my $config = BookPub::Config->new();
#    return $config->get('dump_report_log_dir');
#}

sub _defaultClass    { return 'RDAS'; }
sub _defaultSubclass { return 'FetchSalesFeeds'; }
sub _defaultPriority { return Job::Job::kPriorityNormal; }

###
1;    #
###

