com.wily.introscope.client.alerts.manager
Class ConsumerSpecifier

java.lang.Object
  extended by com.wily.introscope.client.alerts.manager.ConsumerSpecifier
All Implemented Interfaces:
IConsumerSpecifier

public class ConsumerSpecifier
extends java.lang.Object
implements IConsumerSpecifier

This is an implementation of the IConsumerSpecifier interface. This represents the TOMCAT or other web container in which the SDK web app is hosted.


Field Summary
 
Fields inherited from interface com.wily.introscope.client.alerts.interfaces.IConsumerSpecifier
CONTEXTPATH__SDK_CONSUMER_PUBSUBWS
 
Constructor Summary
ConsumerSpecifier(java.lang.String consumerHost, int consumerPort, java.lang.String clientMagicKey)
          Constructor for constructing the specifier to represent the web container which will consume all notifications
 
Method Summary
 java.lang.String getClientHost()
          Returns the host of the web container on which this SDK Web Application is running.
 java.lang.String getClientMagicKey()
          Obtains the key for the client that is used for authentication
 int getClientPort()
          Returns the port of the web container on which this SDK Web Application is running.
 void setClientMagicKey(java.lang.String clientMagicKey)
          Sets the key for the client that is used for authentication
 java.lang.String toString()
          Converts the Host and port to a string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConsumerSpecifier

public ConsumerSpecifier(java.lang.String consumerHost,
                         int consumerPort,
                         java.lang.String clientMagicKey)
                  throws java.lang.Exception
Constructor for constructing the specifier to represent the web container which will consume all notifications

Parameters:
consumerHost -
consumerPort -
clientMagicKey -
Throws:
java.lang.Exception
Method Detail

getClientHost

public java.lang.String getClientHost()
Returns the host of the web container on which this SDK Web Application is running.

Specified by:
getClientHost in interface IConsumerSpecifier
Returns:
String

getClientPort

public int getClientPort()
Returns the port of the web container on which this SDK Web Application is running.

Specified by:
getClientPort in interface IConsumerSpecifier
Returns:
int

toString

public java.lang.String toString()
Converts the Host and port to a string

Overrides:
toString in class java.lang.Object
Returns:
String

getClientMagicKey

public java.lang.String getClientMagicKey()
Obtains the key for the client that is used for authentication

Specified by:
getClientMagicKey in interface IConsumerSpecifier
Returns:
String

setClientMagicKey

public void setClientMagicKey(java.lang.String clientMagicKey)
Sets the key for the client that is used for authentication

Parameters:
clientMagicKey -


Copyright © 2007 CA Inc. All Rights Reserved.