Class VNS
java.lang.Object
org.apache.vinci.transport.VinciServableAdapter
org.apache.vinci.transport.vns.service.VNS
- All Implemented Interfaces:
TransportableFactory
,VinciServable
VNS (Vinci Naming Service) provides the "directory" of all available Vinci services. VNS must be
running somewhere on the network for VinciClient and VinciServer classes to function. These
classes consult org.apache.vinci.transport.vns.client.VNSConfig to determine the location of the
VNS service.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when the service is being shutdown by the server/service container.static String
eval
(Transportable inp) The eval method accepts an input document and returns an output document that is the result of performing the service.boolean
loadConfig
(String cFile) void
loadCounters
(String cFile) void
loadWorkspaces
(String wFile) static void
void
saveConfig
(String cFile) void
saveCounters
(String cFile) void
saveWorkspaces
(String wFile) static void
static String
Methods inherited from class org.apache.vinci.transport.VinciServableAdapter
makeTransportable
-
Field Details
-
dirCmdAddService
- See Also:
-
dirCmdAddAlias
- See Also:
-
dirCmdDelService
- See Also:
-
dirCmdDelAlias
- See Also:
-
dirCmdUpdateService
- See Also:
-
dirCmdGetList
- See Also:
-
dirCmdGetNames
- See Also:
-
dirCmdGetHits
- See Also:
-
ENV_PROXY
-
-
Constructor Details
-
VNS
public VNS() -
VNS
public VNS(int port) -
VNS
- Throws:
IOException
-
-
Method Details
-
main
- Throws:
IOException
-
startServing
- Throws:
IOException
-
loadConfig
-
loadWorkspaces
-
loadCounters
-
saveConfig
-
saveCounters
-
saveWorkspaces
-
eval
Description copied from interface:VinciServable
The eval method accepts an input document and returns an output document that is the result of performing the service.- Specified by:
eval
in interfaceVinciServable
- Specified by:
eval
in classVinciServableAdapter
- Parameters:
inp
- The input document- Returns:
- The output document
- Throws:
ServiceException
- thrown when there is an application level error that should result in the client receiving the same ServiceException on the other end.
-
strip
-
emptyString
-
cleanExit
public void cleanExit()Description copied from interface:VinciServable
Called when the service is being shutdown by the server/service container.- Specified by:
cleanExit
in interfaceVinciServable
- Overrides:
cleanExit
in classVinciServableAdapter
-