public class VistaLinkConnectionImpl extends Object implements VistaLinkConnection
J2SE Example:
//Gets the principal that contains the VistaLinkConnection
//Get the VistaLinkConnection
//request and response objects
//The Rpc Context
//The Rpc to call
//Construct the request object
<b> //Execute the Rpc and get the response
//Work with the response ...
// login to server
loginContext.login();
VistaKernelPrincipalImpl myPrincipal = VistaKernelPrincipalImpl.
getKernelPrincipal(loginContext.getSubject());
VistaLinkConnection myConnection = myPrincipal.getAuthenticatedConnection();
RpcRequest vReq = null;
RpcResponse vResp = null;
String rpcContext = "XOBV VISTALINK TESTER";
String rpcName = "XOBV TEST PING";
vReq = RpcRequestFactory.getRpcRequest(rpcContext, rpcName);
vResp = myConnection.executeRPC(vReq);
| Constructor and Description |
|---|
VistaLinkConnectionImpl(VistaLinkManagedConnection mc)
This constructor should not be called directly.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this connection handle.
|
Interaction |
createInteraction()
Empty method. throws NotSupportedException
|
VistaLinkResponseVO |
executeInteraction(VistaLinkRequestVO requestVO,
VistaLinkResponseFactory responseFactory)
Executes an interaction with M
|
RpcResponse |
executeRPC(RpcRequest request)
Executes an interaction with M using the RpcResponseFactory to construct
a response.
|
VistaLinkServerInfo |
getConnectionInfo()
Returns connection information about the host
|
LocalTransaction |
getLocalTransaction()
Empty method. throws NotSupportedException
|
VistaLinkManagedConnection |
getManagedConnection()
This method should not be called directly.
|
ConnectionMetaData |
getMetaData()
Gets the meta-information on the underlying EIS instance via this
connection
|
ResultSetInfo |
getResultSetInfo()
Empty method. throws NotSupportedException
|
int |
getTimeOut()
Returns current connection time out value.
|
void |
setManagedConnection(VistaLinkManagedConnection mc)
This method should not be called directly.
|
void |
setTimeOut(int timeOut)
Use to set time out for read operations on connections
|
public VistaLinkConnectionImpl(VistaLinkManagedConnection mc)
mc - public void close()
throws ResourceException
close in interface ConnectionResourceExceptionpublic VistaLinkResponseVO executeInteraction(VistaLinkRequestVO requestVO, VistaLinkResponseFactory responseFactory) throws VistaLinkFaultException, FoundationsException
executeInteraction in interface VistaLinkConnectionrequestVO - the request being maderesponseFactory - the factory which will construct the responseVistaLinkFaultException - thrown if an error occurred on M while processing the requestFoundationsException - thrown if an internal adapter exception has occurredpublic RpcResponse executeRPC(RpcRequest request) throws VistaLinkFaultException, FoundationsException
executeRPC in interface VistaLinkConnectionrequest - The request being madeVistaLinkFaultException - thrown if an error occurred on M while processing the requestFoundationsException - thrown if an internal adapter exception has occurredpublic int getTimeOut()
getTimeOut in interface VistaLinkConnectionpublic void setTimeOut(int timeOut)
setTimeOut in interface VistaLinkConnectiontimeOut - time out value to set in milli-seconds.public ConnectionMetaData getMetaData()
throws ResourceException
getMetaData in interface ConnectionResourceExceptionpublic VistaLinkServerInfo getConnectionInfo()
getConnectionInfo in interface VistaLinkConnectionpublic VistaLinkManagedConnection getManagedConnection() throws FoundationsException
FoundationsExceptionpublic void setManagedConnection(VistaLinkManagedConnection mc)
mc - public Interaction createInteraction()
throws ResourceException
createInteraction in interface ConnectionResourceExceptionConnection.createInteraction()public LocalTransaction getLocalTransaction()
throws ResourceException
getLocalTransaction in interface ConnectionResourceExceptionConnection.getLocalTransaction()public ResultSetInfo getResultSetInfo()
throws ResourceException
getResultSetInfo in interface ConnectionResourceExceptionConnection.getResultSetInfo()Copyright © 2026. All rights reserved.