public class Snooper extends Object
| Constructor and Description | 
|---|
| Snooper(ClientProfile profile,
       Subscriptions subs,
       Metadata meta,
       OutputStream out,
       int autoSec)Constructor using custom metadata. | 
| Snooper(ClientProfile profile,
       Subscriptions subs,
       OutputStream out,
       int autoSec)Constructor using default metadata. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Metadata | createDefaultMetadata()Returns the default metadata for the Snooper client. | 
| static void | main(String[] args)Main method. | 
| static int | runMain(String[] args)Does the work for the main method. | 
public Snooper(ClientProfile profile, Subscriptions subs, OutputStream out, int autoSec)
profile - profilesubs - subscriptions defining which messages are received
                  and loggedout - destination stream for logging infoautoSec - number of seconds between auto connection attemptspublic Snooper(ClientProfile profile, Subscriptions subs, Metadata meta, OutputStream out, int autoSec)
profile - profilesubs - subscriptions defining which messages are received
                  and loggedmeta - client metadataout - destination stream for logging infoautoSec - number of seconds between auto connection attemptspublic static Metadata createDefaultMetadata()
public static void main(String[] args) throws IOException
IOExceptionpublic static int runMain(String[] args) throws IOException
IOExceptionCopyright © 2008–2024. All rights reserved.