public class GridClient extends Object implements Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
GridClient.AgentCommunicationException |
| Modifier and Type | Field and Description |
|---|---|
protected AgentTokenServices |
localAgentTokenServices |
protected MessageHandlerPool |
localMessageHandlerPool |
static String |
SELECTION_CRITERION_THREAD |
| Constructor and Description |
|---|
GridClient(TokenRegistry tokenRegistry,
GridFileService fileService) |
| Modifier and Type | Method and Description |
|---|---|
OutputMessage |
call(TokenWrapper tokenWrapper,
String function,
javax.json.JsonObject argument,
String handler,
FileManagerClient.FileVersionId handlerPackage,
Map<String,String> properties,
int callTimeout) |
void |
close() |
TokenWrapper |
getLocalTokenHandle() |
TokenWrapper |
getTokenHandle(Map<String,String> attributes,
Map<String,Interest> interests,
boolean createSession) |
String |
registerFile(File file) |
void |
returnTokenHandle(TokenWrapper tokenWrapper) |
public static final String SELECTION_CRITERION_THREAD
protected AgentTokenServices localAgentTokenServices
protected MessageHandlerPool localMessageHandlerPool
public GridClient(TokenRegistry tokenRegistry, GridFileService fileService)
public TokenWrapper getLocalTokenHandle()
public TokenWrapper getTokenHandle(Map<String,String> attributes, Map<String,Interest> interests, boolean createSession) throws GridClient.AgentCommunicationException
public void returnTokenHandle(TokenWrapper tokenWrapper) throws GridClient.AgentCommunicationException
public OutputMessage call(TokenWrapper tokenWrapper, String function, javax.json.JsonObject argument, String handler, FileManagerClient.FileVersionId handlerPackage, Map<String,String> properties, int callTimeout) throws Exception
Exceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2018. All rights reserved.