13.07.2015 Views

SAMP — Simple Application Messag- ing Protocol Version 1.11 - IVOA

SAMP — Simple Application Messag- ing Protocol Version 1.11 - IVOA

SAMP — Simple Application Messag- ing Protocol Version 1.11 - IVOA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

protection from this eventuality; users of the Asynchronous Call/Responsepattern may or may not wish to take their own steps.3.11 Operations a Hub Must SupportThis section describes the operations that a hub MUST support and theassociated data that MUST be sent and received. The precise details ofhow these operations map onto method names and signatures is Profiledependent.The mapp<strong>ing</strong> for the Standard Profile is given in Section 4.2.• map reg-info = register()Method called by a client wish<strong>ing</strong> to register with the hub. The formof reg-info is given in Section 3.5. Note that the form of this call mayvary accord<strong>ing</strong> to the requirements of the particular Profile in use. Forinstance authentication tokens may be passed in one or both directionsto complete registration.• unregister()Method called by a client wish<strong>ing</strong> to unregister from the hub• declareMetadata(map metadata)Method called by a client to declare its metadata. May be called zeroor more times to update hub state; the most recent call is the onewhich defines the client’s currently declared metadata. The form ofthe metadata map is given in Section 3.6.• map metadata = getMetadata(str<strong>ing</strong> client-id)Returns the metadata information for the client whose public ID isclient-id. The form of the metadata map is given in Section 3.6.• declareSubscriptions(map subscriptions)Method called by a callable client to declare the MTypes it wishes tosubscribe to. May be called zero or more times to update hub state;the most recent call is the one which defines the client’s currently subscribedMTypes. The form of the subscriptions map is given inSection 3.7.• map subscriptions = getSubscriptions(str<strong>ing</strong> client-id)Returns the subscribed MTypes for the client whose public ID is client-id.The form of the subscriptions map is given in Section 3.7.21

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!