bwLehrpool Masterserver
Manages authentication and sharing of virtual machines between participating institutions
|
Class to handle all incoming and outgoing connections. More...
Public Member Functions | |
void | incomingDownloadRequest (final Uploader uploader) |
Server is uploading - client is downloading! More... | |
void | incomingUploadRequest (final Downloader downloader) throws IOException |
Server is downloading - client is uploading! More... | |
Static Public Member Functions | |
static int | getSslPort () |
static int | getPlainPort () |
static IncomingTransfer | registerUpload (ImagePublishData img, List< ByteBuffer > blockHashes, ImagePublishDataEx existing) throws TTransferRejectedException, TInvocationException |
Register new incoming transfer from a satellite server. More... | |
static IncomingTransfer | getExistingUpload (ImagePublishData imageData, List< ByteBuffer > crcSums) throws TTransferRejectedException |
static IncomingTransfer | getUploadByToken (String uploadToken) |
static int | getUploadConnectionCount () |
static int | getDownloadConnectionCount () |
static void | removeUpload (IncomingTransfer transfer) |
static TransferInformation | registerDownload (ImagePublishDataEx img) throws TTransferRejectedException, TInvocationException |
Static Package Functions | |
[static initializer] | |
Private Attributes | |
final ExecutorService | transferPool |
Static Private Attributes | |
static final Logger | LOGGER = LogManager.getLogger( ConnectionHandler.class ) |
static final int | MAX_TRANSFERS = 12 |
static Map< String, IncomingTransfer > | incomingTransfersByTransferId = new ConcurrentHashMap<>() |
static final Map< String, IncomingTransfer > | incomingTransfersByVersionId = new ConcurrentHashMap<>() |
static Map< String, OutgoingTransfer > | outgoingTransfers = new ConcurrentHashMap<>() |
static IncomingEvent | eventHandler = new ConnectionHandler() |
static final Listener | plainListener |
static final Listener | sslListener |
Class to handle all incoming and outgoing connections.
Also handles the authentication and the saving/delivering of images.
Definition at line 44 of file ConnectionHandler.java.
|
staticpackage |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void org.openslx.imagemaster.serverconnection.ConnectionHandler.incomingDownloadRequest | ( | final Uploader | uploader | ) |
Server is uploading - client is downloading!
Definition at line 193 of file ConnectionHandler.java.
void org.openslx.imagemaster.serverconnection.ConnectionHandler.incomingUploadRequest | ( | final Downloader | downloader | ) | throws IOException |
Server is downloading - client is uploading!
Definition at line 215 of file ConnectionHandler.java.
|
static |
Definition at line 263 of file ConnectionHandler.java.
|
static |
Register new incoming transfer from a satellite server.
img | the desired meta data for the new image/version, as supplied by the satellite |
blockHashes | list of block hashes for the image |
existing | OPTIONAL if the image version already exists on the server, this is given so we can repair/complete the local file, if necessary |
Definition at line 138 of file ConnectionHandler.java.
|
static |
Definition at line 257 of file ConnectionHandler.java.
|
staticprivate |
Definition at line 55 of file ConnectionHandler.java.
|
staticprivate |
Definition at line 51 of file ConnectionHandler.java.
|
staticprivate |
Definition at line 52 of file ConnectionHandler.java.
|
staticprivate |
Definition at line 47 of file ConnectionHandler.java.
|
staticprivate |
Definition at line 49 of file ConnectionHandler.java.
|
staticprivate |
Definition at line 54 of file ConnectionHandler.java.
|
staticprivate |
Definition at line 60 of file ConnectionHandler.java.
|
staticprivate |
Definition at line 61 of file ConnectionHandler.java.
|
private |
Definition at line 56 of file ConnectionHandler.java.