Class ServiceProfile


  • public class ServiceProfile
    extends java.lang.Object
    • Constructor Detail

      • ServiceProfile

        public ServiceProfile()
    • Method Detail

      • sawMethod

        public boolean sawMethod​(java.lang.String method)
      • seenMethods

        public java.util.List<java.lang.String> seenMethods()
      • getServiceRequestAndResponsesForMethod

        @Nullable
        public java.util.List<ServiceRequestAndResponse> getServiceRequestAndResponsesForMethod​(java.lang.String method)
      • addToProfile

        public void addToProfile​(java.lang.String method,
                                 com.google.protobuf.GeneratedMessageV3 request,
                                 io.grpc.Status status,
                                 @Nullable
                                 com.google.protobuf.GeneratedMessageV3 response)
      • toJsonObject

        public org.json.JSONObject toJsonObject()
      • fromJsonObject

        public static ServiceProfile fromJsonObject​(org.json.JSONObject jsonObject)
      • writeServiceProfile

        public void writeServiceProfile()
      • readServiceProfile

        public static ServiceProfile readServiceProfile​(java.lang.String fileName)
      • loadFromDirectory

        public static java.util.List<ServiceProfile> loadFromDirectory​(java.nio.file.Path directory)
      • loadFromFile

        public static ServiceProfile loadFromFile​(java.nio.file.Path path)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object