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 void
addToProfile(java.lang.String method, com.google.protobuf.GeneratedMessageV3 request, io.grpc.Status status, com.google.protobuf.GeneratedMessageV3 response)
boolean
equals(java.lang.Object o)
static ServiceProfile
fromJsonObject(org.json.JSONObject jsonObject)
java.util.List<ServiceRequestAndResponse>
getServiceRequestAndResponsesForMethod(java.lang.String method)
int
hashCode()
static java.util.List<ServiceProfile>
loadFromDirectory(java.nio.file.Path directory)
static ServiceProfile
loadFromFile(java.nio.file.Path path)
static ServiceProfile
readServiceProfile(java.lang.String fileName)
boolean
sawMethod(java.lang.String method)
java.util.List<java.lang.String>
seenMethods()
org.json.JSONObject
toJsonObject()
void
writeServiceProfile()
-
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-