@Service
public class TaskSubmitter
extends java.lang.Object
| Constructor and Description |
|---|
TaskSubmitter(org.springframework.jms.core.JmsTemplate injectedJmsTemplate,
ApplicationProperties injectedApplicationProperties)
Constructor responsible for our DI.
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateCurseProject(java.lang.String projectIDAndFileID)
Submit a task for the generation of a server pack from a CurseForge project and file id combination.
|
void |
generateZip(java.lang.String zipGenerationProperties)
Submit a task for the generation of a server pack from a ZIP-archive.
|
void |
scanCurseProject(java.lang.String projectIDAndFileID)
Submit a task for scanning a CurseForge project and file id combination.
|
@Autowired
public TaskSubmitter(org.springframework.jms.core.JmsTemplate injectedJmsTemplate,
ApplicationProperties injectedApplicationProperties)
injectedJmsTemplate - Instance of JmsTemplate.injectedApplicationProperties - Instance of ApplicationProperties.public void scanCurseProject(java.lang.String projectIDAndFileID)
projectIDAndFileID - The CurseForge project and file id combinationpublic void generateCurseProject(java.lang.String projectIDAndFileID)
projectIDAndFileID - The CurseForge project and file id combination.public void generateZip(java.lang.String zipGenerationProperties)
zipGenerationProperties - String containing all information required to generate a server pack from
a ZIP-archive. See ZipController.requestGenerationFromZip(String, String, String, String, String, boolean).