All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.infinispan.client.runtime.devui.InfinispanJsonRPCService Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package io.quarkus.infinispan.client.runtime.devui;

import io.quarkus.arc.Arc;
import io.quarkus.logging.Log;
import io.smallrye.common.annotation.NonBlocking;

public class InfinispanJsonRPCService {

    @NonBlocking
    public String getConsoleDefaultLink() {
        InfinispanClientsContainer clientsContainer = Arc.container().instance(InfinispanClientsContainer.class).get();
        if (clientsContainer != null) {
            Log.info(clientsContainer.clientsInfo().get(0).serverUrl);
            return "http://" + clientsContainer.clientsInfo().get(0).serverUrl + "/console";
        }
        return "";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy