
public class PolicyFetch extends HelperBase
| Constructor and Description |
|---|
PolicyFetch() |
| Modifier and Type | Method and Description |
|---|---|
static 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 TransactionalWebServicePolicy |
loadTranasctionalDefaultPolicy(String url)
Loads the default policy.
|
protected static String |
readAllText(InputStream in) |
static 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 ServicePolicy |
TryFetchPolicy(String URI,
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 GlobalPolicy TryFetchGlobalPolicy() throws ConfigurationException
ConfigurationExceptionpublic static ServicePolicy TryFetchPolicy(String URI, PolicyType policyType, String domainname, String hostname) throws ConfigurationException
URI - policyType - domainname - hostname - ConfigurationExceptionprotected static String readAllText(InputStream in)
public static TransactionalWebServicePolicy loadTranasctionalDefaultPolicy(String url)
url - public static StatisticalServicePolicy loadStatisticalDefaultPolicy(String url, String machine, String domain)
url - machine - domain - Copyright © 2008–2017 MIL-OSS. All rights reserved.