Interface Service.DirectoryService<I>
- All Superinterfaces:
AutoCloseable,Service<I,,String> Service.ServiceFactory
- All Known Implementing Classes:
ServiceRegistry,TinkerServiceRegistry
public static interface Service.DirectoryService<I>
extends Service<I,String>, Service.ServiceFactory
Meta-service to list and describe registered callable services.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.service.Service
Service.DirectoryService<I>, Service.Exceptions, Service.ServiceCallContext, Service.ServiceFactory<I,R>, Service.Type -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()Services can implement cleanup/shutdown procedures here.default ServicecreateService(boolean isStart, Map params) Create a Service call instance.default MapReturn a description of any service call parameters.execute(Service.ServiceCallContext ctx, Map params) List or describe any registered callable services.default StringgetName()Get the name of this service.default Set<Service.Type>Get the execution modes that it supports.default Service.TypegetType()Return theService.Typeof service call.Methods inherited from interface org.apache.tinkerpop.gremlin.structure.service.Service
execute, execute, getMaxBarrierSize, getRequirements, isBarrier, isStart, isStreamingMethods inherited from interface org.apache.tinkerpop.gremlin.structure.service.Service.ServiceFactory
getRequirements, getRequirementsByType
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
getName
Description copied from interface:Service.ServiceFactoryGet the name of this service.- Specified by:
getNamein interfaceService.ServiceFactory
-
getType
Description copied from interface:ServiceReturn theService.Typeof service call. -
getSupportedTypes
Description copied from interface:Service.ServiceFactoryGet the execution modes that it supports.- Specified by:
getSupportedTypesin interfaceService.ServiceFactory
-
describeParams
Description copied from interface:Service.ServiceFactoryReturn a description of any service call parameters.- Specified by:
describeParamsin interfaceService.ServiceFactory
-
createService
Description copied from interface:Service.ServiceFactoryCreate a Service call instance.- Specified by:
createServicein interfaceService.ServiceFactory- Parameters:
isStart- true if the call is being used to start a traversalparams- the static params provided to service call (if any)- Returns:
- the service call instance
-
execute
List or describe any registered callable services. -
close
default void close()Description copied from interface:ServiceServices can implement cleanup/shutdown procedures here.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceService<I,String> - Specified by:
closein interfaceService.ServiceFactory
-