Get-Topics - Pub/Sub Messaging
This lists all topics registered on a specified Pub/Sub Messaging cache. It lists down the topic names and the respective number of subscribers and publishers against each Pub/Sub Messaging topic name.
Note
This feature is only available in NCache Enterprise and Professional.
Get-Topics [-CacheName] [-Server] [-Port] [-Detail] [-ShowAll] [-NoLogo]
These properties are explained in detail in the Properties section.
Note
-Detail
and -ShowAll
are exclusive to NCache Enterprise.
Examples of Get-Topics - Pub/Sub Messaging
- This command lists all topics and number of corresponding subscribers and publishers registered on demoCache, existing on local server, using port 8250 by default.
Get-Topics –CacheName demoCache
- This command lists all topics and number of corresponding subscribers and publishers registered on demoCache existing on server 20.200.20.11 and using the default port 8250.
Get-Topics –CacheName demoCache –Server 20.200.20.11
- This command lists all the topics with durable subscriptions and their details.
Get-Topics -CacheName demoCache -Detail
- This command lists all the topics (default and user created) along with their durable subscriptions and their details.
Get-Topics -CacheName demoCache -ShowAll
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
Parameters | Data Type | Description | Default Value |
---|---|---|---|
-CacheName* |
<String> |
Pub/Sub Messaging Cache name for which the topics are to be listed. | - |
-Server |
<String> |
The server name on which the NCache Service is running. | IP of the local machine |
-Port |
<Integer> |
The port on which NCache server is listening. | 8250 |
-Detail |
<SwitchParameter> |
Specifies the durable subscription details to be included in result. | - |
-ShowAll |
<SwitchParameter> |
Specifies the default and user created topics to be included in result. | - |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | - |