public class SimpleThingsRegistrySupport extends Object implements ThingsRegistrySupport
| 构造器和说明 |
|---|
SimpleThingsRegistrySupport(ThingType thingType,
ConfigStorageManager manager,
ThingMetadataCodec metadataCodec,
java.util.function.Function<Thing,ThingRpcSupport> rpcSupportFactory) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkThingType(String thingType) |
protected org.jetlinks.core.defaults.DefaultThingTemplate |
createTemplate(String id) |
protected org.jetlinks.core.defaults.DefaultThing |
createThing(String id) |
reactor.core.publisher.Mono<ThingTemplate> |
getTemplate(String thingType,
String templateId)
根据物类型获取物模版
|
reactor.core.publisher.Mono<Thing> |
getThing(String thingType,
String thingId)
根据物类型获取物实例
|
boolean |
isSupported(String thingType) |
reactor.core.publisher.Mono<Thing> |
register(String thingType,
ThingInfo info)
注册指定物类型的物实例到注册中心
|
reactor.core.publisher.Mono<ThingTemplate> |
register(String thingType,
ThingTemplateInfo info)
注册指定物类型的物模版到注册中心
|
reactor.core.publisher.Mono<Void> |
unregisterTemplate(String thingType,
String thingId)
从注册中心注销指定物类型的物模版,注销后,通过
ThingsRegistry.getTemplate(ThingType, String)将无法获取到物模版 |
reactor.core.publisher.Mono<Void> |
unregisterThing(String thingType,
String thingId)
从注册中心注销指定物类型的物实例,注销后,通过
ThingsRegistry.getThing(ThingType, String)将无法获取到物实例 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisSupportedgetTemplate, getThing, register, register, unregisterTemplate, unregisterThingpublic SimpleThingsRegistrySupport(ThingType thingType, ConfigStorageManager manager, ThingMetadataCodec metadataCodec, java.util.function.Function<Thing,ThingRpcSupport> rpcSupportFactory)
public boolean isSupported(String thingType)
isSupported 在接口中 ThingsRegistrySupportpublic void checkThingType(String thingType)
public reactor.core.publisher.Mono<Thing> getThing(@Nonnull String thingType, @Nonnull String thingId)
ThingsRegistrygetThing 在接口中 ThingsRegistrythingType - 物类型thingId - 物实例protected org.jetlinks.core.defaults.DefaultThing createThing(String id)
protected org.jetlinks.core.defaults.DefaultThingTemplate createTemplate(String id)
public reactor.core.publisher.Mono<Thing> register(@Nonnull String thingType, @Nonnull ThingInfo info)
ThingsRegistryregister 在接口中 ThingsRegistrythingType - 物类型info - 物实例信息public reactor.core.publisher.Mono<ThingTemplate> getTemplate(@Nonnull String thingType, @Nonnull String templateId)
ThingsRegistrygetTemplate 在接口中 ThingsRegistrythingType - 物类型templateId - 物模版IDpublic reactor.core.publisher.Mono<Void> unregisterThing(@Nonnull String thingType, @Nonnull String thingId)
ThingsRegistryThingsRegistry.getThing(ThingType, String)将无法获取到物实例unregisterThing 在接口中 ThingsRegistrythingType - 物类型thingId - 物IDpublic reactor.core.publisher.Mono<ThingTemplate> register(@Nonnull String thingType, @Nonnull ThingTemplateInfo info)
ThingsRegistryregister 在接口中 ThingsRegistrythingType - 物类型info - 物模版信息public reactor.core.publisher.Mono<Void> unregisterTemplate(@Nonnull String thingType, @Nonnull String thingId)
ThingsRegistryThingsRegistry.getTemplate(ThingType, String)将无法获取到物模版unregisterTemplate 在接口中 ThingsRegistrythingType - 物类型thingId - 模版IDCopyright © 2019–2022. All rights reserved.