public class ServiceData extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
log |
Constructor and Description |
---|
ServiceData() |
Modifier and Type | Method and Description |
---|---|
void |
add(ServiceType serviceType) |
boolean |
containsServiceType(String fullServiceName) |
static ServiceData |
generate()
This method has to check the environment first in order to tell if its
Develop-Time or Run-Time because the method of generating a service list is
different depending on current environment
Develop-Time can simply filter and process the files on the file system
given by the code source location
Run-Time must extract itself and scan/filter zip entries which is
potentially a lengthy process, and should only have to be done once for the
lifetime of the version or mrl
|
List<ServiceType> |
getAvailableServiceTypes() |
List<Category> |
getCategories() |
Category |
getCategory(String filter) |
String[] |
getCategoryNames() |
static List<ServiceDependency> |
getDependencyKeys(String fullTypeName) |
static ServiceData |
getLocalInstance() |
static ServiceType |
getMetaData(String serviceTypeName) |
ServiceType |
getServiceType(String fullTypeName) |
HashSet<ServiceDependency> |
getServiceTypeDependencyKeys() |
String[] |
getServiceTypeNames() |
String[] |
getServiceTypeNames(String categoryFilterName) |
List<ServiceType> |
getServiceTypes() |
List<ServiceType> |
getServiceTypes(boolean showUnavailable) |
static void |
main(String[] args) |
boolean |
save() |
boolean |
save(String filename) |
public static ServiceData getLocalInstance()
public static ServiceData generate() throws IOException
IOException
- epublic void add(ServiceType serviceType)
public boolean containsServiceType(String fullServiceName)
public List<ServiceType> getAvailableServiceTypes()
public String[] getCategoryNames()
public HashSet<ServiceDependency> getServiceTypeDependencyKeys()
public String[] getServiceTypeNames()
public ServiceType getServiceType(String fullTypeName)
public List<ServiceType> getServiceTypes()
public List<ServiceType> getServiceTypes(boolean showUnavailable)
public boolean save()
public boolean save(String filename)
public static List<ServiceDependency> getDependencyKeys(String fullTypeName)
public static ServiceType getMetaData(String serviceTypeName)
public static void main(String[] args)
Copyright © 2020 myrobotlab. All rights reserved.