DEV Community

Query Filter
Query Filter

Posted on

bridge51

private <C> C createClient(String clientKey, Class<?>[] parameters, Object... arguments) {

    // Debug values (from your dump)
    // arguments: Object[1]@68
    // parameters: Class[4]@6895
    // clientKey: "156783-COMET_NAM-011"

    InvokingClient invoker = new InvokingClient().initialise();
    // invoker: InvokingClient@6881

    Configuration clientConfig = this.registryService.start(
            this.environment,
            clientKey,
            invoker.serialise()
    );
    // environment: "UAT"
    // clientConfig: Configuration@7013

    logger.debug("createClient(): Client Configuration: {}", clientConfig);

    if (Environment.PRD == this.environment
            || Environment.COB == this.environment
            || !clientConfig.getConnectivityInfo().getHostName().isEmpty()) {

        String[] restrictedToList;

        if (clientConfig.getConnectivityInfo().getHostName().contains(";")) {
            restrictedToList = clientConfig.getConnectivityInfo()
                    .getHostName()
                    .split(";");
        } else {
            restrictedToList = clientConfig.getConnectivityInfo()
                    .getHostName()
                    .split(",");
        }

        boolean isRestrictedToHost = false;
        String currentCanonicalHostname = getCurrentCanonicalHostname();

        // ... rest of your logic
    }

    return null; // placeholder (since original snippet is incomplete)
}


> (D registrylnfo = {Registrylnfo@7014}
> (D applicationlnfo = {Applicationlnfo@7015} "Application Info : \n{ applicationNarne = Global COMET NAM \n, applicationCSlld = 156783 \n, applicationOwnerName = Ladda, Satish R \n, applicationOwnerSOEld = s|55540 \n, applicationOwnerTelephoneNumber = +1 201—763—1607\n, applicationOwnerErnailAddress = satish1.ladda@citi.com \n, applicationLocation = US \n, app... View
> (D clientlnfo = {Clientlnfo@7016} "Client Info : \n{ clientType = PUBLISHER \n, primaryRegion = NAM \n, assetClass = EQUlTlES \n, flowType = CASH \n, clientOwnerName = Ladda, Satish R \n, clientOwnerSOEld = s|55540 \n, clientOwnerTelephoneNumber = +1 201763-1607 \n, clientOwnerEmailAddress = satish1.ladda@citi.com \n, additionalOwnerList = \n, clientTransp... View
V (D connectivitylnfo = {Connectivitylnfo@7017}
> (9 environment = {Environment@6836} "UAT"
> © hostName = "eqtpsan6.nam.nsroot.net;eqtpsqaS7-phys.nam.nsroot.net ;eqtpsan8-phys.nam.nsroot.net;eqtps32d.nam.nsroot.net"
> (D userName = "cometgran"
> (D releaseDate = "20210630"
> (D expectedVolume = "100"
> (D workflowStatus = "ENABLED"
> (D transportConfiguration = "<map><entries><entry><key>Solace_JMS_SSL_ValidateCertificate<lkey><value>false<lvalue><lentry><entry><key>Solace_JMS_VPN</key><value>RIO_UAT_NAM_NJ_TRD_EQ_3</value><lentry><entry><key>java.naming.factory.initial<lkey><value>com.solacesystems.jndi.So|JNDllnitiaIContextFactory<lvalue><lentry><entry><key>ja... View
(9 enabled = false
Enter fullscreen mode Exit fullscreen mode

Top comments (0)