public interface SLSession
Title: Semantic Lexicon Processing Framework
Description: Defines a Semantic Language session.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_FETCH_SIZE |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the session.
|
SLResponse |
completeRequest(java.lang.String request)
Sends the completion request for specified Semantic Language request and
waits until a response will be received or waiting period 30 secs will expire.
|
SLResponse |
completeRequest(java.lang.String request,
long timeout)
Sends the completion request for specified Semantic Language request and
waits until a response will be received or waiting period
timeout secs will expire. |
java.lang.String |
getComponentName()
Returns a name the of the component corresponding to the current context of the session.
|
java.lang.String |
getComponentType()
Returns a type the of the component corresponding to the current context of the session.
|
java.lang.String |
getName()
Returns a name of the session.
|
java.lang.String |
getNodeName()
Returns a name of the node corresponding to the current context of the session.
|
java.lang.String |
getUserName() |
boolean |
isAvailable()
Checks if the accessed node or component is available.
|
boolean |
isOpened()
Checks if the session is opened.
|
void |
setSLMessageListener(SLMessageListener listener)
Sets the listener for asynchronous
SLMessage messages. |
SLResponse |
slangRequest(SLStatement request,
long timeout)
Sends the specified Semantic Language request and waits until a response will be received or waiting period will expire.
|
SLResponse |
slangRequest(java.lang.String request,
long timeout)
Sends the specified Semantic Language request and waits until a response will be received or waiting period will expire.
|
static final int DEFAULT_FETCH_SIZE
java.lang.String getName()
java.lang.String getNodeName()
java.lang.String getComponentType()
use
.
If the session is in a node context, this method returns null
.
java.lang.String getComponentName()
use
.
If the session is in a node context, this method returns null
.
java.lang.String getUserName()
SLResponse slangRequest(SLStatement request, long timeout) throws SLSessionException
request
- the request to be sent.timeout
- the waiting time for response (in milliseconds).SLSessionException
- if the session is closed or
if some error occurs in the Exchange.SLResponse slangRequest(java.lang.String request, long timeout) throws SLSessionException
request
- the request to be sent.timeout
- the waiting time for response (in milliseconds).SLSessionException
- if the session is closed or
if some error occurs in the Exchange.SLResponse completeRequest(java.lang.String request) throws SLSessionException
the
- request to complete.SLSessionException
- if the session is closed or
if some error occurs in the Exchange.SLResponse completeRequest(java.lang.String request, long timeout) throws SLSessionException
timeout
secs will expire.request
- the request to complete.SLSessionException
- if the session is closed or
if some error occurs in the Exchange.void setSLMessageListener(SLMessageListener listener) throws SLSessionException
SLMessage
messages.listener
- the listener to be set.SLSessionException
- if the session is closed or
if some error occurs in the Exchange.boolean isOpened()
true
if the session is opened, false
otherwise.boolean isAvailable()
true
if the accessed node or component is available, false
otherwise.void close()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.