public abstract class AbstractSpecialSLSession extends com.streamscape.tools.console.autocompletion.AbstractCompleter implements SpecialSLSession
Title: Service Event Fabric Core
Description: Base class for all special SL sessions.
Copyright: Copyright (c) 2016
Company: StreamScape Technologies
Modifier and Type | Class and Description |
---|---|
static class |
AbstractSpecialSLSession.ConnectReplyData |
static class |
AbstractSpecialSLSession.ConnectRequestData |
DEFAULT_FETCH_SIZE
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the session.
|
com.streamscape.slex.lang.completion.DSLCompletion |
completeDsl(java.lang.String command,
com.streamscape.tools.console.autocompletion.CompleterCondition condition)
Constructs and returns completion for command
command . |
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 |
getBanner() |
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 |
getDomain()
Returns a domain of the sysplex to which the session is connected.
|
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.
|
com.streamscape.sdo.operation.PromptSLResponse |
getPrompt() |
com.streamscape.sdo.operation.PromptSLResponse |
getPrompt(java.lang.String nodeName) |
com.streamscape.sdo.operation.PromptSLResponse |
getPrompt(java.lang.String nodeName,
java.lang.String componentType,
java.lang.String componentName) |
java.lang.String |
getURL()
Returns a URL of the session.
|
java.lang.String |
getUserName()
Returns a user name of the session.
|
boolean |
interruptCommand(java.lang.String command) |
SLResponse |
invokeCompleteRequest(java.lang.String request,
long timeout) |
SLResponse |
invokeRequest(SLStatement request,
long timeout) |
SLResponse |
invokeRequest(java.lang.String request,
long timeout) |
SLResponse[] |
invokeSessionCommand(java.lang.String command,
long timeout) |
boolean |
isAvailable()
Checks if the accessed node or component is available.
|
boolean |
isNativeContext(com.streamscape.slex.MFSession session)
Checks if the specified session represents a context that is native to this Callable object.
|
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.
|
completeDsl
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
completeRequest, completeRequest, getComponentType, getName, getNodeName, isAvailable, isOpened, slangRequest, slangRequest
getStartupDir
public void close()
SLSession
public java.lang.String getURL()
SpecialSLSession
getURL
in interface SpecialSLSession
public java.lang.String getUserName()
SpecialSLSession
getUserName
in interface SLSession
getUserName
in interface SpecialSLSession
public java.lang.String getDomain()
SpecialSLSession
getDomain
in interface SpecialSLSession
public java.lang.String getComponentName()
SLSession
use
.
If the session is in a node context, this method returns null
.
getComponentName
in interface SLSession
public SLResponse invokeRequest(SLStatement request, long timeout) throws SLSessionException
SLSessionException
public SLResponse invokeRequest(java.lang.String request, long timeout) throws SLSessionException
SLSessionException
public boolean interruptCommand(java.lang.String command) throws SLSessionException
SLSessionException
public SLResponse invokeCompleteRequest(java.lang.String request, long timeout) throws SLSessionException
SLSessionException
public void setSLMessageListener(SLMessageListener listener) throws SLSessionException
SLSession
SLMessage
messages.setSLMessageListener
in interface SLSession
listener
- the listener to be set.SLSessionException
- if the session is closed or
if some error occurs in the Exchange.public SLResponse[] invokeSessionCommand(java.lang.String command, long timeout) throws SLSessionException
SLSessionException
public java.lang.String getName()
SLSession
public java.lang.String getNodeName()
SLSession
public java.lang.String getComponentType()
SLSession
use
.
If the session is in a node context, this method returns null
.
public java.lang.String getBanner()
public boolean isOpened()
SLSession
true
if the session is opened, false
otherwise.public boolean isAvailable()
SLSession
true
if the accessed node or component is available, false
otherwise.public SLResponse slangRequest(java.lang.String request, long timeout) throws SLSessionException
SLSession
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.public SLResponse slangRequest(SLStatement request, long timeout) throws SLSessionException
SLSession
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.public SLResponse completeRequest(java.lang.String request) throws SLSessionException
SLSession
SLSessionException
- if the session is closed or
if some error occurs in the Exchange.public SLResponse completeRequest(java.lang.String request, long timeout) throws SLSessionException
SLSession
timeout
secs will expire.request
- the request to complete.SLSessionException
- if the session is closed or
if some error occurs in the Exchange.public com.streamscape.slex.lang.completion.DSLCompletion completeDsl(java.lang.String command, com.streamscape.tools.console.autocompletion.CompleterCondition condition)
com.streamscape.tools.console.autocompletion.Completer
command
.
Completion should comply with condition condition
.
If no completion exists return null.completeDsl
in interface com.streamscape.tools.console.autocompletion.Completer
public com.streamscape.sdo.operation.PromptSLResponse getPrompt()
public com.streamscape.sdo.operation.PromptSLResponse getPrompt(java.lang.String nodeName)
public com.streamscape.sdo.operation.PromptSLResponse getPrompt(java.lang.String nodeName, java.lang.String componentType, java.lang.String componentName)
public boolean isNativeContext(com.streamscape.slex.MFSession session)
SLCallable
RuntimeMFSession
represents a context that is native to operations
that use the RuntimeContext
as a Callable object.session
- the session to be checked.true
if the specified context is native to this object, false
otherwise.Copyright © 2015-2024 StreamScape Technologies. All rights reserved.