public class VistaSocketConnection extends SocketManager
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CLOSE_SOCKET_REQUEST
The xml request used to send a close request to M
|
| Modifier | Constructor and Description |
|---|---|
protected |
VistaSocketConnection(InetAddress address,
int port,
String mcIdentifier) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Sends a close request to M.
|
void |
close(boolean notifyM)
Closes the socket.
|
void |
closeDontNotify()
Closes the socket.
|
protected void |
finalize()
Precautionary code to clean-up socket connections in J2SE environment.
|
InetAddress |
getAddress() |
int |
getPort() |
void |
setTransferTimeOut(int timeout)
Sets the time out for socket send/read operations.
|
String |
toString() |
String |
transfer(String request)
Sends the request to M and returns the response.
|
getBufferSize, getMatchingIdentifier, getSoc, receiveData, sendData, setBufferSize, setMatchingIdentifier, setSocprotected static final String CLOSE_SOCKET_REQUEST
protected VistaSocketConnection(InetAddress address, int port, String mcIdentifier) throws VistaSocketException
address - port - VistaSocketExceptionpublic String transfer(String request) throws VistaSocketTimeOutException, VistaSocketException
request - VistaSocketTimeOutExceptionVistaSocketExceptionpublic void close()
throws VistaSocketException
VistaSocketExceptionpublic void closeDontNotify()
throws VistaSocketException
VistaSocketExceptionpublic void close(boolean notifyM)
throws VistaSocketException
notifyM - -
indicates where the M server should be notified if that the
socket is closingVistaSocketExceptionpublic InetAddress getAddress()
public int getPort()
public void setTransferTimeOut(int timeout)
throws VistaSocketException
timeout - VistaSocketExceptionprotected void finalize()
throws Throwable
In application server spi.ManagedConnection:destroy() will be called to clean-up connections, hence this method will not be performing socket clean-up.
finalize in class ObjectThrowableObject.finalize()public final String toString()
toString in class SocketManagerCopyright © 2026. All rights reserved.