Class ServiceRegistry
java.lang.Object
org.apache.vinci.transport.vns.service.ServiceRegistry
Primary interface into the services database.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription(package private) Hashtable
(package private) static int
(package private) static int
(package private) static int
(package private) ServiceTree
(package private) static int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
void
boolean
boolean
boolean
boolean
checkConflict
(String ip, int min, int max) (package private) static String
constructXMLString
(Node C, boolean include) boolean
void
boolean
(package private) Object[]
getEntries
(String name) (package private) Object[]
getEntries
(String name, int level) (package private) Object[]
getEntries
(String name, String level) (package private) int
Service[]
getServices
(String name) Service[]
getServices
(String name, int level) Service[]
getServices
(String name, int level, boolean resolveAlias) Service[]
getServices
(String name, String level) Service[]
getServices
(String name, String level, boolean resolveAlias) (package private) ServiceStack
(package private) ServiceStack
String[]
String[]
Object[]
listServices
(String prefix, int level) Object[]
listServices
(String prefix, String level) void
static void
static void
void
boolean
-
Field Details
-
minAutoPort
static int minAutoPort -
maxAutoPort
static int maxAutoPort -
sizeAutoPort
static int sizeAutoPort -
MAX_ALIAS_LINKS
static int MAX_ALIAS_LINKS -
services
ServiceTree services -
bindings
Hashtable bindings
-
-
Constructor Details
-
ServiceRegistry
public ServiceRegistry()
-
-
Method Details
-
addBinding
-
delBinding
-
checkConflict
-
checkBinding
-
addService
-
addAlias
-
delAlias
-
addEntry
-
updateService
-
delService
-
getServices
-
getServices
-
getServices
-
getServices
-
getServices
-
getLevel
-
getStack
-
getStack
-
getEntries
-
getEntries
-
getEntries
-
listServices
-
listServices
-
listNames
-
listNames
-
load
- Throws:
Exception
-
constructXMLString
-
save
- Throws:
IOException
-
main
- Throws:
Exception
-
pr
-