public abstract class ServerHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ServerImpl |
server
The
ServerImpl instance associated with this helper. |
Constructor and Description |
---|
ServerHelper() |
Modifier and Type | Method and Description |
---|---|
abstract void |
disconnect()
Disconnect this server.
|
abstract java.lang.String |
getConnectionID()
Get the connection ID.
|
(package private) ServerImpl |
getServer()
Get the
server instance associated with this helper. |
abstract java.lang.String |
getServerName()
Get the name of this server.
|
abstract java.lang.String |
getSubType()
Get the sub-type of this server.
|
(package private) abstract BaseDataType |
invoke(long timeout,
AsyncRequestImpl asyncReq,
character name,
handle h,
boolean function,
boolean dynamicFunction,
boolean superCall,
boolean transactionDistinct,
java.lang.String modes,
java.lang.Object... args)
Invoke a remote external procedure, internal procedure, user-defined function or web service
operation.
|
abstract boolean |
isConnected()
Check if the connection is still established.
|
abstract boolean |
isSessionFree()
Check if this is a session-free connection.
|
abstract boolean |
isWebService()
Check if this is a web service.
|
abstract void |
sendStop()
Send a STOP condition to the request(s) currently being executed on this connection.
|
abstract void |
sendStop(int requestId)
Send a STOP condition to the specified async request.
|
(package private) void |
setServer(ServerImpl server)
Set the
ServerImpl instance associated with this helper. |
protected ServerImpl server
ServerImpl
instance associated with this helper.public abstract java.lang.String getServerName()
public abstract java.lang.String getSubType()
public abstract java.lang.String getConnectionID()
public abstract boolean isWebService()
true
if we are connected to a web service.public abstract boolean isSessionFree()
true
if this is a session-free connection.public abstract void disconnect()
public abstract boolean isConnected()
true
if the server is currently connected.public abstract void sendStop(int requestId)
requestId
- The request where to send a STOP condition.public abstract void sendStop()
abstract BaseDataType invoke(long timeout, AsyncRequestImpl asyncReq, character name, handle h, boolean function, boolean dynamicFunction, boolean superCall, boolean transactionDistinct, java.lang.String modes, java.lang.Object... args)
timeout
- The maximum allowed time for this invocation to complete. In milliseconds.
Use 0
to disable the timeout.name
- The legacy 4GL name for the procedure/function.h
- The persistent procedure in which to invoke the internal procedure, function or
operation.function
- true
if this is a function call.dynamicFunction
- true
if this is a DYNAMIC-FUNCTION call.superCall
- true
if this is a RUN SUPER or SUPER() call.transactionDistinct
- Flag indicating if the TRANSACTION DISTINCT clause is in effect.modes
- A string representation of the modes of eac parameter. The modes may be mandatory
for a specific implementation.args
- The procedure's arguments.null
if the
invocation could not be performed.void setServer(ServerImpl server)
ServerImpl
instance associated with this helper.server
- The ServerImpl
instance.ServerImpl getServer()
server
instance associated with this helper.