|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConnectorEnvironment
The environment provided to a connector by the Connector Manager. The environment provides access to external resources the Connector writer may need.
Method Summary | |
---|---|
java.lang.String |
getConnectorName()
Get the name of the connector binding, as exposed in the console. |
java.lang.Object |
getFromCache(CacheScope scope,
java.lang.Object key)
Get the item from cache based on the scope provided; The required information like session-id, or vdb-name etc are gleaned from runtime context. |
ILanguageFactory |
getLanguageFactory()
Obtain a reference to the default LanguageFactory that can be used to construct new language interface objects. |
ConnectorLogger |
getLogger()
Obtain a reference to the logger that can be used to add messages to the MetaMatrix log files for debugging and error recovery. |
java.util.Properties |
getProperties()
Get all configuration properties provided in the Connector Binding for this connector instance. |
TypeFacility |
getTypeFacility()
Obtain a reference to the type facility, which can be used to perform many type conversions supplied by the Connector API. |
java.util.concurrent.ScheduledFuture<?> |
scheduleAtFixedRate(java.lang.Runnable command,
long initialDelay,
long period,
java.util.concurrent.TimeUnit unit)
Schedule a command for repeated execution with the same contract as ScheduledThreadPoolExecutor.scheduleAtFixedRate(Runnable, long, long, TimeUnit)
Executions will not happen concurrently. |
void |
storeInCache(CacheScope scope,
java.lang.Object key,
java.lang.Object value)
Store the item in the cache based on the scope provided.The required information like session-id, or vdb-name etc are gleaned from runtime context. |
Methods inherited from interface java.util.concurrent.Executor |
---|
execute |
Method Detail |
---|
java.util.Properties getProperties()
java.lang.String getConnectorName()
ConnectorLogger getLogger()
ConnectorLogger
ILanguageFactory getLanguageFactory()
TypeFacility getTypeFacility()
java.util.concurrent.ScheduledFuture<?> scheduleAtFixedRate(java.lang.Runnable command, long initialDelay, long period, java.util.concurrent.TimeUnit unit)
ScheduledThreadPoolExecutor.scheduleAtFixedRate(Runnable, long, long, TimeUnit)
Executions will not happen concurrently. If an execution takes longer than a period,
the next execution will take place on the first period interval after completion.
command
- initialDelay
- period
- unit
-
java.lang.Object getFromCache(CacheScope scope, java.lang.Object key)
scope
- - scope of the cache; CacheScope.REQUEST
, scope is not supported, as request information is not
visible. use ExecutionContext.
on ExecutionContext
key
-
void storeInCache(CacheScope scope, java.lang.Object key, java.lang.Object value)
scope
- - scope of the cache; CacheScope.REQUEST
, scope is not supported.
on ExecutionContext
key
- value
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |