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

io.alphatier.java.Executor 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.Collection;
import java.util.Map;

public final class Executor {
    private final String id;
    private final Status status;
    private final Map resources;
    private final Map metadata;
    private final Number metadataVersion;
    private final Collection taskIds;
    private final Number taskIdsVersion;

    public Executor(final String id, final Status status, final Map resources,
             final Map metadata, final Number metadataVersion,
             final Collection taskIds, final Number taskIdsVersion) {
        this.id = id;
        this.status = status;
        this.resources = resources;
        this.metadata = metadata;
        this.metadataVersion = metadataVersion;
        this.taskIds = taskIds;
        this.taskIdsVersion = taskIdsVersion;
    }

    public String getId() {
        return id;
    }

    public Status getStatus() {
        return status;
    }

    public Map getResources() {
        return resources;
    }

    public Map getMetadata() {
        return metadata;
    }

    public Number getMetadataVersion() {
        return metadataVersion;
    }

    public Collection getTaskIds() {
        return taskIds;
    }

    public Number getTaskIdsVersion() {
        return taskIdsVersion;
    }

    @Override
    public String toString() {
        return "Executor{" +
                "id='" + id + '\'' +
                ", status=" + status +
                ", resources=" + resources +
                ", metadata=" + metadata +
                ", metadataVersion=" + metadataVersion +
                ", taskIds=" + taskIds +
                ", taskIdsVersion=" + taskIdsVersion +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy