io.quarkus.infinispan.client.runtime.devui.InfinispanJsonRPCService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-infinispan-client Show documentation
Show all versions of quarkus-infinispan-client Show documentation
Connect to the Infinispan data grid for distributed caching
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