public class DataHolder extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addMicroserviceRegistry(String registryId,
org.wso2.msf4j.MicroservicesRegistry microservicesRegistry)
Add MicroservicesRegistry with the given registry Id.
|
static DataHolder |
getInstance()
Get DataHolder object.
|
Map<String,org.wso2.msf4j.MicroservicesRegistry> |
getMicroserviceRegistries()
Get all the MicroservicesRegistries
|
org.wso2.msf4j.MicroservicesRegistry |
getMicroserviceRegistry(String registryId)
Get available MicroservicesRegistry for the gievn registry Id.
|
Map<String,org.wso2.msf4j.MicroservicesRegistry> |
getMicroservicesRegistries()
Get available MicroservicesRegistries.
|
public static DataHolder getInstance()
public Map<String,org.wso2.msf4j.MicroservicesRegistry> getMicroservicesRegistries()
public org.wso2.msf4j.MicroservicesRegistry getMicroserviceRegistry(String registryId)
registryId - of the registry need to be pickpublic void addMicroserviceRegistry(String registryId, org.wso2.msf4j.MicroservicesRegistry microservicesRegistry)
registryId - id of the registry.microservicesRegistry - instance.Copyright © 2017 WSO2. All rights reserved.