Package io.hawt.web.kubernetes
Class ServiceResolver
- java.lang.Object
-
- io.hawt.web.kubernetes.ServiceResolver
-
public class ServiceResolver extends Object
Resolves the service / container names to a URL to invoke HTTP / HTTPS requests
-
-
Field Summary
Fields Modifier and Type Field Description static ObjectNameOBJECT_NAMEstatic ServiceResolversingleton
-
Constructor Summary
Constructors Constructor Description ServiceResolver()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPodUrl(String podName, String port)StringgetServiceURL(String serviceName)static ServiceResolvergetSingleton()protected static ObjectinvokeMBeanOperation(ObjectName objectName, String operationName, Object[] params, String[] types)
-
-
-
Field Detail
-
singleton
public static ServiceResolver singleton
-
OBJECT_NAME
public static ObjectName OBJECT_NAME
-
-
Method Detail
-
getSingleton
public static ServiceResolver getSingleton()
-
invokeMBeanOperation
protected static Object invokeMBeanOperation(ObjectName objectName, String operationName, Object[] params, String[] types)
-
-