Modifier | Constructor and Description |
---|---|
protected |
DataPusher()
used only for the Persistent storage agent
|
|
DataPusher(HashMap cache,
ConcurrentLinkedQueue queue) |
Modifier and Type | Method and Description |
---|---|
protected static AddMoreData |
CheckPersistStore()
checks the local file system for files that were not able to be sent if
present,
|
protected static void |
EnsureFolderExists(String folder) |
protected static void |
Init()
loads all configuration data, setups up the remote service proxies for
PCS and DCS
|
protected static String |
IpWrapAndCacher(String URL,
boolean isclient)
caches IP to DNS mappings to speed up performance this may block if an ip
address is not resolvable or there is some kind of DNS related problem
|
static ServicePolicyResponseMsg |
LoadDefaultPolicy(String url)
Loads the default policy from disk defaultpolicy.xml
|
static List<IEndpointDiscovery> |
LoadEndpointProviders(ConfigLoader cl) |
static PolicyHelper |
LoadPolicy(String url,
boolean isclient)
Entry point for loading a policy, if one cannot be fetched from the PCS,
the default policy is returned
|
protected static String |
ReadAllText(InputStream in) |
void |
run()
Run's until the outbound queue is empty, sends at most 40 message or 1 MB
of data (if message logging is on) at a time.
|
protected static void |
StorePersist(AddMoreData req)
serializes the request to a string, encrypts it, then stores it to disk
|
public DataPusher(HashMap cache, ConcurrentLinkedQueue queue)
protected DataPusher()
protected static void Init()
protected static String IpWrapAndCacher(String URL, boolean isclient)
URL
- isclient
- public static PolicyHelper LoadPolicy(String url, boolean isclient)
url
- public static ServicePolicyResponseMsg LoadDefaultPolicy(String url)
url
- public void run()
protected static AddMoreData CheckPersistStore()
protected static void EnsureFolderExists(String folder)
protected static void StorePersist(AddMoreData req)
protected static String ReadAllText(InputStream in)
public static List<IEndpointDiscovery> LoadEndpointProviders(ConfigLoader cl)
Copyright © 2008–2017 MIL-OSS. All rights reserved.