package org.ovirt.engine.core.common.vdscommands.gluster;

import java.util.List;

import org.ovirt.engine.core.common.vdscommands.VdsIdVDSCommandParametersBase;
import org.ovirt.engine.core.compat.Guid;

/**
 * VDS parameters class with Server ID and service names as parameters, Used by the "Gluster Services List" command.
 */
public class GlusterServicesListVDSParameters extends VdsIdVDSCommandParametersBase {
    private List<String> serviceNames;

    public GlusterServicesListVDSParameters(Guid serverId, List<String> serviceNames) {
        super(serverId);
        this.serviceNames = serviceNames;
    }

    public List<String> getServiceNames() {
        return serviceNames;
    }
}

package org.ovirt.engine.core.common.vdscommands.gluster;

import java.util.Set;

import org.ovirt.engine.core.common.vdscommands.VdsIdVDSCommandParametersBase;
import org.ovirt.engine.core.compat.Guid;

/**
 * VDS parameters class with Server ID and service names as parameters, Used by the "Gluster Services List" command.
 */
public class GlusterServicesListVDSParameters extends VdsIdVDSCommandParametersBase {
    private Set<String> serviceNames;

    public GlusterServicesListVDSParameters(Guid serverId, Set<String> serviceNames) {
        super(serverId);
        this.serviceNames = serviceNames;
    }

    public Set<String> getServiceNames() {
        return serviceNames;
    }
}

Use Set instead of List for serviceNames
gluster: Use Set instead of List for serviceNames

Use Set instead of List for serviceNames in GlusterServicesListVDSParameters

Change-Id: I26109a71448968fea0055c3d2df3c843e23d70f3
Signed-off-by: Shireesh Anjal <e067aec2602d7afc6292cb46e15bf5a637d10090@gmail.com>
