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

dev.galasa.zosmf.spi.IZosmfManagerSpi Maven / Gradle / Ivy

There is a newer version: 0.38.0
Show newest version
/*
 * Licensed Materials - Property of IBM
 * 
 * (c) Copyright IBM Corp. 2019.
 */
package dev.galasa.zosmf.spi;

import java.util.Map;

import javax.validation.constraints.NotNull;

import dev.galasa.zos.IZosImage;
import dev.galasa.zosmf.IZosmf;
import dev.galasa.zosmf.IZosmfManager;
import dev.galasa.zosmf.IZosmfRestApiProcessor;
import dev.galasa.zosmf.ZosmfManagerException;

/**
 * Provides the SPI access to the zOSMF Manager
 *
 */
public interface IZosmfManagerSpi extends IZosmfManager {
    
    /**
     * Returns a zOSMF server for a single image
     * @param image requested image
     * @return the zOSMF server
     * @throws ZosmfManagerException
     */
    public IZosmf newZosmf(IZosImage image) throws ZosmfManagerException;
    
    /**
     * Returns a map of zOSMF servers for a cluster
     * @param clusterId the cluster id
     * @return the zOSMF servers
     * @throws ZosmfManagerException
     */
    public Map getZosmfs(@NotNull String clusterId) throws ZosmfManagerException;

    /**
     * Returns a {@link IZosmfRestApiProcessor} for a single image
     * @param image
     * @param restrictToImage
     * @return {@link IZosmfRestApiProcessor}
     * @throws ZosmfManagerException
     */
    public IZosmfRestApiProcessor newZosmfRestApiProcessor(IZosImage image, boolean restrictToImage) throws ZosmfManagerException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy