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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when the service is being shutdown by the server/service container.static Stringeval(Transportable inp) The eval method accepts an input document and returns an output document that is the result of performing the service.booleanloadConfig(String cFile) voidloadCounters(String cFile) voidloadWorkspaces(String wFile) static voidvoidsaveConfig(String cFile) voidsaveCounters(String cFile) voidsaveWorkspaces(String wFile) static voidstatic StringMethods 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:VinciServableThe eval method accepts an input document and returns an output document that is the result of performing the service.- Specified by:
evalin interfaceVinciServable- Specified by:
evalin 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:VinciServableCalled when the service is being shutdown by the server/service container.- Specified by:
cleanExitin interfaceVinciServable- Overrides:
cleanExitin classVinciServableAdapter
-