#------------------------------------------------------------
# Copyright (C) 2013 RoyaltyShare, Inc.   All Rights Reserved
# $Id$
#------------------------------------------------------------
package BookPub::Stats::Job::Build;

use strict;
use warnings;

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

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

    my $clientID = $self->clientID();

    my $force = $self->getCommandLineArg('force');

    my $commandLine = "nice /app/tools/bookpub/bin/stats/build_sale_aggregates.pl -c $clientID";
    $commandLine .= " -f" if $force;
    return $commandLine;
}

sub _defaultClass    { return 'Stats'; }
sub _defaultSubclass { return 'Build'; }
sub _defaultPriority { return Job::Job::kPriorityHigh; }

###
1;    #
###
