webMethods Broker Administration Java API
Version 9.5.1.0.171 091713

COM.activesw.api.client
Class BrokerCompleteClient

java.lang.Object
  extended by COM.activesw.api.client.BrokerCompleteClient

public class BrokerCompleteClient
extends java.lang.Object

Holds all of the information describing a client as far as import and export are concerned.


Field Summary
 BrokerClientInfo client_info
           
 BrokerEvent infoset
           
 boolean replace_subscriptions_on_store
           
 BrokerSubscription[] subscriptions
           
 
Constructor Summary
BrokerCompleteClient()
          Constructor.
BrokerCompleteClient(BrokerClientInfo info)
          Constructor.
 
Method Summary
 void refresh(BrokerAdminClient client)
          Refreshes the information about the Client using the given broker admin client.
static BrokerCompleteClient retrieve(BrokerAdminClient client, java.lang.String client_id)
          Retrieves the information about the specified Client with the given broker admin client.
 void store(BrokerAdminClient client)
          Stores the information from this Client into the broker for which the given broker admin client has been provided.
 java.lang.String toString()
          Converts this Client's information into a string.
 java.lang.String toString(int indent_level)
          Converts this Client's information into a string.
 void write(java.io.Writer writer, int indent_level)
          Writes this Client's information out in a textual format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

client_info

public BrokerClientInfo client_info

replace_subscriptions_on_store

public boolean replace_subscriptions_on_store

subscriptions

public BrokerSubscription[] subscriptions

infoset

public BrokerEvent infoset
Constructor Detail

BrokerCompleteClient

public BrokerCompleteClient()
Constructor.


BrokerCompleteClient

public BrokerCompleteClient(BrokerClientInfo info)
Constructor. Sets the BrokerClientInfo.

Method Detail

retrieve

public static BrokerCompleteClient retrieve(BrokerAdminClient client,
                                            java.lang.String client_id)
                                     throws BrokerException
Retrieves the information about the specified Client with the given broker admin client.

Throws:
BrokerNullParameterException - If client or client_id is null.
BrokerInvalidClientException - If broker admin client has been destroyed or disconnected.
BrokerNoPermissionException - If the broker admin client does not have permission to read the specified information.
BrokerUnknownClientIdException - If the client_id does not exist on the broker.
BrokerException

refresh

public void refresh(BrokerAdminClient client)
             throws BrokerException
Refreshes the information about the Client using the given broker admin client. Requires that 'client_info.client_id' be set to the Client's id.

Throws:
BrokerNullParameterException - If the client parameter is null or the instance variable client_info or client_info.client_id are null.
BrokerInvalidClientException - If broker admin client has been destroyed or disconnected.
BrokerNoPermissionException - If the broker admin client does not have permission to read the specified information.
BrokerUnknownClientIdException - If the client id does not exist on the broker.
BrokerException

store

public void store(BrokerAdminClient client)
           throws BrokerException
Stores the information from this Client into the broker for which the given broker admin client has been provided.

Nothing will happen within this function if the Client is not a member of a Client Group with an Explicit Destroy lifecycle.

If the Client does not exist the Client is created and initialized with whatever information is set in this object.

If the Client does exist, then some items are overwritten and some are merged.

If any exception is thrown, nothing is changed on the broker.

Throws:
BrokerNullParameterException - If the client parameter is null or the instance variable client_info or client_info.client_id are null or the an elements in the subscription array are null or any event_type_name in any of the subscriptions is null.
BrokerInvalidClientException - If broker admin client has been destroyed or disconnected.
BrokerNoPermissionException - If the broker admin client does not have permission to read the specified information.
BrokerUnknownClientIdException - If the client id does not exist on the broker.
BrokerOutOfRangeException - If any subcription element's sub_id is less than zero, or the state_share_limit is less than -1.
BrokerUnknownEventTypeException - If the event type name listed in one of the subscriptions does not exist on the broker. All other subscriptions are created if this error occurs.
BrokerInvalidSubscriptionException - If the filter string in any subscription contains a parse error. All other subscriptions are created if this error occurs.
BrokerUnknownClientGroupException - If the client group in client_info.client_group does not exist on the broker.
BrokerException

write

public void write(java.io.Writer writer,
                  int indent_level)
           throws BrokerException,
                  java.io.IOException
Writes this Client's information out in a textual format. This is usually done to a file. The indent_level is the number of 4 character indents to use.

Unicode characters in the output are escaped using backslash-u notiation (e.g. ?).

Does not write anything if 'client_info' is null.

Throws:
java.io.IOException - If there is an error wrtiting to the file.
BrokerNullParameterException - If writer is null.
BrokerOutOfRangeException - If indent_level is less than 0.
BrokerException

toString

public java.lang.String toString(int indent_level)
                          throws BrokerException
Converts this Client's information into a string. The string is in proper format for saving to a file. The indent_level is the number of 4 character indents to use.

Unicode characters in the output are escaped using backslash-u notiation (e.g. ?).

Returns an empty string if all of the data members are null, or if all of them return empty strings when converted to strings.

Throws:
BrokerOutOfRangeException - If indent_level is less than 0.
BrokerException

toString

public java.lang.String toString()
Converts this Client's information into a string. The string is in proper format for saving to a file.

Unicode characters in the output are escaped using backslash-u notiation (e.g. ?).

Returns an empty string if all of the data members are null, or if all of them return empty strings when converted to strings.

Overrides:
toString in class java.lang.Object

webMethods Broker Administration Java API
Version 9.5.1.0.171 091713


Copyright © 2001 - 2013 Software AG Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, United States of America, and/or their suppliers.