Package org.teiid.transport
Class LocalServerConnection
- java.lang.Object
-
- org.teiid.transport.LocalServerConnection
-
- All Implemented Interfaces:
ServerConnection
public class LocalServerConnection extends Object implements ServerConnection
-
-
Field Summary
-
Fields inherited from interface org.teiid.net.ServerConnection
PING_INTERVAL
-
-
Constructor Summary
Constructors Constructor Description LocalServerConnection(Properties connectionProperties, boolean useCallingThread)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
LocalServerConnection
public LocalServerConnection(Properties connectionProperties, boolean useCallingThread) throws CommunicationException, ConnectionException
-
-
Method Detail
-
getClientServiceRegistry
protected ClientServiceRegistry getClientServiceRegistry(String transport)
-
authenticate
public void authenticate() throws ConnectionException, CommunicationException
- Specified by:
authenticate
in interfaceServerConnection
- Throws:
ConnectionException
CommunicationException
-
getService
public <T> T getService(Class<T> iface)
- Specified by:
getService
in interfaceServerConnection
-
sameSubject
public static boolean sameSubject(DQPWorkContext workContext)
-
isOpen
public boolean isOpen(long msToTest)
- Specified by:
isOpen
in interfaceServerConnection
-
close
public void close()
- Specified by:
close
in interfaceServerConnection
-
getLogonResult
public LogonResult getLogonResult()
- Specified by:
getLogonResult
in interfaceServerConnection
-
isSameInstance
public boolean isSameInstance(ServerConnection conn) throws CommunicationException
- Specified by:
isSameInstance
in interfaceServerConnection
- Throws:
CommunicationException
-
supportsContinuous
public boolean supportsContinuous()
- Specified by:
supportsContinuous
in interfaceServerConnection
-
getWorkContext
public DQPWorkContext getWorkContext()
-
isLocal
public boolean isLocal()
- Specified by:
isLocal
in interfaceServerConnection
-
addListener
public void addListener(VDBLifeCycleListener listener)
-
removeListener
public void removeListener(VDBLifeCycleListener listener)
-
getServerVersion
public String getServerVersion()
- Specified by:
getServerVersion
in interfaceServerConnection
-
-