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 |
protected ConcurrentHashMap<String,TokenReservationSession> |
localTokenSessions |
static String |
SELECTION_CRITERION_THREAD |
| Constructor and Description |
|---|
GridClientImpl(Grid grid) |
GridClientImpl(GridClientConfiguration gridClientConfiguration,
Grid grid) |
GridClientImpl(GridClientConfiguration gridClientConfiguration,
TokenLifecycleStrategy tokenLifecycleStrategy,
Grid grid) |
| Modifier and Type | Method and Description |
|---|---|
OutputMessage |
call(TokenWrapper tokenWrapper,
com.fasterxml.jackson.databind.JsonNode argument,
String handler,
FileVersionId handlerPackage,
Map<String,String> properties,
int callTimeout) |
void |
close() |
TokenWrapper |
getLocalTokenHandle() |
FileVersion |
getRegisteredFile(FileVersionId fileVersionId)
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) |
protected boolean |
isLocal(TokenWrapper tokenWrapper) |
FileVersion |
registerFile(File file)
Register a file into the GRID
|
void |
returnTokenHandle(TokenWrapper tokenWrapper) |
public static final String SELECTION_CRITERION_THREAD
protected ConcurrentHashMap<String,TokenReservationSession> localTokenSessions
protected AgentTokenServices localAgentTokenServices
protected MessageHandlerPool localMessageHandlerPool
public GridClientImpl(Grid grid)
public GridClientImpl(GridClientConfiguration gridClientConfiguration, Grid grid)
public GridClientImpl(GridClientConfiguration gridClientConfiguration, TokenLifecycleStrategy tokenLifecycleStrategy, Grid grid)
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.AgentCommunicationExceptionprotected boolean isLocal(TokenWrapper tokenWrapper)
public OutputMessage call(TokenWrapper tokenWrapper, com.fasterxml.jackson.databind.JsonNode argument, String handler, FileVersionId handlerPackage, Map<String,String> properties, int callTimeout) throws Exception
call in interface GridClientExceptionprotected TokenLifecycleStrategyCallback getTokenLifecycleCallback(TokenWrapper tokenWrapper)
public void close()
close in interface Closeableclose in interface AutoCloseableclose in interface GridClientpublic FileVersion registerFile(File file) throws FileManagerException
GridFileServiceregisterFile in interface GridFileServicefile - the file to be registered to the GRIDFileManagerExceptionpublic FileVersion getRegisteredFile(FileVersionId fileVersionId) throws FileManagerException
GridFileServicegetRegisteredFile in interface GridFileServicefileVersionId - the handle returned at regitrationFileManagerExceptionCopyright © 2019. All rights reserved.