Class PolicyServerRpcCommonUtils
- java.lang.Object
-
- com.mapr.baseutils.policyserverutils.PolicyServerRpcCommonUtils
-
public class PolicyServerRpcCommonUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PolicyServerRpcCommonUtilsgetInstance()static PolicyServerRpcCommonUtilsgetInstance(int listenPort)voidgetPolicyServerLocations()byte[]sendRequestToPolicyServer(int procedureId, com.google.protobuf.MessageLite request, java.lang.Class<? extends com.google.protobuf.MessageLite> responseClass)byte[]sendRequestToPolicyServer(java.lang.String clusterName, int procedureId, com.google.protobuf.MessageLite request, java.lang.Class<? extends com.google.protobuf.MessageLite> responseClass)
-
-
-
Method Detail
-
getInstance
public static PolicyServerRpcCommonUtils getInstance()
-
getInstance
public static PolicyServerRpcCommonUtils getInstance(int listenPort)
-
getPolicyServerLocations
public void getPolicyServerLocations() throws java.lang.Exception- Throws:
java.lang.Exception
-
sendRequestToPolicyServer
public byte[] sendRequestToPolicyServer(int procedureId, com.google.protobuf.MessageLite request, java.lang.Class<? extends com.google.protobuf.MessageLite> responseClass) throws java.lang.Exception- Throws:
java.lang.Exception
-
sendRequestToPolicyServer
public byte[] sendRequestToPolicyServer(java.lang.String clusterName, int procedureId, com.google.protobuf.MessageLite request, java.lang.Class<? extends com.google.protobuf.MessageLite> responseClass) throws java.lang.Exception- Throws:
java.lang.Exception
-
-