xmlBlaster 2.1.0 API

org.xmlBlaster.util.qos.address
Class Address

java.lang.Object
  extended by org.xmlBlaster.util.qos.address.AddressBase
      extended by org.xmlBlaster.util.qos.address.Address
All Implemented Interfaces:
java.lang.Cloneable

public class Address
extends AddressBase

Helper class holding address string, protocol string and client side connection properties.

 <address type='XMLRPC' sessionId='4e56890ghdFzj0'
           pingInterval='60000' retries='5' delay='10000'
           oneway='false'>
    http://server:8080/cb
    <compress type='gzip' minSize='1000'/>
    <burstMode collectTime='400'/> 
 </address>
 


Field Summary
private  CallbackAddress callbackAddress
           
private static java.lang.String ME
           
 
Fields inherited from class org.xmlBlaster.util.qos.address.AddressBase
burstModeMaxBytes, burstModeMaxEntries, className, collectTime, compressType, context, DEFAULT_bootstrapPort, DEFAULT_burstModeMaxBytes, DEFAULT_burstModeMaxEntries, DEFAULT_collectTime, DEFAULT_compressType, DEFAULT_dispatcherActive, DEFAULT_dispatchPlugin, DEFAULT_minSize, DEFAULT_oneway, DEFAULT_ptpAllowed, DEFAULT_sessionId, DEFAULT_stallOnPingTimeout, DEFAULT_type, DEFAULT_useForSubjectQueue, DEFAULT_version, delay, dispatcherActive, dispatchPlugin, envPrefix, fromPersistenceRecovery, glob, instanceName, minSize, nodeId, oneway, pingInterval, ptpAllowed, retries, rootTag, sessionId, sessionName, stallOnPingTimeout, type, useForSubjectQueue, version
 
Constructor Summary
Address(Global glob)
           
Address(Global glob, java.lang.String type)
           
Address(Global glob, java.lang.String type, java.lang.String nodeId)
           
 
Method Summary
 CallbackAddress getCallbackAddress()
           
 long getDefaultDelay()
          Delay between connection retries in milliseconds
 long getDefaultPingInterval()
          Ping interval: pinging every given milliseconds, defaults to 10 seconds
 int getDefaultRetries()
          How often to retry if connection fails: defaults to -1 (retry forever), 0 switches failsafe mode off
 java.lang.String getSettings()
          For logging only
static void main(java.lang.String[] argsDefault)
          For testing: java org.xmlBlaster.util.qos.address.Address
 void setCallbackAddress(CallbackAddress callbackAddress)
           
 java.lang.String toString()
           
 java.lang.String usage()
          Client side usage used by XmlBlasterAccess
 
Methods inherited from class org.xmlBlaster.util.qos.address.AddressBase
addClientProperty, endElement, getBootstrapHostname, getBootstrapPort, getBootstrapUrl, getBurstModeMaxBytes, getBurstModeMaxEntries, getCallbackDriver, getClone, getCollectTime, getCompressType, getDelay, getDispatchPlugin, getEnv, getEnv, getEnv, getEnv, getEnvLookupKey, getEnvPrefix, getLogId, getMinSize, getName, getOnExhaust, getOnExhaustKillSession, getPingInterval, getRawAddress, getRetries, getSecretSessionId, getSessionName, getType, getVersion, hasAttributeEnv, hasBootstrapHostname, initialize, isDispatcherActive, isFromPersistenceRecovery, isPtpAllowed, isSameAddress, isStallOnPingTimeout, oneway, setBootstrapHostname, setBootstrapPort, setBurstModeMaxBytes, setBurstModeMaxEntries, setCallbackDriver, setCollectTime, setCompressType, setDefaultBootstrapHostname, setDefaultBootstrapPort, setDelay, setDispatcherActive, setDispatchPlugin, setFromPersistenceRecovery, setMinSize, setOneway, setPingInterval, setPluginInfoParameters, setPluginProperty, setPtpAllowed, setRawAddress, setRetries, setSecretSessionId, setSessionName, setStallOnPingTimeout, setType, setVersion, shutdown, startElement, toXml, toXml
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ME

private static final java.lang.String ME
See Also:
Constant Field Values

callbackAddress

private transient CallbackAddress callbackAddress
Constructor Detail

Address

public Address(Global glob)

Address

public Address(Global glob,
               java.lang.String type)
Parameters:
type - The protocol type, e.g. "IOR", "EMAIL", "XMLRPC"

Address

public Address(Global glob,
               java.lang.String type,
               java.lang.String nodeId)
Parameters:
type - The protocol type, e.g. "IOR", "EMAIL", "XMLRPC"
nodeId - A unique string (typically the cluster node id we connect to).
This is used for extended env-variable support, e.g. for a given nodeId="heron" the command line argument (or xmlBlaster.property entry) -retries[heron] 20 is precedence over -retries 10
Method Detail

getDefaultRetries

public int getDefaultRetries()
How often to retry if connection fails: defaults to -1 (retry forever), 0 switches failsafe mode off

Specified by:
getDefaultRetries in class AddressBase

getDefaultDelay

public long getDefaultDelay()
Description copied from class: AddressBase
Delay between connection retries in milliseconds

Specified by:
getDefaultDelay in class AddressBase

getDefaultPingInterval

public long getDefaultPingInterval()
Ping interval: pinging every given milliseconds, defaults to 10 seconds

Specified by:
getDefaultPingInterval in class AddressBase

getSettings

public java.lang.String getSettings()
For logging only

Overrides:
getSettings in class AddressBase

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
The literal address as given by getRawAddress()

usage

public final java.lang.String usage()
Client side usage used by XmlBlasterAccess

Overrides:
usage in class AddressBase

main

public static void main(java.lang.String[] argsDefault)
For testing: java org.xmlBlaster.util.qos.address.Address


getCallbackAddress

public CallbackAddress getCallbackAddress()

setCallbackAddress

public void setCallbackAddress(CallbackAddress callbackAddress)

xmlBlaster 2.1.0 API

Copyright © 1999-2011 The xmlBlaster.org contributers.