
public class PolicyFetch extends HelperBase
| Constructor and Description |
|---|
PolicyFetch() |
| Modifier and Type | Method and Description |
|---|---|
static org.miloss.fgsms.services.interfaces.policyconfiguration.StatisticalServicePolicy |
loadStatisticalDefaultPolicy(String url,
String machine,
String domain)
Loads the default policy for statistic services, does not register this
policy with the fgsms server
|
static org.miloss.fgsms.services.interfaces.policyconfiguration.TransactionalWebServicePolicy |
loadTranasctionalDefaultPolicy(String url)
Loads the default policy.
|
protected static String |
readAllText(InputStream in) |
static org.miloss.fgsms.services.interfaces.policyconfiguration.GlobalPolicy |
TryFetchGlobalPolicy()
* Attempts to retrieve the current global policy from the fgsms server
A successful return typically indicates that the server is up and
running.
|
static org.miloss.fgsms.services.interfaces.policyconfiguration.ServicePolicy |
TryFetchPolicy(String URI,
org.miloss.fgsms.services.interfaces.common.PolicyType policyType,
String domainname,
String hostname)
Gets a service policy from the fgsms server under the context of the an
agent meaning that if the policy does not exist, it will be created.
|
discoverEndpointspublic static org.miloss.fgsms.services.interfaces.policyconfiguration.GlobalPolicy TryFetchGlobalPolicy()
throws ConfigurationException
ConfigurationExceptionpublic static org.miloss.fgsms.services.interfaces.policyconfiguration.ServicePolicy TryFetchPolicy(String URI, org.miloss.fgsms.services.interfaces.common.PolicyType policyType, String domainname, String hostname) throws ConfigurationException
URI - policyType - domainname - hostname - ConfigurationExceptionprotected static String readAllText(InputStream in)
public static org.miloss.fgsms.services.interfaces.policyconfiguration.TransactionalWebServicePolicy loadTranasctionalDefaultPolicy(String url)
url - public static org.miloss.fgsms.services.interfaces.policyconfiguration.StatisticalServicePolicy loadStatisticalDefaultPolicy(String url, String machine, String domain)
url - machine - domain - Copyright © 2008–2017 MIL-OSS. All rights reserved.