com.mobiledgex.matchingengine.AppConnectionManager Class Reference

Public Member Functions

HashMap< Integer, AppPort > getUdpMap (AppClient.FindCloudletReply findCloudletReply)
 
HashMap< Integer, AppPort > getTCPMap (AppClient.FindCloudletReply findCloudletReply)
 
AppPort validatePublicPort (AppClient.FindCloudletReply findCloudletReply, AppPort appPort, int portNum)
 
int getPublicPort (AppClient.FindCloudletReply findCloudletReply, int internalPort)
 
AppPort getAppPort (AppClient.FindCloudletReply findCloudletReply, int internalPort)
 
Future< SSLSocket > getTcpSslSocket (final AppClient.FindCloudletReply findCloudletReply, final AppPort appPort, final int portNum, final int timeoutMs)
 
Future< Socket > getTcpSocket (final AppClient.FindCloudletReply findCloudletReply, final AppPort appPort, final int portNum, final int timeoutMs)
 
Future< DatagramSocket > getUdpSocket (final AppClient.FindCloudletReply findCloudletReply, final AppPort appPort, final int portNum, final int timeoutMs)
 
Future< OkHttpClient > getHttpClient (final long timeoutMs)
 
String createUrl (FindCloudletReply findCloudletReply, AppPort appPort, int desiredPortNum, String protocol, String path)
 
String getHost (FindCloudletReply findCloudletReply, AppPort appPort)
 
String getHost (FindCloudletReply findCloudletReply, int internalPort)
 
int getPort (AppPort appPort, int portNum) throws InvalidPortException
 

Detailed Description

Manages GetConnection functions and connections

Member Function Documentation

◆ getPublicPort()

int com.mobiledgex.matchingengine.AppConnectionManager.getPublicPort ( AppClient.FindCloudletReply  findCloudletReply,
int  internalPort 
)

Gets a public port from an internal port. This is the "desiredPort" that is the App's un-mapped set of ports. The public ports is the final set of mapped ports for the App when deployed to the edge.

Parameters
findCloudletReply
internalPort