public class BrokerCompleteTerritory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
BrokerAccessControlList |
acl |
BrokerTerritoryInfo |
info |
BrokerInfo[] |
other_brokers_in_territory |
Constructor and Description |
---|
BrokerCompleteTerritory()
Constructor.
|
BrokerCompleteTerritory(BrokerTerritoryInfo info)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
refresh(BrokerAdminClient client)
Refreshes the information about a Territory based on the given broker admin client.
|
static BrokerCompleteTerritory |
retrieve(BrokerAdminClient client)
Retrieves the information about a Territory based on the given broker admin client.
|
void |
store(BrokerAdminClient client)
Stores the information from this Territory into the broker for which the given client object has been provided.
|
java.lang.String |
toString()
Converts this Territory's information into a string.
|
java.lang.String |
toString(int indent_level)
Converts this Territory's information into a string.
|
void |
write(java.io.Writer writer,
int indent_level)
Writes this Territory's information out in a textual format.
|
public BrokerTerritoryInfo info
public BrokerAccessControlList acl
public BrokerInfo[] other_brokers_in_territory
public BrokerCompleteTerritory()
public BrokerCompleteTerritory(BrokerTerritoryInfo info)
public static BrokerCompleteTerritory retrieve(BrokerAdminClient client) throws BrokerException
BrokerNullParameterException
- If client null.BrokerInvalidClientException
- If client has been destroyed or disconnected.BrokerException
public void refresh(BrokerAdminClient client) throws BrokerException
BrokerNullParameterException
- If client is null.BrokerInvalidClientException
- If client has been destroyed or disconnected.BrokerException
public void store(BrokerAdminClient client) throws BrokerException
All specifics about a territory are overwritten.
BrokerInvalidAccessListException
- If the access list is not valid.BrokerNullParameterException
- If the client parameter is null or the instance variable info or info.territory_name are null.BrokerInvalidClientException
- If client has been destroyed or disconnected.BrokerException
public void write(java.io.Writer writer, int indent_level) throws BrokerException, java.io.IOException
Unicode characters in the output are escaped using backslash-u notiation (e.g. ?).
Does not write anything if 'info' is null.
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
public java.lang.String toString(int indent_level) throws BrokerException
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.
BrokerOutOfRangeException
- If indent_level is less than 0.BrokerException
public java.lang.String toString()
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.
toString
in class java.lang.Object
Copyright © 2002-2006 webMethods, Inc. Copyright © 2007-2021 Software AG Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.