Class ServiceRegistry
- java.lang.Object
- 
- org.apache.tinkerpop.gremlin.structure.service.ServiceRegistry
 
- 
- All Implemented Interfaces:
- AutoCloseable,- Service,- Service.DirectoryService,- Service.ServiceFactory
 - Direct Known Subclasses:
- TinkerServiceRegistry
 
 public class ServiceRegistry extends Object implements Service.DirectoryService, AutoCloseable A basic service registry implementation used byCallStep. This service registry contains one meta-service - theService.DirectoryService, which is used to list and describe registered callable services.- Author:
- Mike Personick (http://github.com/mikepersonick)
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.service.ServiceService.DirectoryService<I>, Service.Exceptions, Service.ServiceCallContext, Service.ServiceFactory<I,R>, Service.Type
 - 
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.service.Service.DirectoryServiceService.DirectoryService.Params
 
- 
 - 
Field SummaryFields Modifier and Type Field Description static ServiceRegistryEMPTYEmpty instance, for theGraphinterface.- 
Fields inherited from interface org.apache.tinkerpop.gremlin.structure.service.Service.DirectoryServiceNAME
 
- 
 - 
Constructor SummaryConstructors Constructor Description ServiceRegistry()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckRegisteredService(String service)Check for non-null and registered.voidclose()Services can implement cleanup/shutdown procedures here.protected Stringdescribe(Service.ServiceFactory service)Provide a service description for the supplied service.CloseableIteratorexecute(Service.ServiceCallContext ctx, Map params)Service.DirectoryServiceexecution.Serviceget(String service, boolean isStart, Map params)Lookup a service by name.Service.ServiceFactoryregisterService(Service.ServiceFactory serviceFactory)Register a callable service.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.service.Serviceexecute, execute, getMaxBarrierSize, getRequirements, isBarrier, isStart, isStreaming
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.service.Service.DirectoryServicecreateService, describeParams, getName, getSupportedTypes, getType
 - 
Methods inherited from interface org.apache.tinkerpop.gremlin.structure.service.Service.ServiceFactorygetRequirements, getRequirementsByType
 
- 
 
- 
- 
- 
Field Detail- 
EMPTYpublic static final ServiceRegistry EMPTY Empty instance, for theGraphinterface.
 
- 
 - 
Method Detail- 
registerServicepublic Service.ServiceFactory registerService(Service.ServiceFactory serviceFactory) Register a callable service.
 - 
checkRegisteredServicepublic void checkRegisteredService(String service) Check for non-null and registered.
 - 
executepublic CloseableIterator execute(Service.ServiceCallContext ctx, Map params) Service.DirectoryServiceexecution. List or describe the registered callable services.- Specified by:
- executein interface- Service
- Specified by:
- executein interface- Service.DirectoryService
 
 - 
describeprotected String describe(Service.ServiceFactory service) Provide a service description for the supplied service.
 - 
closepublic void close() Description copied from interface:ServiceServices can implement cleanup/shutdown procedures here.- Specified by:
- closein interface- AutoCloseable
- Specified by:
- closein interface- Service
- Specified by:
- closein interface- Service.DirectoryService
- Specified by:
- closein interface- Service.ServiceFactory
 
 
- 
 
-