public IoTClaimed claimThing(Collection<Tag> metaTags) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { return claimThing(metaTags, true); }
public IoTClaimed claimThing(Collection<Tag> metaTags, boolean publicThing) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { Jid registry = findRegistry(); return claimThing(registry, metaTags, publicThing); }
@SmackIntegrationTest public void registerClaimAndUnregisterThing() throws XMPPErrorException, InterruptedException, SmackException { final String key = StringUtils.randomString(12); final String sn = StringUtils.randomString(12); final Thing thing = Thing.builder().setKey(key).setSerialNumber(sn).setManufacturer("Ignite Realtime").setModel( "Smack").setVersion("0.1").build(); registerThing(discoveryManagerOne, thing); IoTClaimed iotClaimed = discoveryManagerTwo.claimThing(thing.getMetaTags()); assertEquals(conOne.getUser().asBareJid(), iotClaimed.getJid()); discoveryManagerTwo.disownThing(iotClaimed.getJid()); discoveryManagerOne.unregister(); }
public IoTClaimed claimThing(Collection<Tag> metaTags) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { return claimThing(metaTags, true); }
public IoTClaimed claimThing(Collection<Tag> metaTags, boolean publicThing) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException { Jid registry = findRegistry(); return claimThing(registry, metaTags, publicThing); }