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

io.alphatier.java.ExecutorRegistration 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 ExecutorRegistration {
    private final String id;
    private final Map resources;
    private final Map metadata;
    private final Number metadataVersion;
    private final Collection tasks;
    private final Number taskIdsVersion;

    public ExecutorRegistration(final String id, final Map resources, final Map metadata,
                                final Number metadataVersion, final Collection tasks,
                                final Number taskIdsVersion) {
        this.id = id;
        this.resources = resources;
        this.metadata = metadata;
        this.metadataVersion = metadataVersion;
        this.tasks = tasks;
        this.taskIdsVersion = taskIdsVersion;
    }

    public String getId() {
        return id;
    }

    public Map getResources() {
        return resources;
    }

    public Map getMetadata() {
        return metadata;
    }

    public Number getMetadataVersion() {
        return metadataVersion;
    }

    public Collection getTasks() {
        return tasks;
    }

    public Number getTaskIdsVersion() {
        return taskIdsVersion;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy