disambiguate util/backend package and remove backend prelaod

This commit is contained in:
Oliver Gorwits
2017-09-03 16:17:29 +01:00
parent 98bff731bd
commit 36b4adcc06
5 changed files with 5 additions and 21 deletions

View File

@@ -29,26 +29,10 @@ BEGIN {
setting('workers')->{'BACKEND'} ||= (hostfqdn || 'fqdn-undefined');
}
use App::Netdisco::Util::Backend;
use App::Netdisco::Util::MCE; # set $0 and parse maxworkers
use NetAddr::IP::Lite ':lower'; # to quench AF_INET6 symbol errors
use Role::Tiny::With;
# preload all worker modules into shared memory
use App::Netdisco::Backend::Job ();
use App::Netdisco::Backend::Util ();
use App::Netdisco::Backend::Worker::Common ();
use App::Netdisco::Backend::Worker::Interactive::DeviceActions ();
use App::Netdisco::Backend::Worker::Interactive::PortActions ();
use App::Netdisco::Backend::Worker::Manager ();
use App::Netdisco::Backend::Worker::Poller::Arpnip ();
use App::Netdisco::Backend::Worker::Poller::Common ();
use App::Netdisco::Backend::Worker::Poller::Device ();
use App::Netdisco::Backend::Worker::Poller::Expiry ();
use App::Netdisco::Backend::Worker::Poller::Macsuck ();
use App::Netdisco::Backend::Worker::Poller::Nbtstat ();
use App::Netdisco::Backend::Worker::Poller ();
use App::Netdisco::Backend::Worker::Scheduler ();
use MCE::Signal '-setpgrp';
use MCE::Flow Sereal => 1;
use MCE::Queue;

View File

@@ -3,7 +3,7 @@ package App::Netdisco::Backend::Worker::Common;
use Dancer qw/:moose :syntax :script/;
use Try::Tiny;
use App::Netdisco::Util::Backend;
use App::Netdisco::Util::MCE;
use Role::Tiny;
use namespace::clean;

View File

@@ -3,7 +3,7 @@ package App::Netdisco::Backend::Worker::Manager;
use Dancer qw/:moose :syntax :script/;
use List::Util 'sum';
use App::Netdisco::Util::Backend;
use App::Netdisco::Util::MCE;
use Role::Tiny;
use namespace::clean;

View File

@@ -3,7 +3,7 @@ package App::Netdisco::Backend::Worker::Scheduler;
use Dancer qw/:moose :syntax :script/;
use Algorithm::Cron;
use App::Netdisco::Util::Backend;
use App::Netdisco::Util::MCE;
use Role::Tiny;
use namespace::clean;

View File

@@ -1,4 +1,4 @@
package App::Netdisco::Util::Backend;
package App::Netdisco::Util::MCE;
use strict;
use warnings;