Class Moderator
A class which provides API for getting information about Fabric
Defined in: <D:\Programs\Neeve\Projects\NeeveBuild\stjsapi/src/main/webapp/js\Moderator.js>.
Constructor Attributes | Constructor Name and Description |
---|---|
Moderator(fabricConnection)
Creates a moderator for the connected Fabric node.
|
Method Attributes | Method Name and Description |
---|---|
void |
getAsyncConsumers(eventScope, callback)
Asynchronously gets a list of asynchronous consumers with the specified
event scope.
|
void |
getComponents(eventScope, callback)
Asynchronously gets a list of components with the specified event scope.
|
void |
getConsumers(eventScope, callback)
Asynchronously gets a list of consumers with the specified event scope.
|
void |
getDateRangeConstraints(callback)
Asynchronously gets a list of all the date range constraints in Fabric.
|
void |
getDirectConsumers(eventScope, callback)
Asynchronously gets a list of direct consumers (not asynchronous event
consumers) with the specified event scope.
|
void |
getDomain(callback)
Asynchronously gets a domain name of Fabric.
|
void |
getDomainConstraints(callback)
Asynchronously gets a list of all the domain constraints in Fabric.
|
void |
getEventCaches(callback)
Asynchronously gets a list of all the event caches in Fabric.
|
void |
getEventConsumers(eventScope, callback)
Asynchronously gets a list of event consumers (direct consumers, async
consumers and receivers) with the specified event scope.
|
void |
getFabricNode(callback)
Asynchronously gets a reference to the Fabric node, to which this client
is connected.
|
void |
getFabricNodes(callback)
Asynchronously gets a list of all the Fabric nodes.
|
void |
getNumericRangeConstraints(callback)
Asynchronously gets a list of all the numeric range constraints in Fabric.
|
void |
getReceivers(eventScope, callback)
Asynchronously gets a list of receivers with the specified event scope.
|
void |
getRequestConsumers(eventScope, callback)
Asynchronously gets a list of request consumers with the specified event
scope.
|
void |
listAsyncConsumers(callback)
Asynchronously gets a list of names of all the asynchronous consumers.
|
void |
listComponents(callback)
Asynchronously gets a list of names of all the components.
|
void |
listConsumers(callback)
Asynchronously gets a list of names of all the consumers.
|
void |
listDateRangeConstraints(callback)
Asynchronously gets a list of names of all the date range constraints in
Fabric.
|
void |
listDirectConsumers(callback)
Asynchronously gets a list of names of all the direct consumers.
|
void |
listDomainConstraints(callback)
Asynchronously gets a list of names of all the domain constraints in
Fabric.
|
void |
listEventCaches(callback)
Asynchronously gets a list of event filters (which are names actually) of
all the event caches.
|
void |
listEventConsumers(callback)
Asynchronously gets a list of names of all the consumers (direct, async
consumers and event receivers).
|
void |
listFabricNodes(callback)
Asynchronously gets a list of names of all the Fabric nodes.
|
void |
listNumericRangeConstraints(callback)
Asynchronously gets a list of names of all the numeric range constraints
in Fabric.
|
void |
listReceivers(callback)
Asynchronously gets a list of names of all the receivers.
|
void |
listRequestConsumers(callback)
Asynchronously gets a list of names of all the request consumers.
|
void |
lookupAsyncConsumer(address, callback)
Asynchronously finds and gets the asynchronous consumer with the
specified Fabric address.
|
void |
lookupAsyncConsumerByName(name, callback)
Asynchronously finds and gets the asynchronous consumer with the
specified name.
|
void |
lookupComponent(address, callback)
Asynchronously finds and gets the component with the specified Fabric
address.
|
void |
lookupComponentByName(name, callback)
Asynchronously finds and gets the component with the specified name.
|
void |
lookupConsumer(address, callback)
Asynchronously finds and gets the consumer with the specified Fabric
address.
|
void |
lookupConsumerByName(name, callback)
Asynchronously finds and gets the consumer with the specified name.
|
void |
lookupDateRangeConstraint(name, callback)
Asynchronously finds and gets the date range constraint with the specified
name.
|
void |
lookupDirectConsumer(address, callback)
Asynchronously finds and gets the direct consumer with the specified
Fabric address.
|
void |
lookupDirectConsumerByName(name, callback)
Asynchronously finds and gets the direct consumer with the specified
name.
|
void |
lookupDomainConstraint(name, callback)
Asynchronously finds and gets the domain constraint with the specified
name.
|
void |
lookupEventCache(eventFilter, callback)
Asynchronously finds and gets the event cache with the specified simple
event filter.
|
void |
lookupEventConsumer(address, callback)
Asynchronously finds and gets the consumer (direct or async consumer,
or event receiver) with the specified Fabric address.
|
void |
lookupEventConsumerByName(name, callback)
Asynchronously finds and gets the consumer (direct or async consumer,
or event receiver) with the specified name.
|
void |
lookupFabricNode(address, callback)
Asynchronously finds and gets the Fabric node with the specified Fabric
address.
|
void |
lookupFabricNodeByName(name, callback)
Asynchronously finds and gets the Fabric node with the specified name
The node is passed to the specified
callback function when
it is returned from server side. |
void |
lookupNumericRangeConstraint(name, callback)
Asynchronously finds and gets the numeric range constraint with the
specified name.
|
void |
lookupReceiver(address, callback)
Asynchronously finds and gets the receiver with the specified Fabric
address.
|
void |
lookupReceiverByName(name, callback)
Asynchronously finds and gets the receiver with the specified name.
|
void |
lookupRequestConsumer(address, callback)
Asynchronously finds and gets the request consumer with the specified
Fabric address.
|
void |
lookupRequestConsumerByName(name, callback)
Asynchronously finds and gets the request consumer with the specified
name.
|
Class Detail
Moderator(fabricConnection)
Creates a moderator for the connected Fabric node. The Moderator object is
used for getting different information about the Fabric node. It can be used
only after the connection to Fabric is opened. Typically it is done in the
following way:
fabricConnection = new HTTPFabricConnection(); // Create connection fabricConnection.open(); // Login to Fabric moderator = fabricConnection.getModerator(); // Create moderator
- Parameters:
- {HTTPFabricConnection} fabricConnection
- The connection for which this moderator is created.
Method Detail
getAsyncConsumers(eventScope, callback)
Asynchronously gets a list of asynchronous consumers with the specified
event scope. If 'INHERITED' event scope is specified, a list of all the
asynchronous consumers will be returned. The list is passed to the
specified
callback
function when it is returned from server
side.
- Parameters:
- {String} eventScope
- The event scope of the consumers to be listed. See HTTPFabricConnection#getEventScope for possible event scope values. An empty list is returned if 'LOCAL' scope is specified.
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'AsyncConsumerReference[]' (see its description in Java documentation).
getComponents(eventScope, callback)
Asynchronously gets a list of components with the specified event scope.
If 'INHERITED' event scope is specified, a list of all the components will
be returned. The list is passed to the specified
callback
function when it is returned from server side.
- Parameters:
- {String} eventScope
- The event scope of the components to be listed. See HTTPFabricConnection#getEventScope for possible event scope values. An empty list is returned if 'LOCAL' scope is specified.
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'ComponentReference[]' (see its description in Java documentation).
getConsumers(eventScope, callback)
Asynchronously gets a list of consumers with the specified event scope.
If 'INHERITED' event scope is specified, a list of all the consumers will
be returned. The list is passed to the specified
callback
function when it is returned from server side.
- Parameters:
- {String} eventScope
- The event scope of the consumers to be listed. See HTTPFabricConnection#getEventScope for possible event scope values. An empty list is returned if 'LOCAL' scope is specified.
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'ConsumerReference[]' (see its description in Java documentation).
getDateRangeConstraints(callback)
Asynchronously gets a list of all the date range constraints in Fabric.
The list is passed to the specified
callback
function when it
is returned from server side.
- Parameters:
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'DateRangeConstraintReference[]' (see its description in Java documentation).
getDirectConsumers(eventScope, callback)
Asynchronously gets a list of direct consumers (not asynchronous event
consumers) with the specified event scope. If 'INHERITED' event scope is
specified, a list of all the direct consumers will be returned. The list
is passed to the specified
callback
function when it is
returned from server side.
- Parameters:
- {String} eventScope
- The event scope of the consumers to be listed. See HTTPFabricConnection#getEventScope for possible event scope values. An empty list is returned if 'LOCAL' scope is specified.
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'DirectConsumerReference[]' (see its description in Java documentation).
getDomain(callback)
Asynchronously gets a domain name of Fabric. The got name is passed to
the specified
callback
function when it is returned from
the server side.
- Parameters:
- {Function} callback
- The callback function called with the name returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: {String}.
getDomainConstraints(callback)
Asynchronously gets a list of all the domain constraints in Fabric. The
list is passed to the specified
callback
function when it is
returned from server side.
- Parameters:
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'DomainConstraintReference[]' (see its description in Java documentation).
getEventCaches(callback)
Asynchronously gets a list of all the event caches in Fabric. The list is
passed to the specified
callback
function when it is returned
from server side.
- Parameters:
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'EventCacheReference[]' (see its description in Java documentation).
getEventConsumers(eventScope, callback)
Asynchronously gets a list of event consumers (direct consumers, async
consumers and receivers) with the specified event scope. If 'INHERITED'
event scope is specified, a list of all the event consumers will
be returned. The list is passed to the specified
callback
function when it is returned from server side.
- Parameters:
- {String} eventScope
- The event scope of the consumers to be listed. See HTTPFabricConnection#getEventScope for possible event scope values. An empty list is returned if 'LOCAL' scope is specified.
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'EventConsumerReference[]' (see its description in Java documentation).
getFabricNode(callback)
Asynchronously gets a reference to the Fabric node, to which this client
is connected. The got reference is passed to the specified
callback
function when it is returned from server side.
- Parameters:
- {Function} callback
- The callback function called with the reference to the Fabric node returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'FabricNodeReference' (see its description in Java documentation).
getFabricNodes(callback)
Asynchronously gets a list of all the Fabric nodes. The list is passed to
the specified
callback
function when it is returned from
server side.
- Parameters:
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'FabricNodeReference[]' (see its description in Java documentation).
getNumericRangeConstraints(callback)
Asynchronously gets a list of all the numeric range constraints in Fabric.
The list is passed to the specified
callback
function when it
is returned from server side.
- Parameters:
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'NumericRangeConstraintReference[]' (see its description in Java documentation).
getReceivers(eventScope, callback)
Asynchronously gets a list of receivers with the specified event scope.
If 'INHERITED' event scope is specified, a list of all the receivers
will be returned. The list is passed to the specified
callback
function when it is returned from server side.
- Parameters:
- {String} eventScope
- The event scope of the receivers to be listed. See HTTPFabricConnection#getEventScope for possible event scope values. An empty list is returned if 'LOCAL' scope is specified.
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'ReceiverReference[]' (see its description in Java documentation).
getRequestConsumers(eventScope, callback)
Asynchronously gets a list of request consumers with the specified event
scope. If 'INHERITED' event scope is specified, a list of all the request
consumers will be returned. The list is passed to the specified
callback
function when it is returned from server side.
- Parameters:
- {String} eventScope
- The event scope of the consumers to be listed. See HTTPFabricConnection#getEventScope for possible event scope values. An empty list is returned if 'LOCAL' scope is specified.
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'RequestConsumerReference[]' (see its description in Java documentation).
listAsyncConsumers(callback)
Asynchronously gets a list of names of all the asynchronous consumers.
The list is passed to the specified
callback
function when it
is returned from server side.
- Parameters:
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: {String[]}.
listComponents(callback)
Asynchronously gets a list of names of all the components. The list is
passed to the specified
callback
function when it is returned
from server side.
- Parameters:
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: {String[]}.
listConsumers(callback)
Asynchronously gets a list of names of all the consumers. The list is
passed to the specified
callback
function when it is
returned from the server side.
- Parameters:
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: {String[]}.
listDateRangeConstraints(callback)
Asynchronously gets a list of names of all the date range constraints in
Fabric. The list is passed to the specified
callback
function when it is returned from the server side.
- Parameters:
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: {String[]}.
listDirectConsumers(callback)
Asynchronously gets a list of names of all the direct consumers. The list
is passed to the specified
callback
function when it is
returned from server side.
- Parameters:
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: {String[]}.
listDomainConstraints(callback)
Asynchronously gets a list of names of all the domain constraints in
Fabric. The list is passed to the specified
callback
function when it is returned from the server side.
- Parameters:
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: {String[]}.
listEventCaches(callback)
Asynchronously gets a list of event filters (which are names actually) of
all the event caches. The list is passed to the specified
callback
function when it is returned from server side.
- Parameters:
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: {String[]}.
listEventConsumers(callback)
Asynchronously gets a list of names of all the consumers (direct, async
consumers and event receivers). The list is passed to the specified
callback
function when it is returned from the server side.
- Parameters:
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: {String[]}.
listFabricNodes(callback)
Asynchronously gets a list of names of all the Fabric nodes. The list is
passed to the specified
callback
function when it is returned
from server side.
- Parameters:
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: {String[]}.
listNumericRangeConstraints(callback)
Asynchronously gets a list of names of all the numeric range constraints
in Fabric. The list is passed to the specified
callback
function when it is returned from the server side.
- Parameters:
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: {String[]}.
listReceivers(callback)
Asynchronously gets a list of names of all the receivers. The list is
passed to the specified
callback
function when it is returned
from server side.
- Parameters:
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: {String[]}.
listRequestConsumers(callback)
Asynchronously gets a list of names of all the request consumers. The list
is passed to the specified
callback
function when it is
returned from server side.
- Parameters:
- {Function} callback
- The callback function called with the list returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: {String[]}.
lookupAsyncConsumer(address, callback)
Asynchronously finds and gets the asynchronous consumer with the
specified Fabric address. The consumer is passed to the specified
callback
function when it is returned from server side.
- Parameters:
- {FabricAddress} address
- The Fabric address of the asynchronous consumer to be found. See
Moderator#lookupFabricNode for an example of
FabricAddress
object. - {Function} callback
- The callback function called with the consumer returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'AsyncConsumerReference' (see its description in Java documentation).
lookupAsyncConsumerByName(name, callback)
Asynchronously finds and gets the asynchronous consumer with the
specified name. The name must have one of the following formats:
[ComponentType].[ComponentName]:[ConsumerName] or
[NodeName]://[ComponentType].[ComponentName]:[ConsumerName].
The consumer is passed to the specified
callback
function
when it is returned from server side.
- Parameters:
- {String} name
- The name of the asynchronous consumer to be found.
- {Function} callback
- The callback function called with the consumer returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'AsyncConsumerReference' (see its description in Java documentation).
lookupComponent(address, callback)
Asynchronously finds and gets the component with the specified Fabric
address. The component is passed to the specified
callback
function when it is returned from server side.
- Parameters:
- {FabricAddress} address
- The Fabric address of the component to be found. See
Moderator#lookupFabricNode for an example of
FabricAddress
object. - {Function} callback
- The callback function called with the component returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'ComponentReference' (see its description in Java documentation).
lookupComponentByName(name, callback)
Asynchronously finds and gets the component with the specified name.
The name must have one of the following formats:
[ComponentType].[ComponentName] or
[NodeName]://[ComponentType].[ComponentName].
The component is passed to the specified
callback
function
when it is returned from server side.
- Parameters:
- {String} name
- The name of the component to be found.
- {Function} callback
- The callback function called with the component returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'ComponentReference' (see its description in Java documentation).
lookupConsumer(address, callback)
Asynchronously finds and gets the consumer with the specified Fabric
address. The consumer is passed to the specified
callback
function when it is returned from server side.
- Parameters:
- {FabricAddress} address
- The Fabric address of the consumer to be found. See
Moderator#lookupFabricNode for an example of
FabricAddress
object. - {Function} callback
- The callback function called with the consumer returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'ConsumerReference' (see its description in Java documentation).
lookupConsumerByName(name, callback)
Asynchronously finds and gets the consumer with the specified name.
The name must have one of the following formats:
[ComponentType].[ComponentName]:[ConsumerName] or
[NodeName]://[ComponentType].[ComponentName]:[ConsumerName].
The consumer is passed to the specified
callback
function
when it is returned from server side.
- Parameters:
- {String} name
- The name of the consumer to be found.
- {Function} callback
- The callback function called with the consumer returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'ConsumerReference' (see its description in Java documentation).
lookupDateRangeConstraint(name, callback)
Asynchronously finds and gets the date range constraint with the specified
name. It is then passed to the specified
callback
function when returned from the server side.
- Parameters:
- {String} name
- The name of the date range constraint to be found
- {Function} callback
- The callback function called with the value returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'DateRangeConstraintReference' (see its description in Java documentation).
lookupDirectConsumer(address, callback)
Asynchronously finds and gets the direct consumer with the specified
Fabric address. The consumer is passed to the specified
callback
function when it is returned from server side.
- Parameters:
- {FabricAddress} address
- The Fabric address of the direct consumer to be found. See
Moderator#lookupFabricNode for an example of
FabricAddress
object. - {Function} callback
- The callback function called with the consumer returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'DirectConsumerReference' (see its description in Java documentation).
lookupDirectConsumerByName(name, callback)
Asynchronously finds and gets the direct consumer with the specified
name. The name must have one of the following formats:
[ComponentType].[ComponentName]:[ConsumerName] or
[NodeName]://[ComponentType].[ComponentName]:[ConsumerName].
The consumer is passed to the specified
callback
function
when it is returned from server side.
- Parameters:
- {String} name
- The name of the direct consumer to be found.
- {Function} callback
- The callback function called with the consumer returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'DirectConsumerReference' (see its description in Java documentation).
lookupDomainConstraint(name, callback)
Asynchronously finds and gets the domain constraint with the specified
name. It is then passed to the specified
callback
function when returned from the server side.
- Parameters:
- {String} name
- The name of the domain constraint to be found
- {Function} callback
- The callback function called with the value returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'DomainConstraintReference' (see its description in Java documentation).
lookupEventCache(eventFilter, callback)
Asynchronously finds and gets the event cache with the specified simple
event filter. The cache is passed to the specified
callback
function when it is returned from server side.
- Parameters:
- {String} eventFilter
- The event filter of the cache. This filter is actually an event id mask, which defines what event id can have a cached event. See HTTPFabricConnection#createEventConsumer for details.
- {Function} callback
- The callback function called with the cache returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'EventCacheReference' (see its description in Java documentation).
lookupEventConsumer(address, callback)
Asynchronously finds and gets the consumer (direct or async consumer,
or event receiver) with the specified Fabric address. The consumer is
passed to the specified
callback
function when it is returned
from the server side.
- Parameters:
- {FabricAddress} address
- The Fabric address of the consumer to be found. See
Moderator#lookupFabricNode for an example of
FabricAddress
object. - {Function} callback
- The callback function called with the consumer returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'EventConsumerReference' (see its description in Java documentation).
lookupEventConsumerByName(name, callback)
Asynchronously finds and gets the consumer (direct or async consumer,
or event receiver) with the specified name.
The name must have one of the following formats:
[ComponentType].[ComponentName]:[ConsumerName] or
[NodeName]://[ComponentType].[ComponentName]:[ConsumerName].
The consumer is passed to the specified
callback
function
when it is returned from server side.
- Parameters:
- {String} name
- The name of the consumer to be found.
- {Function} callback
- The callback function called with the consumer returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'EventConsumerReference' (see its description in Java documentation).
lookupFabricNode(address, callback)
Asynchronously finds and gets the Fabric node with the specified Fabric
address. The node is passed to the specified
callback
function when it is returned from server side.
- Parameters:
- {FabricAddress} address
- The Fabric address of the node to be found.
An example of
FabricAddress
object:var fabricAddress = { domainNumber : 1, clusterNumber : 0, nodeNumber : 5, componentNumber : 10 }
- {Function} callback
- The callback function called with the node returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'FabricNodeReference' (see its description in Java documentation).
lookupFabricNodeByName(name, callback)
Asynchronously finds and gets the Fabric node with the specified name
The node is passed to the specified
callback
function when
it is returned from server side.
- Parameters:
- {String} name
- The name of the node to be found.
- {Function} callback
- The callback function called with the node returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'FabricNodeReference' (see its description in Java documentation).
lookupNumericRangeConstraint(name, callback)
Asynchronously finds and gets the numeric range constraint with the
specified name. It is then passed to the specified
callback
function when returned from the server side.
- Parameters:
- {String} name
- The name of the numeric range constraint to be found
- {Function} callback
- The callback function called with the value returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'NumericRangeConstraintReference' (see its description in Java documentation).
lookupReceiver(address, callback)
Asynchronously finds and gets the receiver with the specified Fabric
address. The receiver is passed to the specified
callback
function when it is returned from server side.
- Parameters:
- {FabricAddress} address
- The Fabric address of the receiver to be found. See
Moderator#lookupFabricNode for an example of
FabricAddress
object. - {Function} callback
- The callback function called with the receiver returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'ReceiverReference' (see its description in Java documentation).
lookupReceiverByName(name, callback)
Asynchronously finds and gets the receiver with the specified name.
The name must have one of the following formats:
[ComponentType].[ComponentName]:[ReceiverName] or
[NodeName]://[ComponentType].[ComponentName]:[ReceiverName].
The receiver is passed to the specified
callback
function
when it is returned from server side.
- Parameters:
- {String} name
- The name of the receiver to be found.
- {Function} callback
- The callback function called with the receiver returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'ReceiverReference' (see its description in Java documentation).
lookupRequestConsumer(address, callback)
Asynchronously finds and gets the request consumer with the specified
Fabric address. The consumer is passed to the specified
callback
function when it is returned from server side.
- Parameters:
- {FabricAddress} address
- The Fabric address of the request consumer to be found. See
Moderator#lookupFabricNode for an example of
FabricAddress
object. - {Function} callback
- The callback function called with the consumer returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'RequestConsumerReference' (see its description in Java documentation).
lookupRequestConsumerByName(name, callback)
Asynchronously finds and gets the request consumer with the specified
name. The name must have one of the following formats:
[ComponentType].[ComponentName]:[ConsumerName] or
[NodeName]://[ComponentType].[ComponentName]:[ConsumerName].
The consumer is passed to the specified
callback
function
when it is returned from server side.
- Parameters:
- {String} name
- The name of the request consumer to be found.
- {Function} callback
- The callback function called with the consumer returned from the server side. (See HTTPFabricConnection for a callback description). Callback object type: 'RequestConsumerReference' (see its description in Java documentation).