Class FSRpcUtils


  • public class FSRpcUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      FSRpcUtils​(java.lang.String clusterName, com.mapr.fs.proto.Security.CredentialsMsg creds, int maxRetry, com.mapr.fs.proto.Security.ServerKeyType keyToUse, int srcPort)  
      FSRpcUtils​(java.lang.String clusterName, com.mapr.fs.proto.Security.CredentialsMsg creds, int maxRetry, com.mapr.fs.proto.Security.ServerKeyType keyToUse, int srcPort, int maxCapacity)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean CHasMServer​(int cid)  
      int SendRequestToCid​(int cid, boolean toMaster, int programid, int procid, com.google.protobuf.MessageLite req, GetMsgStatus getMsgStatus)  
      int SendRequestToServer​(com.mapr.fs.proto.Common.Server s, int programid, int procid, com.google.protobuf.MessageLite req, GetMsgStatus getMsgStatus)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FSRpcUtils

        public FSRpcUtils​(java.lang.String clusterName,
                          com.mapr.fs.proto.Security.CredentialsMsg creds,
                          int maxRetry,
                          com.mapr.fs.proto.Security.ServerKeyType keyToUse,
                          int srcPort)
      • FSRpcUtils

        public FSRpcUtils​(java.lang.String clusterName,
                          com.mapr.fs.proto.Security.CredentialsMsg creds,
                          int maxRetry,
                          com.mapr.fs.proto.Security.ServerKeyType keyToUse,
                          int srcPort,
                          int maxCapacity)
    • Method Detail

      • CHasMServer

        public boolean CHasMServer​(int cid)
      • SendRequestToCid

        public int SendRequestToCid​(int cid,
                                    boolean toMaster,
                                    int programid,
                                    int procid,
                                    com.google.protobuf.MessageLite req,
                                    GetMsgStatus getMsgStatus)
                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • SendRequestToServer

        public int SendRequestToServer​(com.mapr.fs.proto.Common.Server s,
                                       int programid,
                                       int procid,
                                       com.google.protobuf.MessageLite req,
                                       GetMsgStatus getMsgStatus)
                                throws java.lang.Exception
        Throws:
        java.lang.Exception