de.mklinger.qetcher.client.model.v1.impl.AvailableNodesImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qetcher-client-bundle Show documentation
Show all versions of qetcher-client-bundle Show documentation
Qetcher Java client, OSGi bundle, minimal dependencies
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