Package com.artipie.npm.events
Class NpmProxyPackageProcessor
java.lang.Object
com.artipie.scheduling.QuartzJob
com.artipie.npm.events.NpmProxyPackageProcessor
- All Implemented Interfaces:
org.quartz.Job
public final class NpmProxyPackageProcessor
extends com.artipie.scheduling.QuartzJob
We can assume that repository actually contains some package, if:
1) tgz archive is valid and we obtained package id and version from it
2) repository has corresponding package json metadata file with such version and path to tgz
When both conditions a met, we can add package record into database.
1) tgz archive is valid and we obtained package id and version from it
2) repository has corresponding package json metadata file with such version and path to tgz
When both conditions a met, we can add package record into database.
- Since:
- 1.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(org.quartz.JobExecutionContext context) void
Setter for events queue.void
Set repository host.void
setPackages
(Queue<com.artipie.scheduling.ProxyArtifactEvent> queue) Packages queue setter.void
setStorage
(Storage storage) Repository storage setter.Methods inherited from class com.artipie.scheduling.QuartzJob
stopJob
-
Constructor Details
-
NpmProxyPackageProcessor
public NpmProxyPackageProcessor()
-
-
Method Details
-
execute
public void execute(org.quartz.JobExecutionContext context) -
setEvents
Setter for events queue.- Parameters:
queue
- Events queue
-
setPackages
Packages queue setter.- Parameters:
queue
- Queue with package tgz key and owner
-
setStorage
Repository storage setter.- Parameters:
storage
- Storage
-
setHost
Set repository host.- Parameters:
url
- The host
-