public class Service extends Object
| Constructor and Description |
|---|
Service(String name,
String uri,
String id,
ServiceRegistry reg,
Map<String,String> calledServices) |
| Modifier and Type | Method and Description |
|---|---|
void |
call(Message mesg,
String interactionId,
String btxnName)
This method simulates calling the service.
|
Map<String,String> |
getCalledServices() |
TraceCollector |
getCollector() |
String |
getId() |
long |
getLastUsed() |
String |
getName() |
ServiceRegistry |
getRegistry() |
String |
getUri() |
void |
setCalledServices(Map<String,String> calledServices) |
void |
setCollector(TraceCollector collector) |
void |
setId(String id) |
void |
setLastUsed(long lastUsed) |
void |
setName(String name) |
void |
setRegistry(ServiceRegistry registry) |
void |
setUri(String uri) |
public TraceCollector getCollector()
public void setCollector(TraceCollector collector)
collector - the collector to setpublic String getUri()
public void setUri(String uri)
uri - the uri to setpublic String getName()
public void setName(String name)
name - the name to setpublic String getId()
public void setId(String id)
id - the id to setpublic void setCalledServices(Map<String,String> calledServices)
calledServices - the calledServices to setpublic ServiceRegistry getRegistry()
public void setRegistry(ServiceRegistry registry)
registry - the registry to setpublic void call(Message mesg, String interactionId, String btxnName)
mesg - The message to be exchangedinteractionId - The interaction id, or null if initial callbtxnName - The optional business txn namepublic long getLastUsed()
public void setLastUsed(long lastUsed)
lastUsed - the lastUsed to setCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.