public class HTTPDataspaceAccessor extends java.lang.Object implements DataspaceAccessor, com.streamscape.sef.dispatcher.DataspaceAccessorForJDBC, com.streamscape.sef.dispatcher.AccessibleObjectComponent
Title: HTTP Fabric Client
Description: This class is used to invoke methods of a dataspace.
Copyright: Copyright (c) 2012
Company: StreamScape Technologies
CALL_FUNCTION, COMMIT, CREATE_COLLECTION_FACTORY, DROP_COLLECTION, DROP_COLLECTION_FACTORY, EXECUTE_QUERY, EXISTS_ACTIONABLE_EVENT, EXISTS_EVENT_TRIGGER, GET_AUTO_COMMIT, GET_DOWNLOADABLE_BLOB_SIZE, GET_EVENT_TRIGGER_DEFINITION, GET_EVENT_TRIGGER_DEFINITIONS, GET_FETCH_SIZE, GET_LAST_ERROR, GET_SESSION_CONTEXT, GET_TRANSACTION_ISOLATION, GET_TRANSFER_BUFFER_SIZE, GET_TRIGGER_ACTION_TIME, GET_TRIGGER_STATE, HAS_EVENT_TRIGGERS, INTERRUPT_TRANSACTION, IS_CLOSED, IS_READONLY, LIST_ACTIONABLE_EVENTS, LIST_COLLECTIONS, LIST_EVENT_TRIGGERS, LOOKUP_COLLECTION, LOOKUP_COLLECTION_FACTORY, ROLLBACK, SET_AUTO_COMMIT, SET_DOWNLOADABLE_BLOB_SIZE, SET_FETCH_SIZE, SET_READ_ONLY, SET_REQUEST_TIMEOUT, SET_SESSION_CONTEXT, SET_TRANSACTION_ISOLATION, SET_TRANSFER_BUFFER_SIZE, STORE_COLLECTION_FACTORY
Modifier and Type | Method and Description |
---|---|
void |
addEventTrigger(java.lang.String triggerSyntax)
Adds a new event trigger to the component.
|
void |
alterEventTrigger(java.lang.String triggerSyntax)
Alters event trigger.
|
boolean |
autoSwitching()
Checks if the accessor will automatically switch to another suitable component located in a node with a higher weight
(see
FabricNodeReference.getWeight() for details) or in a node from the same cluster as the current node. |
java.lang.Object |
callFunction(java.lang.String query)
Calls specified function and returns function result or RowSet.
|
java.lang.Object |
callFunction(java.lang.String query,
java.lang.Object[] params)
Calls specified function with specified parameters and returns function result or RowSet.
|
void |
close()
Closes the accessor.
|
void |
commit()
Makes all changes made since the previous commit/rollback permanent and releases
any resource locks currently held by the accessed dataspace.
|
void |
compileEventTrigger(java.lang.String triggerName)
Compiles the trigger into a full fledged consumer by validating the script, loading it's trigger
action and initializing the filtering logic.
|
CollectionFactory |
createCollectionFactory(CollectionType type)
Creates and returns collection of specified type.
|
OpaqueEvent |
createOpaqueEvent(java.lang.String eventId,
java.lang.Object data) |
void |
disableEventTrigger(java.lang.String triggerName)
If service is running sets enabled to false and disables a trigger with a given name, halting event processing.
|
void |
dropCollection(java.lang.String name)
Drops collection with specified name.
|
void |
dropCollectionFactory(java.lang.String name)
Drops CollectionFactory with specified name in current dataspace.
|
void |
enableEventTrigger(java.lang.String triggerName)
If service is running sets enabled to true and enables a trigger with a given name allowing it to process events.
|
RowSet |
executeQuery(java.lang.String query)
Executes query and returns result RowSet.
|
RowSet |
executeQuery(java.lang.String query,
java.lang.Object[] params)
Executes query with specified parameters and returns result RowSet.
|
boolean |
existsActionableEvent(java.lang.String eventId)
Checks if an event with the specified id is registered as actionable.
|
boolean |
existsEventTrigger(java.lang.String triggerName)
Checks if an event trigger with the specified name exists in the configuration.
|
java.lang.String |
getAccessorName()
Returns the name of the accessor.
|
java.lang.String |
getActualNodeName()
Returns a name of the actual node containing the accessed component.
|
boolean |
getAutoCommit()
Retrieves the current auto-commit mode for the accessed dataspace.
|
java.lang.String |
getComponentFullNameWithNode() |
ComponentModel |
getComponentModel()
Returns a model of the accessed component.
|
java.lang.String |
getComponentName()
Returns a name of the accessed component.
|
java.lang.String |
getComponentType()
Returns a type of the accessed component.
|
int |
getDownloadableBlobSize()
Returns downloadableBlobSize.
|
EventScope |
getEventScope()
Returns an event scope of the accessor.
|
EventTriggerData |
getEventTriggerData(java.lang.String triggerName)
Returns event trigger data.
|
EventTriggerDefinition |
getEventTriggerDefinition(java.lang.String triggerName)
Returns a trigger definition with a specific name.
|
java.util.List |
getEventTriggerDefinitions()
Returns a list of event trigger definitions in this configuration.
|
java.lang.String |
getEventTriggerSyntax(java.lang.String triggerName)
Returns full event trigger syntax.
|
int |
getFetchSize()
Returns fetchSize.
|
java.lang.String |
getLastError(java.lang.String triggerName)
Returns last error which occurred on trigger invocation,
null if trigger doesn't exist or no errors occurred.
|
java.lang.String |
getName()
Returns the full name name of the entity.
|
java.lang.String |
getNodeName()
Returns a name of the node that should contain the accessed component.
|
long |
getRequestTimeout()
Returns a time (in milliseconds) of waiting for a response in
invokeRequest methods. |
AccessorSessionReference |
getSession()
Returns the accessor session.
|
com.streamscape.slex.file.SLFileSessionContext |
getSessionContext()
Returns session context for current session.
|
int |
getSessionState()
Returns the state of the session of this accessor.
|
int |
getTransactionIsolation()
Retrieves the current transaction isolation level for the accessed dataspace.
|
int |
getTransferBufferSize()
Returns transferBufferSize.
|
TriggerActionTime |
getTriggerActionTime(java.lang.String triggerName)
Returns trigger type.
|
EventTriggerState |
getTriggerState(java.lang.String triggerName)
Returns trigger state, null if trigger doesn't exist
|
boolean |
hasActionableEvents()
Indicates if the component has actionable events.
|
boolean |
hasEventTriggers()
Indicates if the configuration has event triggers.
|
boolean |
hasSinkEvents()
Indicates if the component has any event handlers.
|
SLResponse |
invokeCompleteRequest(java.lang.String statement)
Performs the
FabricComponentAccessor.invokeCompleteRequest(String, long) with a timeout
previously set by the FabricComponentAccessor.setRequestTimeout(long) method or default timeout (30 seconds). |
SLResponse |
invokeCompleteRequest(java.lang.String statement,
long timeout)
Sends the completion request for specified statement and waits until a response will be received or waiting period will expire.
|
SLResponse |
invokeInterruptRequest(java.lang.String command)
Sends the interruption request for specified statement and waits until a response will be received or waiting period will expire.
|
SLResponse |
invokeLanguageRequest(SLStatement statement)
Performs the
FabricComponentAccessor.invokeLanguageRequest(com.streamscape.sdo.operation.SLStatement, long) with a timeout
previously set by the FabricComponentAccessor.setRequestTimeout(long) method or default timeout (30 seconds). |
SLResponse |
invokeLanguageRequest(SLStatement statement,
long timeout)
Sends the specified statement and waits until a response will be received or waiting period will expire.
|
SLResponse |
invokeLanguageRequest(java.lang.String statement)
Performs the
FabricComponentAccessor.invokeLanguageRequest(String, long) with a timeout
previously set by the FabricComponentAccessor.setRequestTimeout(long) method or default timeout (30 seconds). |
SLResponse |
invokeLanguageRequest(java.lang.String statement,
long timeout)
Sends the specified statement and waits until a response will be received or waiting period will expire.
|
boolean |
isAvailable()
Checks if the accessed component is available.
|
boolean |
isClosed()
Checks if the accessed dataspace is closed.
|
boolean |
isEventTriggerAutoEnable(java.lang.String triggerName)
Returns event trigger auto-enable flag.
|
boolean |
isOpened()
Checks if the accessor is opened.
|
boolean |
isReadOnly()
Checks if the accessed dataspace is in read-only mode.
|
java.util.List |
listActionableEvents()
Lists all registered actionable events for this component.
|
java.util.List |
listCollections()
Returns list of all collection names in current dataspace.
|
java.util.List |
listEventTriggers()
Returns a list of event triggers set on this component.
|
java.util.List |
listSinkEvents()
Lists all registered events processed by this component's handlers.
|
DataCollection |
lookupCollection(java.lang.String name)
Lookups and returns collection with specified name.
|
CollectionFactory |
lookupCollectionFactory(java.lang.String name)
Lookups and returns CollectionFactory with specified name in current dataspace.
|
FabricNodeReference |
lookupFabricNode(java.lang.String name) |
static void |
processAccessibleObjects(java.lang.Object response,
java.lang.Object accessor) |
ImmutableEventDatagram |
raiseDataspaceWriteMessage(OpaqueEvent event,
long timeout)
private method for JDBC client connection
|
ImmutableEventDatagram |
raiseSystemRequest(ImmutableEventDatagram request,
long timeout) |
void |
removeAllEventTriggers()
Removes all event triggers from this component.
|
void |
removeEventTrigger(java.lang.String triggerName)
Removes an event trigger from the component.
|
boolean |
resync()
Resynchronizes the accessor.
|
void |
rollback()
Undoes all changes made in the current transaction and releases any
locks currently held by the accessed dataspace.
|
void |
setAutoCommit(boolean autoCommit)
Sets an auto-commit mode of the accessed dataspace to the specified state.
|
void |
setAutoSwitching(boolean autoSwitching)
Sets a parameter specifying if the accessor will automatically switch to another suitable component located in a node
with a higher weight (see
FabricNodeReference.getWeight() for details) or in a node from the same cluster as the current node. |
void |
setDownloadableBlobSize(int downloadableBlobSize)
Sets maximum size of blob that can be transferred with first response.
|
void |
setEventTriggerAutoEnable(java.lang.String triggerName,
boolean autoEnable)
Sets event trigger auto-enable flag.
|
void |
setFetchSize(int fetchSize)
Sets fetchSize for executeQuery.
|
void |
setReadOnly(boolean readOnly)
Puts the accessed dataspace into read-only mode.
|
void |
setRequestTimeout(long timeout)
Sets a time (in milliseconds) of waiting for a response in
invokeRequest methods. |
void |
setSessionContext(com.streamscape.slex.file.SLFileSessionContext sessionContext)
Sets session context for current session.
|
void |
setStateListener(FabricComponentAccessorStateListener listener)
This operation is not supported.
|
void |
setStateListener(FabricComponentAccessorStateListener listener,
long repeatInterval)
This operation is not supported.
|
void |
setTransactionIsolation(int level)
Attempts to change the transaction isolation level for the accessed dataspace.
|
void |
setTransferBufferSize(int transferBufferSize)
Sets transferBufferSize used to transfer files beetwen client and server contexts in file operations.
|
void |
storeCollectionFactory(java.lang.String name,
CollectionFactory factory)
Stores provided collection factory with specified name in current dataspace memory.
|
boolean |
switchComponent()
Switches to another suitable component located in a node with a higher weight (see
FabricNodeReference.getWeight() for details)
or in a node from the same cluster as the current node. |
public java.lang.String getAccessorName()
FabricComponentAccessor
getAccessorName
in interface FabricComponentAccessor
public java.lang.String getName()
FabricComponentAccessor
getName
in interface FabricComponentAccessor
public EventScope getEventScope()
FabricComponentAccessor
getEventScope
in interface FabricComponentAccessor
public java.lang.String getNodeName()
FabricComponentAccessor
null
the accessor will search the component in all nodes.getNodeName
in interface FabricComponentAccessor
public java.lang.String getComponentType()
FabricComponentAccessor
getComponentType
in interface FabricComponentAccessor
getComponentType
in interface com.streamscape.sef.dispatcher.AccessibleObjectComponent
public java.lang.String getComponentName()
FabricComponentAccessor
getComponentName
in interface FabricComponentAccessor
getComponentName
in interface com.streamscape.sef.dispatcher.AccessibleObjectComponent
public ComponentModel getComponentModel()
FabricComponentAccessor
getComponentModel
in interface FabricComponentAccessor
public long getRequestTimeout()
FabricComponentAccessor
invokeRequest
methods.
getRequestTimeout
in interface FabricComponentAccessor
getRequestTimeout
in interface AccessibleObjectComponentSimple
public void setRequestTimeout(long timeout)
FabricComponentAccessor
invokeRequest
methods.
timeout <= 0
, the invokeRequest
methods will wait for a response infinitely.setRequestTimeout
in interface FabricComponentAccessor
timeout
- the timeout (in milliseconds) to be set.public boolean autoSwitching()
FabricComponentAccessor
FabricNodeReference.getWeight()
for details) or in a node from the same cluster as the current node.
This parameter is applicable only if the nodeName
is not specified.
autoSwitching
in interface FabricComponentAccessor
true
if the accessor will automatically switch to a more suitable component, false
otherwise.public void setAutoSwitching(boolean autoSwitching)
FabricComponentAccessor
FabricNodeReference.getWeight()
for details) or in a node from the same cluster as the current node.
This parameter is applicable only if the nodeName
is not specified.
setAutoSwitching
in interface FabricComponentAccessor
autoSwitching
- the value to be set.public boolean switchComponent() throws FabricComponentAccessorException
FabricComponentAccessor
FabricNodeReference.getWeight()
for details)
or in a node from the same cluster as the current node.
available
state, it just tries to connect to a suitable component.
This method is applicable only if the nodeName
is not specified.
switchComponent
in interface FabricComponentAccessor
true
if the switching has been successfully completed, false
otherwise.FabricComponentAccessorException
- if the accessor is closed or
if some other error occurs.public boolean resync() throws FabricComponentAccessorException
FabricComponentAccessor
available
state, it tries to connect to a suitable component.
available
state and the nodeName
is not specified,
it tries to switch to another suitable component located in the node with a higher weight
or in a node from the same cluster as the current node (see FabricComponentAccessor.switchComponent()
).resync
in interface FabricComponentAccessor
true
if the resynchronization has been successfully completed, false
otherwise.FabricComponentAccessorException
- if the accessor is closed or
if some other error occurs.public SLResponse invokeLanguageRequest(SLStatement statement)
FabricComponentAccessor
FabricComponentAccessor.invokeLanguageRequest(com.streamscape.sdo.operation.SLStatement, long)
with a timeout
previously set by the FabricComponentAccessor.setRequestTimeout(long)
method or default timeout (30 seconds).invokeLanguageRequest
in interface FabricComponentAccessor
statement
- the DSL statement to be sent.public SLResponse invokeLanguageRequest(SLStatement statement, long timeout)
FabricComponentAccessor
invokeLanguageRequest
in interface FabricComponentAccessor
statement
- the DSL statement to be sent.timeout
- the waiting time for a response (in milliseconds).public SLResponse invokeLanguageRequest(java.lang.String statement) throws FabricComponentAccessorException
FabricComponentAccessor
FabricComponentAccessor.invokeLanguageRequest(String, long)
with a timeout
previously set by the FabricComponentAccessor.setRequestTimeout(long)
method or default timeout (30 seconds).invokeLanguageRequest
in interface FabricComponentAccessor
statement
- the DSL statement to be sent.FabricComponentAccessorException
- if the accessor is closed.public SLResponse invokeLanguageRequest(java.lang.String statement, long timeout) throws FabricComponentAccessorException
FabricComponentAccessor
invokeLanguageRequest
in interface FabricComponentAccessor
statement
- the DSL statement to be sent.timeout
- the waiting time for a response (in milliseconds).FabricComponentAccessorException
- if the accessor is closed.public SLResponse invokeInterruptRequest(java.lang.String command) throws FabricComponentAccessorException
FabricComponentAccessor
invokeInterruptRequest
in interface FabricComponentAccessor
FabricComponentAccessorException
- if the accessor is closed.public SLResponse invokeCompleteRequest(java.lang.String statement) throws FabricComponentAccessorException
FabricComponentAccessor
FabricComponentAccessor.invokeCompleteRequest(String, long)
with a timeout
previously set by the FabricComponentAccessor.setRequestTimeout(long)
method or default timeout (30 seconds).invokeCompleteRequest
in interface FabricComponentAccessor
statement
- the DSL statement to be completed.FabricComponentAccessorException
- if the accessor is closed.public SLResponse invokeCompleteRequest(java.lang.String statement, long timeout) throws FabricComponentAccessorException
FabricComponentAccessor
invokeCompleteRequest
in interface FabricComponentAccessor
timeout
- the waiting time for a response (in milliseconds).FabricComponentAccessorException
- if the accessor is closed.public boolean isOpened()
FabricComponentAccessor
isOpened
in interface FabricComponentAccessor
true
if the accessor is opened, false
otherwise.public void close()
FabricComponentAccessor
close
in interface FabricComponentAccessor
public boolean isAvailable()
FabricComponentAccessor
isAvailable
in interface FabricComponentAccessor
true
if the accessed component is available, false
otherwise.public java.lang.String getActualNodeName()
FabricComponentAccessor
getActualNodeName
in interface FabricComponentAccessor
getActualNodeName
in interface com.streamscape.sef.dispatcher.AccessibleObjectComponent
null
if the accessed component is not available.public AccessorSessionReference getSession()
FabricComponentAccessor
getSession
in interface FabricComponentAccessor
null
if the accessed component is not available.public void setStateListener(FabricComponentAccessorStateListener listener)
setStateListener
in interface FabricComponentAccessor
listener
- the listener to be set.public void setStateListener(FabricComponentAccessorStateListener listener, long repeatInterval)
setStateListener
in interface FabricComponentAccessor
listener
- the listener to be set.repeatInterval
- the time interval between consecutive attempts to re-establish a session.public java.util.List listSinkEvents()
FabricEventSink
listSinkEvents
in interface FabricEventSink
public boolean hasSinkEvents()
FabricEventSink
hasSinkEvents
in interface FabricEventSink
true
if the component has registered events, false
otherwise.public java.util.List listActionableEvents()
FabricEventSource
listActionableEvents
in interface FabricEventSource
public boolean hasActionableEvents()
FabricEventSource
hasActionableEvents
in interface FabricEventSource
true
if the component has actionable events, false
otherwise.public boolean existsActionableEvent(java.lang.String eventId)
FabricEventSource
existsActionableEvent
in interface FabricEventSource
eventId
- the specified event id.true
if an actionable event with the specified id exists, false
otherwise.public void enableEventTrigger(java.lang.String triggerName)
EventTriggerManagerDelegate
enableEventTrigger
in interface EventTriggerManagerDelegate
triggerName
- Stringpublic void disableEventTrigger(java.lang.String triggerName)
EventTriggerManagerDelegate
disableEventTrigger
in interface EventTriggerManagerDelegate
triggerName
- Stringpublic void removeEventTrigger(java.lang.String triggerName) throws ServiceConfigurationException
EventTriggerManagerDelegate
removeEventTrigger
in interface EventTriggerManagerDelegate
triggerName
- StringServiceConfigurationException
- If a configuration error occurs.public EventTriggerDefinition getEventTriggerDefinition(java.lang.String triggerName) throws ServiceConfigurationException
EventTriggerManagerDelegate
EventTriggerCompiledDefinition
will be returned.getEventTriggerDefinition
in interface EventTriggerManagerDelegate
triggerName
- StringServiceConfigurationException
public void removeAllEventTriggers() throws ServiceConfigurationException, IllegalTriggerStateException
EventTriggerManagerDelegate
removeAllEventTriggers
in interface EventTriggerManagerDelegate
ServiceConfigurationException
IllegalTriggerStateException
- If some trigger is in a state wherein it may not be removed.public void compileEventTrigger(java.lang.String triggerName) throws EventTriggerCompileException, IllegalTriggerStateException
EventTriggerManagerDelegate
compileEventTrigger
in interface EventTriggerManagerDelegate
triggerName
- StringEventTriggerCompileException
- If some type of exception occurred during compile.IllegalTriggerStateException
- If the trigger is in an enabled state.public java.lang.String getLastError(java.lang.String triggerName)
EventTriggerManagerDelegate
getLastError
in interface EventTriggerManagerDelegate
public EventTriggerState getTriggerState(java.lang.String triggerName)
EventTriggerManagerDelegate
getTriggerState
in interface EventTriggerManagerDelegate
public TriggerActionTime getTriggerActionTime(java.lang.String triggerName)
EventTriggerManagerDelegate
getTriggerActionTime
in interface EventTriggerManagerDelegate
public java.util.List listEventTriggers()
FabricEventTriggerSource
listEventTriggers
in interface FabricEventTriggerSource
public java.util.List getEventTriggerDefinitions()
EventTriggerManagerDelegate
EventTriggerCompiledDefinition
will be returned.getEventTriggerDefinitions
in interface EventTriggerManagerDelegate
public boolean hasEventTriggers()
FabricEventTriggerSource
hasEventTriggers
in interface FabricEventTriggerSource
true
if the configuration has event triggers, false
otherwise.public boolean existsEventTrigger(java.lang.String triggerName)
FabricEventTriggerSource
existsEventTrigger
in interface FabricEventTriggerSource
triggerName
- the specified trigger name.true
if an event trigger with the specified name exists, false
otherwise.public void dropCollectionFactory(java.lang.String name) throws DataspaceComponentException
DataspaceContext
dropCollectionFactory
in interface DataspaceContext
name
- factory nameDataspaceComponentException
public java.util.List listCollections() throws DataspaceComponentException
DataspaceContext
listCollections
in interface DataspaceContext
DataspaceComponentException
public DataCollection lookupCollection(java.lang.String name) throws DataspaceComponentException
DataspaceContext
lookupCollection
in interface DataspaceContext
name
- collection nameDataspaceComponentException
public CollectionFactory createCollectionFactory(CollectionType type) throws DataspaceComponentException
DataspaceContext
createCollectionFactory
in interface DataspaceContext
type
- collection typeDataspaceComponentException
public void storeCollectionFactory(java.lang.String name, CollectionFactory factory) throws DataspaceComponentException
DataspaceContext
storeCollectionFactory
in interface DataspaceContext
name
- factory nameDataspaceComponentException
public CollectionFactory lookupCollectionFactory(java.lang.String name) throws DataspaceComponentException
DataspaceContext
lookupCollectionFactory
in interface DataspaceContext
name
- collection nameDataspaceComponentException
public void dropCollection(java.lang.String name) throws DataspaceComponentException
DataspaceContext
dropCollection
in interface DataspaceContext
DataspaceComponentException
public int getSessionState()
DataspaceAccessor
getSessionState
in interface DataspaceAccessor
public void commit() throws DataspaceComponentException
DataspaceAccessor
commit
in interface DataspaceAccessor
DataspaceComponentException
- if some error occurs.public boolean getAutoCommit() throws DataspaceComponentException
DataspaceAccessor
getAutoCommit
in interface DataspaceAccessor
true
if auto-commit mode is enabled for the accessed dataspace, false
otherwise.DataspaceComponentException
- if some error occurs.public int getTransactionIsolation() throws DataspaceComponentException
DataspaceAccessor
getTransactionIsolation
in interface DataspaceAccessor
DataspaceComponentException
- if some error occurs.public boolean isClosed() throws DataspaceComponentException
DataspaceAccessor
isClosed
in interface DataspaceAccessor
true
if the accessed dataspace is closed, false
otherwise.DataspaceComponentException
- if some error occurs.public boolean isReadOnly() throws DataspaceComponentException
DataspaceAccessor
isReadOnly
in interface DataspaceAccessor
true
if the accessed dataspace is in read-only mode, false
otherwise.DataspaceComponentException
- if some error occurs.public void rollback() throws DataspaceComponentException
DataspaceAccessor
rollback
in interface DataspaceAccessor
DataspaceComponentException
- if some error occurs.public void setAutoCommit(boolean autoCommit) throws DataspaceComponentException
DataspaceAccessor
setAutoCommit
in interface DataspaceAccessor
autoCommit
- the value to be set.DataspaceComponentException
- if some error occurs.public void setReadOnly(boolean readOnly) throws DataspaceComponentException
DataspaceAccessor
setReadOnly
in interface DataspaceAccessor
readOnly
- the value to be set.DataspaceComponentException
- if some error occurs.public void setTransactionIsolation(int level) throws DataspaceComponentException
DataspaceAccessor
setTransactionIsolation
in interface DataspaceAccessor
level
- the value to be set.DataspaceComponentException
- if some error occurs.public RowSet executeQuery(java.lang.String query, java.lang.Object[] params) throws DataspaceComponentException
DataspaceAccessor
executeQuery
in interface DataspaceAccessor
query
- DSQL queryDataspaceComponentException
public RowSet executeQuery(java.lang.String query) throws DataspaceComponentException
DataspaceAccessor
executeQuery
in interface DataspaceAccessor
query
- DSQL queryDataspaceComponentException
public java.lang.Object callFunction(java.lang.String query, java.lang.Object[] params) throws DataspaceComponentException
DataspaceAccessor
callFunction
in interface DataspaceAccessor
query
- function call queryparams
- function parameters if anyDataspaceComponentException
public java.lang.Object callFunction(java.lang.String query) throws DataspaceComponentException
DataspaceAccessor
callFunction
in interface DataspaceAccessor
query
- function call queryDataspaceComponentException
public void setFetchSize(int fetchSize) throws DataspaceComponentException
DataspaceAccessor
setFetchSize
in interface DataspaceAccessor
DataspaceComponentException
public int getFetchSize() throws DataspaceComponentException
DataspaceAccessor
getFetchSize
in interface DataspaceAccessor
DataspaceComponentException
public void setSessionContext(com.streamscape.slex.file.SLFileSessionContext sessionContext) throws HTTPFabricException
DataspaceAccessor
setSessionContext
in interface DataspaceAccessor
HTTPFabricException
public com.streamscape.slex.file.SLFileSessionContext getSessionContext() throws HTTPFabricException
DataspaceAccessor
getSessionContext
in interface DataspaceAccessor
HTTPFabricException
public void setTransferBufferSize(int transferBufferSize) throws DataspaceComponentException
DataspaceAccessor
setTransferBufferSize
in interface DataspaceAccessor
transferBufferSize
- size in bytes, should be > 0DataspaceComponentException
public int getTransferBufferSize() throws DataspaceComponentException
DataspaceAccessor
getTransferBufferSize
in interface DataspaceAccessor
DataspaceComponentException
public void setDownloadableBlobSize(int downloadableBlobSize) throws DataspaceComponentException
DataspaceAccessor
setDownloadableBlobSize
in interface DataspaceAccessor
downloadableBlobSize
- size in bytes, if -1 then all lobs data will be downloadedDataspaceComponentException
public int getDownloadableBlobSize() throws DataspaceComponentException
DataspaceAccessor
getDownloadableBlobSize
in interface DataspaceAccessor
DataspaceComponentException
public ImmutableEventDatagram raiseDataspaceWriteMessage(OpaqueEvent event, long timeout) throws java.lang.Exception
com.streamscape.sef.dispatcher.DataspaceAccessorForJDBC
raiseDataspaceWriteMessage
in interface com.streamscape.sef.dispatcher.DataspaceAccessorForJDBC
java.lang.Exception
public void addEventTrigger(java.lang.String triggerSyntax) throws ServiceConfigurationException
EventTriggerManagerDelegate
addEventTrigger
in interface EventTriggerManagerDelegate
triggerSyntax
- trigger create syntaxServiceConfigurationException
- if some error occurs.public void alterEventTrigger(java.lang.String triggerSyntax) throws ServiceConfigurationException
EventTriggerManagerDelegate
alterEventTrigger
in interface EventTriggerManagerDelegate
triggerSyntax
- trigger alter syntaxServiceConfigurationException
public java.lang.String getEventTriggerSyntax(java.lang.String triggerName) throws ServiceConfigurationException
EventTriggerManagerDelegate
getEventTriggerSyntax
in interface EventTriggerManagerDelegate
ServiceConfigurationException
public EventTriggerData getEventTriggerData(java.lang.String triggerName) throws ServiceConfigurationException
FabricEventTriggerSource
getEventTriggerData
in interface FabricEventTriggerSource
ServiceConfigurationException
public OpaqueEvent createOpaqueEvent(java.lang.String eventId, java.lang.Object data) throws java.lang.Exception
createOpaqueEvent
in interface AccessibleObjectComponentSimple
createOpaqueEvent
in interface com.streamscape.sef.dispatcher.DataspaceAccessorForJDBC
java.lang.Exception
public boolean isEventTriggerAutoEnable(java.lang.String triggerName) throws IllegalTriggerStateException
EventTriggerManagerDelegate
isEventTriggerAutoEnable
in interface EventTriggerManagerDelegate
IllegalTriggerStateException
- if trigger doesn't existpublic void setEventTriggerAutoEnable(java.lang.String triggerName, boolean autoEnable) throws IllegalTriggerStateException, ServiceConfigurationException
EventTriggerManagerDelegate
setEventTriggerAutoEnable
in interface EventTriggerManagerDelegate
IllegalTriggerStateException
- if trigger doesn't existServiceConfigurationException
- if save sco failedpublic java.lang.String getComponentFullNameWithNode()
getComponentFullNameWithNode
in interface com.streamscape.sef.dispatcher.AccessibleObjectComponent
public ImmutableEventDatagram raiseSystemRequest(ImmutableEventDatagram request, long timeout) throws java.lang.Exception
raiseSystemRequest
in interface AccessibleObjectComponentSimple
java.lang.Exception
public FabricNodeReference lookupFabricNode(java.lang.String name)
lookupFabricNode
in interface com.streamscape.sef.dispatcher.AccessibleObjectComponent
public static void processAccessibleObjects(java.lang.Object response, java.lang.Object accessor)
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.