Class ServiceProfile
- java.lang.Object
-
- cloud.filibuster.junit.server.core.profiles.ServiceProfile
-
public class ServiceProfile extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ServiceProfile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToProfile(java.lang.String method, com.google.protobuf.GeneratedMessageV3 request, io.grpc.Status status, com.google.protobuf.GeneratedMessageV3 response)booleanequals(java.lang.Object o)static ServiceProfilefromJsonObject(org.json.JSONObject jsonObject)java.util.List<ServiceRequestAndResponse>getServiceRequestAndResponsesForMethod(java.lang.String method)inthashCode()static java.util.List<ServiceProfile>loadFromDirectory(java.nio.file.Path directory)static ServiceProfileloadFromFile(java.nio.file.Path path)static ServiceProfilereadServiceProfile(java.lang.String fileName)booleansawMethod(java.lang.String method)java.util.List<java.lang.String>seenMethods()org.json.JSONObjecttoJsonObject()voidwriteServiceProfile()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-