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

de.mklinger.qetcher.client.model.v1.impl.AvailableNodesImpl Maven / Gradle / Ivy

There is a newer version: 2.0.42.rc
Show newest version
package de.mklinger.qetcher.client.model.v1.impl;

import java.util.List;

import de.mklinger.micro.lists.Lists;
import de.mklinger.qetcher.client.model.v1.AvailableNode;
import de.mklinger.qetcher.client.model.v1.AvailableNodes;
import de.mklinger.qetcher.client.model.v1.builder.AvailableNodesBuilder;

/**
 * All client available nodes in the cluster.
 *
 * This model class is not used internally, but only in v1 REST service and
 * Qetcher client.
 *
 * @author Marc Klinger - mklinger[at]mklinger[dot]de
 */
public class AvailableNodesImpl implements AvailableNodes {
	private final List availableNodes;

	public AvailableNodesImpl(final AvailableNodesBuilder builder) {
		this.availableNodes = Lists.newImmutableList(builder.getAvailableNodes());
	}

	@Override
	public List getAvailableNodes() {
		return availableNodes;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy