public class GridClientImpl extends Object implements GridClient
| Modifier and Type | Class and Description |
|---|---|
static class |
GridClientImpl.AgentCallTimeoutException |
static class |
GridClientImpl.AgentCommunicationException |
static class |
GridClientImpl.AgentSideException |
| Modifier and Type | Field and Description |
|---|---|
protected AgentTokenServices |
localAgentTokenServices |
protected MessageHandlerPool |
localMessageHandlerPool |
static String |
SELECTION_CRITERION_THREAD |
| Constructor and Description |
|---|
GridClientImpl(GridClientConfiguration gridClientConfiguration,
TokenRegistry tokenRegistry,
GridFileService fileService) |
GridClientImpl(GridClientConfiguration gridClientConfiguration,
TokenRegistry tokenRegistry,
TokenLifecycleStrategy tokenLifecycleStrategy,
GridFileService fileService) |
GridClientImpl(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() |
File |
getRegisteredFile(String fileHandle)
Get a file that has been previously registered to the GRID
|
TokenWrapper |
getTokenHandle(Map<String,String> attributes,
Map<String,Interest> interests,
boolean createSession) |
protected TokenLifecycleStrategyCallback |
getTokenLifecycleCallback(TokenWrapper tokenWrapper) |
String |
registerFile(File file)
Register a file into the GRID
|
void |
returnTokenHandle(TokenWrapper tokenWrapper) |
public static final String SELECTION_CRITERION_THREAD
protected AgentTokenServices localAgentTokenServices
protected MessageHandlerPool localMessageHandlerPool
public GridClientImpl(TokenRegistry tokenRegistry, GridFileService fileService)
public GridClientImpl(GridClientConfiguration gridClientConfiguration, TokenRegistry tokenRegistry, GridFileService fileService)
public GridClientImpl(GridClientConfiguration gridClientConfiguration, TokenRegistry tokenRegistry, TokenLifecycleStrategy tokenLifecycleStrategy, GridFileService fileService)
public TokenWrapper getLocalTokenHandle()
getLocalTokenHandle in interface GridClientpublic TokenWrapper getTokenHandle(Map<String,String> attributes, Map<String,Interest> interests, boolean createSession) throws GridClientImpl.AgentCommunicationException
getTokenHandle in interface GridClientGridClientImpl.AgentCommunicationExceptionpublic void returnTokenHandle(TokenWrapper tokenWrapper) throws GridClientImpl.AgentCommunicationException
returnTokenHandle in interface GridClientGridClientImpl.AgentCommunicationExceptionpublic OutputMessage call(TokenWrapper tokenWrapper, String function, javax.json.JsonObject argument, String handler, FileManagerClient.FileVersionId handlerPackage, Map<String,String> properties, int callTimeout) throws Exception
call in interface GridClientExceptionprotected TokenLifecycleStrategyCallback getTokenLifecycleCallback(TokenWrapper tokenWrapper)
public String registerFile(File file)
GridFileServiceregisterFile in interface GridFileServicefile - the file to be registered to the GRIDpublic File getRegisteredFile(String fileHandle)
GridFileServicegetRegisteredFile in interface GridFileServicefileHandle - the handle returned at regitrationpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface GridClientCopyright © 2018. All rights reserved.