public class ServiceDefinition extends Object implements Externalizable
| Constructor and Description |
|---|
ServiceDefinition()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<Context> |
getContext()
This method gets the context.
|
List<InvocationMetric> |
getHistory()
This method returns the historic list of invocation
metrics merged into the current service definition.
|
InterfaceDefinition |
getInterface(String name)
This method returns the interface associated with the supplied
name, if defined within the service definition.
|
List<InterfaceDefinition> |
getInterfaces()
This method returns the list of interfaces associated
with the service.
|
boolean |
getInternal()
This method identifies whether the service is internal.
|
InvocationMetric |
getMetrics()
This method returns the aggregated invocation metric information
from the interfaces.
|
String |
getServiceType()
This method gets the service type.
|
int |
hashCode() |
void |
merge(ServiceDefinition sd)
This method merges the supplied definition with this
service definition.
|
void |
merge(ServiceDefinition sd,
boolean retainContexts)
This method merges the supplied definition with this
service definition.
|
void |
readExternal(ObjectInput in) |
void |
setContext(List<Context> context)
This method sets the context.
|
void |
setInterfaces(List<InterfaceDefinition> interfaces)
This method sets the list of interfaces associated
with the service.
|
void |
setInternal(boolean b)
This method sets whether the service is internal (i.e.
|
void |
setServiceType(String st)
This method sets the service type.
|
ServiceDefinition |
shallowCopy()
This method creates a shallow copy.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public ServiceDefinition shallowCopy()
public void setServiceType(String st)
st - The service typepublic String getServiceType()
public void setInternal(boolean b)
b - Whether the service is internalpublic boolean getInternal()
public void setInterfaces(List<InterfaceDefinition> interfaces)
interfaces - The interfacespublic List<InterfaceDefinition> getInterfaces()
public InterfaceDefinition getInterface(String name)
name - The interface namepublic void setContext(List<Context> context)
context - The contextpublic InvocationMetric getMetrics()
public List<InvocationMetric> getHistory()
public void merge(ServiceDefinition sd) throws Exception
sd - The service definition to mergeException - Failed to mergepublic void merge(ServiceDefinition sd, boolean retainContexts) throws Exception
sd - The service definition to mergeretainContexts - Whether to merge context informationException - Failed to mergepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.