public static interface Service.DirectoryService<I> extends Service<I,String>, Service.ServiceFactory
Modifier and Type | Interface and Description |
---|---|
static interface |
Service.DirectoryService.Params |
Service.DirectoryService<I>, Service.Exceptions, Service.ServiceCallContext, Service.ServiceFactory<I,R>, Service.Type
Modifier and Type | Method and Description |
---|---|
default void |
close()
Services can implement cleanup/shutdown procedures here.
|
default Service |
createService(boolean isStart,
Map params)
Create a Service call instance.
|
default Map |
describeParams()
Return a description of any service call parameters.
|
CloseableIterator<String> |
execute(Service.ServiceCallContext ctx,
Map params)
List or describe any registered callable services.
|
default String |
getName()
Get the name of this service.
|
default Set<Service.Type> |
getSupportedTypes()
Get the execution modes that it supports.
|
default Service.Type |
getType()
Return the
Service.Type of service call. |
execute, execute, getMaxBarrierSize, getRequirements, isBarrier, isStart, isStreaming
getRequirements, getRequirementsByType
static final String NAME
default String getName()
Service.ServiceFactory
getName
in interface Service.ServiceFactory
default Service.Type getType()
Service
Service.Type
of service call.default Set<Service.Type> getSupportedTypes()
Service.ServiceFactory
getSupportedTypes
in interface Service.ServiceFactory
default Map describeParams()
Service.ServiceFactory
describeParams
in interface Service.ServiceFactory
default Service createService(boolean isStart, Map params)
Service.ServiceFactory
createService
in interface Service.ServiceFactory
isStart
- true if the call is being used to start a traversalparams
- the static params provided to service call (if any)CloseableIterator<String> execute(Service.ServiceCallContext ctx, Map params)
default void close()
Service
close
in interface AutoCloseable
close
in interface Service<I,String>
close
in interface Service.ServiceFactory
Copyright © 2013–2022 Apache Software Foundation. All rights reserved.