public interface DiscoManager
Modifier and Type | Method and Description |
---|---|
java.util.Collection<DeviceAdvertisement> |
getExternalDeviceAdvertisements(PluginContext ctx,
java.lang.String protocolId)
Allows a plugin to request all known external device advertisements.
|
DeviceAdvertisement |
getInternalDeviceAdvertisement(HubContext ctx,
java.lang.String protocolId,
java.lang.String advId)
Returns a specific published internal device advertisement.
|
java.util.Collection<DeviceAdvertisement> |
getInternalDeviceAdvertisements(HubContext ctx,
java.lang.String protocolId)
Returns all published internal device advertisements.
|
void |
publishDeviceAdvertisement(HubContext ctx,
DeviceAdvertisement advertisement,
boolean internal)
Publishes a device advertisement.
|
java.util.Collection<DeviceAdvertisement> getExternalDeviceAdvertisements(PluginContext ctx, java.lang.String protocolId)
ctx
- the context of the plugin requesting the snapshotprotocolId
- the protocol ID for the advertisements requestedDeviceAdvertisement getInternalDeviceAdvertisement(HubContext ctx, java.lang.String protocolId, java.lang.String advId)
ctx
- the hub contextprotocolId
- the protocol associated with the advertisementadvId
- a advertisement IDjava.util.Collection<DeviceAdvertisement> getInternalDeviceAdvertisements(HubContext ctx, java.lang.String protocolId)
ctx
- the hub contextprotocolId
- the protocol associated with the advertisementvoid publishDeviceAdvertisement(HubContext ctx, DeviceAdvertisement advertisement, boolean internal)
ctx
- the context of the hub publishing the advertisementadvertisement
- the advertisement to publishinternal
- indicates if this is an internal advertisement. A value of true will insure that the
advertisement is included in any discovery requests that external clients make for a
particular protocol.Copyright © 2015 Whizzo Software LLC. All rights reserved.