Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Facet Instance is a data structure associated with each incoming request to the TQLEngine. Each facet instance is identified by its facet ID and represents a capability to perform certain actions on the TQLEngine. Incoming requests without valid facet IDs are rejected. Each facet instance is also associated with its Facet Type, which is a piece of executable code (a Java class) intended to actually process the request. Facet instances are deployed through packages. A package is a collection of related facet instances.

Code Block
languagexml
themeEclipse
titleFacetscript within TQL Query
linenumberstrue
<NewFacetInstance fid="helloworld" name="HelloWorld" type="SffMsgFacet">
  <OnActivate/>
  <OnOpen ModifyPipeline="HttpServerExtensionArgs"/>
  <OnRequest>
    <DoResponse>
      <Process>
        <Message type="text">
          <Value>
            Hello World from FacetScript!
          </Value>
        </Message>
      </Process>
    </DoResponse>
  </OnRequest>
  <OnResponse/>
  <OnClose/>
</NewFacetInstance>

Facet Instance Lifecycle

Once a request legitimacy is established by successful resolution of its facet ID, a processing (Netty) pipeline is created for low level request processing. 

...