public class LocalServerConnection extends Object implements ServerConnection
PING_INTERVAL
Constructor and Description |
---|
LocalServerConnection(Properties connectionProperties,
boolean useCallingThread) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(VDBLifeCycleListener listener) |
void |
authenticate() |
void |
close() |
protected ClientServiceRegistry |
getClientServiceRegistry(String transport) |
LogonResult |
getLogonResult() |
String |
getServerVersion() |
<T> T |
getService(Class<T> iface) |
DQPWorkContext |
getWorkContext() |
boolean |
isLocal() |
boolean |
isOpen(long msToTest) |
boolean |
isSameInstance(ServerConnection conn) |
static String |
jndiNameForRuntime(String embeddedTransportName) |
void |
removeListener(VDBLifeCycleListener listener) |
static boolean |
sameSubject(DQPWorkContext workContext) |
boolean |
supportsContinuous() |
public LocalServerConnection(Properties connectionProperties, boolean useCallingThread) throws CommunicationException, ConnectionException
protected ClientServiceRegistry getClientServiceRegistry(String transport)
public void authenticate() throws ConnectionException, CommunicationException
authenticate
in interface ServerConnection
ConnectionException
CommunicationException
public <T> T getService(Class<T> iface)
getService
in interface ServerConnection
public static boolean sameSubject(DQPWorkContext workContext)
public boolean isOpen(long msToTest)
isOpen
in interface ServerConnection
public void close()
close
in interface ServerConnection
public LogonResult getLogonResult()
getLogonResult
in interface ServerConnection
public boolean isSameInstance(ServerConnection conn) throws CommunicationException
isSameInstance
in interface ServerConnection
CommunicationException
public boolean supportsContinuous()
supportsContinuous
in interface ServerConnection
public DQPWorkContext getWorkContext()
public boolean isLocal()
isLocal
in interface ServerConnection
public void addListener(VDBLifeCycleListener listener)
public void removeListener(VDBLifeCycleListener listener)
public String getServerVersion()
getServerVersion
in interface ServerConnection
Copyright © 2019. All rights reserved.