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

dev.galasa.zosmf.internal.properties.ServerHostname 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.internal.properties;

import dev.galasa.framework.spi.ConfigurationPropertyStoreException;
import dev.galasa.framework.spi.cps.CpsProperties;
import dev.galasa.zosmf.ZosmfManagerException;

/**
 * zOSMF Server hostname
 * 
 * @galasa.cps.property
 * 
 * @galasa.name zosmf.server.[imageid].hostname
 * 
 * @galasa.description The hostname zOSMF server
 * 
 * @galasa.required Yes
 * 
 * @galasa.default None
 * 
 * @galasa.valid_values 
 * 
 * @galasa.examples 
 * zosmf.server.hostname=zosmfserver.ibm.com
* zosmf.server.SYSA.hostname=zosmfserver.ibm.com * */ public class ServerHostname extends CpsProperties { public static String get(String imageId) throws ZosmfManagerException { try { String serverHostname = getStringNulled(ZosmfPropertiesSingleton.cps(), "server", "hostname", imageId); if (serverHostname == null) { throw new ZosmfManagerException("Value for zOSMF server hostname not configured for zOS image " + imageId); } return serverHostname; } catch (ConfigurationPropertyStoreException e) { throw new ZosmfManagerException("Problem asking the CPS for the zOSMF server hostname property for zOS image " + imageId, e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy