org.apache.vinci.transport.vns.service
Class VNS
java.lang.Object
org.apache.vinci.transport.VinciServableAdapter
org.apache.vinci.transport.vns.service.VNS
- All Implemented Interfaces:
- TransportableFactory, VinciServable
public class VNS
- extends VinciServableAdapter
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.
Constructor Summary |
VNS()
|
VNS(int port)
|
VNS(int port,
java.lang.String logFile)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dirCmdAddService
public static final java.lang.String dirCmdAddService
- See Also:
- Constant Field Values
dirCmdAddAlias
public static final java.lang.String dirCmdAddAlias
- See Also:
- Constant Field Values
dirCmdDelService
public static final java.lang.String dirCmdDelService
- See Also:
- Constant Field Values
dirCmdDelAlias
public static final java.lang.String dirCmdDelAlias
- See Also:
- Constant Field Values
dirCmdUpdateService
public static final java.lang.String dirCmdUpdateService
- See Also:
- Constant Field Values
dirCmdGetList
public static final java.lang.String dirCmdGetList
- See Also:
- Constant Field Values
dirCmdGetNames
public static final java.lang.String dirCmdGetNames
- See Also:
- Constant Field Values
dirCmdGetHits
public static final java.lang.String dirCmdGetHits
- See Also:
- Constant Field Values
ENV_PROXY
public java.lang.String ENV_PROXY
VNS
public VNS()
VNS
public VNS(int port)
VNS
public VNS(int port,
java.lang.String logFile)
throws java.io.IOException
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
throws java.io.IOException
- Throws:
java.io.IOException
startServing
public static void startServing()
throws java.io.IOException
- Throws:
java.io.IOException
loadConfig
public boolean loadConfig(java.lang.String cFile)
loadWorkspaces
public void loadWorkspaces(java.lang.String wFile)
loadCounters
public void loadCounters(java.lang.String cFile)
saveConfig
public void saveConfig(java.lang.String cFile)
saveCounters
public void saveCounters(java.lang.String cFile)
saveWorkspaces
public void saveWorkspaces(java.lang.String wFile)
eval
public Transportable eval(Transportable inp)
throws ServiceException
- 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 interface VinciServable
- Specified by:
eval
in class VinciServableAdapter
- 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
public static java.lang.String strip(java.lang.String s)
emptyString
public static java.lang.String emptyString(java.lang.String s)
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 interface VinciServable
- Overrides:
cleanExit
in class VinciServableAdapter
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.