public class AgentPersistence extends Object implements TeaPersistence
Constructor and Description |
---|
AgentPersistence(com.tibco.tea.agent.internal.types.AgentPersistenceConfig agentPersistenceConfig,
AgentTypeId agentTypeId,
Map<String,TeaObjectProvider<TeaObject>> teaObjectProviderCache,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
org.json.JSONObject |
getObject(String agentTypeName,
String agentTypeVersion,
String objectTypeName,
String key)
Retrieves the Shared Tea Object for the given arguments
|
List<org.json.JSONObject> |
getObjects(String agentTypeName,
String agentTypeVersion,
String objectTypeName)
Retrieves all the Shared Tea Objects for the given arguments
|
void |
share(TeaObject teaObject)
Shares the given tea object
|
public AgentPersistence(com.tibco.tea.agent.internal.types.AgentPersistenceConfig agentPersistenceConfig, AgentTypeId agentTypeId, Map<String,TeaObjectProvider<TeaObject>> teaObjectProviderCache, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public void share(TeaObject teaObject)
TeaPersistence
share
in interface TeaPersistence
public org.json.JSONObject getObject(String agentTypeName, String agentTypeVersion, String objectTypeName, String key)
TeaPersistence
getObject
in interface TeaPersistence
JSONObject
or null if no shared object is foundpublic List<org.json.JSONObject> getObjects(String agentTypeName, String agentTypeVersion, String objectTypeName)
TeaPersistence
getObjects
in interface TeaPersistence
Copyright © 2014 Cloud Software Group, Inc.. All Rights Reserved.