public class LocalTransaction extends Object
Constructor and Description |
---|
LocalTransaction()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
closeAll()
Close All Local Channels
|
boolean |
contained(int id) |
boolean |
contained(String key) |
LocalChannelReference |
createNewClient(NetworkChannelReference networkChannelReference,
Integer remoteId,
R66Future futureRequest,
boolean fromSsl)
Create a new Client
|
void |
debugPrintActiveLocalChannels()
Debug function (while shutdown for instance)
|
LocalChannelReference |
getClient(Integer remoteId,
Integer localId)
Get the corresponding LocalChannelReference and set the remoteId if
different
|
LocalChannelReference |
getFromId(Integer id) |
LocalChannelReference |
getFromRequest(String key) |
int |
getNumberLocalChannel() |
String |
hashStatus() |
protected void |
remove(LocalChannelReference localChannelReference)
Remove one local channel
|
void |
setFromId(DbTaskRunner runner,
LocalChannelReference lcr) |
void |
shutdownLocalChannels()
Informs all remote client that the server is shutting down
|
public String hashStatus()
public LocalChannelReference getClient(Integer remoteId, Integer localId) throws OpenR66ProtocolSystemException
remoteId
- localId
- OpenR66ProtocolSystemException
public LocalChannelReference createNewClient(NetworkChannelReference networkChannelReference, Integer remoteId, R66Future futureRequest, boolean fromSsl) throws OpenR66ProtocolSystemException, OpenR66ProtocolRemoteShutdownException, OpenR66ProtocolNoConnectionException
networkChannelReference
- remoteId
- might be set to ChannelUtils.NOCHANNEL (real
creation)futureRequest
- might be null (from NetworkChannel Startup)OpenR66ProtocolSystemException
OpenR66ProtocolRemoteShutdownException
OpenR66ProtocolNoConnectionException
public LocalChannelReference getFromId(Integer id)
id
- protected void remove(LocalChannelReference localChannelReference)
localChannelReference
- public void setFromId(DbTaskRunner runner, LocalChannelReference lcr)
runner
- lcr
- public LocalChannelReference getFromRequest(String key)
key
- as "requested requester specialId"public boolean contained(String key)
key
- as "requested requester specialId"public boolean contained(int id)
id
- public int getNumberLocalChannel()
public void debugPrintActiveLocalChannels()
public void shutdownLocalChannels()
public void closeAll()
Copyright © 2009–2020 Waarp. All rights reserved.