All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.alphatier.java.CommitCreateAction Maven / Gradle / Ivy

Go to download

Alphatier is a resource management library. It is designed to allow different schedulers to share the resources of a pool of executors in order to execute tasks with those.

There is a newer version: 0.2.0
Show newest version
package io.alphatier.java;

import java.util.Map;

public final class CommitCreateAction extends CommitAction {
    private final String executorId;
    private final Map resources;
    private final Map metadata;

    public CommitCreateAction(final String taskId, final String executorId, final Number taskMetadataVersion,
                              final Number executorMetadataVersion, final Number executorTaskIdsVersion,
                              final Map resources, final Map metadata) {
        super(taskId, taskMetadataVersion, executorMetadataVersion, executorTaskIdsVersion);
        this.executorId = executorId;
        this.resources = resources;
        this.metadata = metadata;
    }

    public String getExecutorId() {
        return executorId;
    }

    public Map getResources() {
        return resources;
    }

    public Map getMetadata() {
        return metadata;
    }

    @Override
    public String toString() {
        return "CommitCreateAction{" +
                "taskId='" + getTaskId() + '\'' +
                ", executorId='" + executorId + '\'' +
                ", resources=" + resources +
                ", metadata=" + metadata +
                ", metadataVersion=" + getMetadataVersion() +
                ", executorMetadataVersion=" + getExecutorMetadataVersion() +
                ", executorTaskIdsVersion=" + getExecutorTaskIdsVersion() +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy