xmlBlaster 2.2.0 API

org.xmlBlaster.engine.qos
Class AddressServer

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

public class AddressServer
extends AddressBase
implements java.lang.Cloneable

Helper class holding address string, protocol string of server side protocol plugins.

 <address type='XMLRPC'>
    http://server:8080/
 </address>
 


Field Summary
private  java.lang.Object remoteAddress
           
 
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
AddressServer(Global glob, java.lang.String type, java.lang.String nodeId, java.util.Properties pluginInfoParameters)
           
 
Method Summary
 AddressBase getClone()
           
 long getDefaultDelay()
          DUMMY
 long getDefaultPingInterval()
          DUMMY
 int getDefaultRetries()
          DUMMY
 java.lang.Object getRemoteAddress()
          Some protocol plugins may add this information.
 void setRemoteAddress(java.lang.Object remoteAddress)
           
 java.lang.String toString()
           
 
Methods inherited from class org.xmlBlaster.util.qos.address.AddressBase
addClientProperty, endElement, getBootstrapHostname, getBootstrapPort, getBootstrapUrl, getBurstModeMaxBytes, getBurstModeMaxEntries, getCallbackDriver, getCollectTime, getCompressType, getDelay, getDispatchPlugin, getEnv, getEnv, getEnv, getEnv, getEnvLookupKey, getEnvPrefix, getLogId, getMinSize, getName, getOnExhaust, getOnExhaustKillSession, getPingInterval, getRawAddress, getRetries, getSecretSessionId, getSessionName, getSettings, 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, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

remoteAddress

private java.lang.Object remoteAddress
Constructor Detail

AddressServer

public AddressServer(Global glob,
                     java.lang.String type,
                     java.lang.String nodeId,
                     java.util.Properties pluginInfoParameters)
Parameters:
type - The protocol type, e.g. "IOR", "EMAIL", "XMLRPC"
nodeId - A unique string (typically the cluster node id we connect to).
pluginInfoParameters - Attributes from xmlBlasterPlugins.xml
Method Detail

getRemoteAddress

public java.lang.Object getRemoteAddress()
Some protocol plugins may add this information. For example the SOCKET plugin can deliver the remote clients IP and port here.

Returns:
For example getRemoteAddress().toString() = "socket://192.168.1.2:64794" Can be null depending on the protocol plugin.
For example the SOCKET protocol returns an "org.xmlBlaster.util.protocol.socket.SocketUrl" instance

setRemoteAddress

public void setRemoteAddress(java.lang.Object remoteAddress)

getDefaultRetries

public int getDefaultRetries()
DUMMY

Specified by:
getDefaultRetries in class AddressBase

getDefaultDelay

public long getDefaultDelay()
DUMMY

Specified by:
getDefaultDelay in class AddressBase

getDefaultPingInterval

public long getDefaultPingInterval()
DUMMY

Specified by:
getDefaultPingInterval in class AddressBase

toString

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

getClone

public AddressBase getClone()
Overrides:
getClone in class AddressBase

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.