public class OperationDefinition extends Object implements Externalizable
Constructor and Description |
---|
OperationDefinition()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<InvocationMetric> |
getHistory()
This method returns the historic list of invocation
metrics merged into the current operation definition.
|
InvocationMetric |
getMetrics()
This method returns the aggregated invocation metric information
from the normal and fault responses.
|
String |
getName()
This method gets the operation name.
|
RequestFaultDefinition |
getRequestFault(String name)
This method returns the fault associated with the supplied
name, if defined within the operation definition.
|
List<RequestFaultDefinition> |
getRequestFaults()
This method returns the list of faults associated
with the operation.
|
RequestResponseDefinition |
getRequestResponse()
This method gets the normal response details.
|
int |
hashCode() |
void |
merge(OperationDefinition opdef)
This method merges the supplied operation definition
with this.
|
void |
readExternal(ObjectInput in) |
void |
setName(String operation)
This method sets the operation name.
|
void |
setRequestFaults(List<RequestFaultDefinition> faults)
This method sets the list of faults associated
with the operation.
|
void |
setRequestResponse(RequestResponseDefinition response)
This method sets the normal response details.
|
protected OperationDefinition |
shallowCopy()
This method creates a shallow copy.
|
void |
writeExternal(ObjectOutput out) |
protected OperationDefinition shallowCopy()
public void setName(String operation)
operation
- The operation namepublic String getName()
public void setRequestResponse(RequestResponseDefinition response)
response
- The normal responsepublic RequestResponseDefinition getRequestResponse()
public void setRequestFaults(List<RequestFaultDefinition> faults)
faults
- The faultspublic List<RequestFaultDefinition> getRequestFaults()
public RequestFaultDefinition getRequestFault(String name)
name
- The fault namepublic InvocationMetric getMetrics()
public void merge(OperationDefinition opdef)
opdef
- The operation definition to mergepublic List<InvocationMetric> getHistory()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.