org::xmlBlaster::util Namespace Reference


Classes

class  Base64
 Base64 encoding/decoding. More...
class  Destination
 Holding destination address attributes. More...
class  EmbeddedServerRunner
class  EmbeddedServer
struct  ErrorCode
struct  ArgsStruct
 Data holder of Properties dumped to argc/argv command line arguments as passed to a main(). More...
class  Global
 
Author:
Michele Laghi
More...
class  I_Log
class  I_LogFactory
class  I_Timeout
 Abstract class you need to implement to receive timeout notifications see the omonimous I_Timeout.java. More...
class  XmlHandlerBase
 Abstraction for the xml handling. More...
class  bad_lexical_cast
class  Log
class  LogManager
 Manages the logging framework. More...
class  DefaultLogFactory
 Default implementation of our log factory. More...
class  MessageUnit
 Holding a message. More...
class  Cleanup_Adaptor
class  ManagedObject
class  Object_Lifetime_Manager_Base
class  Object_Lifetime_Manager
class  Prop
class  Property
 The class Property does handle properties in the java-way. More...
class  ReferenceCounterBase
 Reference counter class to be used as a base class for such classes which you need to have a reference counter on. More...
class  ReferenceHolder
 Normally stl containers store values, i.e. More...
class  ServerRef
class  SessionName
class  StopParseException
 Throw this exception to stop SAX parsing. More...
class  StopWatch
 Measure the elapsed time. More...
class  StringStripper
 Class StringStripper is used to strip a std::string with separators into a std::vector of (separated) std::strings. More...
class  StringStripper2
class  StringTrim
 This template class is used to trim a std::string the same way the String.trim java method does. More...
class  Timeout
 Allows you be called back after a given delay. More...
class  TimestampFactory
 High performing timestamp class, time elapsed since 1970, the nanos are simulated as a unique counter. More...
class  XmlBlasterException
class  XmlQoSBase
 In good old C days this would have been named a 'flag' (with bit wise setting)
But this allows to specify QoS (quality of service) in XML syntax. More...

Namespaces

namespace  cluster
namespace  Constants
namespace  detail
namespace  dispatch
namespace  key
namespace  MethodName
namespace  parser
namespace  plugin
namespace  qos
namespace  queue
namespace  thread

Typedefs

typedef org::xmlBlaster::util::ArgsStruct ArgsStruct_T
 Data holder of Properties dumped to argc/argv command line arguments as passed to a main().
typedef org::xmlBlaster::util::ReferenceHolder<
org::xmlBlaster::util::Global
GlobalRef
typedef std::map< std::string,
std::string > 
Attributes
typedef std::map< std::string,
Cleanup_Adaptor * > 
ManagedMap
typedef std::list< Cleanup_Adaptor * > ManagedList
typedef enum Priority PriorityEnum
typedef enum prop_enum PropEnum
typedef org::xmlBlaster::util::ReferenceHolder<
SessionName
SessionNameRef
typedef std::pair< I_Timeout *,
void * > 
Container
typedef std::map< org::xmlBlaster::util::Timestamp,
Container
TimeoutMap
typedef int64_t Timestamp

Enumerations

enum  Priority {
  MIN_PRIORITY, MIN1_PRIORITY, MIN2_PRIORITY, LOW_PRIORITY,
  LOW4_PRIORITY, NORM_PRIORITY, NORM6_PRIORITY, HIGH_PRIORITY,
  HIGH8_PRIORITY, MAX_PRIORITY
}
enum  prop_enum {
  CREATED_BY_DEFAULT, CREATED_BY_JVMENV, CREATED_BY_PROPFILE, CREATED_BY_CMDLINE,
  CREATED_BY_SETTER
}

Functions

template<>
std::string lexical_cast (bool arg)
 Specialization which returns "true" instead of "1".
template<>
bool lexical_cast (std::string arg)
 Laghi 2004-10-28 transforming 'true' or 'false' to bool fails.
template<>
bool lexical_cast (char *arg)
std::string waitOnKeyboardHit (std::string &str)
 Blocks until <enter> on the keyboard is hit.
template<typename Target, typename Source>
Target lexical_cast (Source arg)
PriorityEnum int2Priority (int val)
PriorityEnum str2Priority (std::string &val)
PriorityEnum str2Priority (const std::string &val)

Variables

const ErrorCode LEGACY ("legacy", std::string("This error code marks all old style org::xmlBlaster::util::XmlBlasterExceptions ")+std::string("until they are ported to the new behaviour."))
const ErrorCode INTERNAL_UNKNOWN ("internal.unknown", std::string("This is an unknown and unexpected error, usually a runtime ")+std::string("exception, please post it to the mailing list."))
const ErrorCode INTERNAL_NULLPOINTER ("internal.nullpointer", std::string("A null pointer is an xmlBlaster internal programming error, ")+std::string("please post it to the mailing list."))
const ErrorCode INTERNAL_ILLEGALARGUMENT ("internal.illegalArgument", std::string("An illegal argument is an xmlBlaster internal programming ")+std::string("error, please post it to the mailing list."))
const ErrorCode INTERNAL_NOTIMPLEMENTED ("internal.notImplemented", std::string("The feature is not implemented yet."))
const ErrorCode INTERNAL_CONNECTIONFAILURE ("internal.connectionFailure", std::string("An internal error occurred, we were not able to access the ")+std::string("server handle."))
const ErrorCode INTERNAL_DISCONNECT ("internal.disconnect", std::string("An internal error occurred when processing a disconnect() request."))
const ErrorCode INTERNAL_SUBSCRIBE ("internal.subscribe","An internal error occurred when processing a subscribe() request.")
const ErrorCode INTERNAL_UNSUBSCRIBE ("internal.unSubscribe","An internal error occurred when processing an unSubscribe() request.")
const ErrorCode INTERNAL_PUBLISH ("internal.publish","An internal error occurred when processing a publish() request.")
const ErrorCode INTERNAL_ERASE ("internal.erase","An internal error occurred when processing a erase() request.")
const ErrorCode INTERNAL_GET ("internal.get","An internal error occurred when processing a get() request.")
const ErrorCode RESOURCE_OUTOFMEMORY ("resource.outOfMemory", std::string("The JVM has no more RAM memory, try increasing it like 'java ")+std::string("-Xms18M -Xmx256M org.xmlBlaster.Main'"))
const ErrorCode RESOURCE_TOO_MANY_THREADS ("resource.tooManyThreads", std::string("The number of threads used is exceeded, try increasing the ")+std::string("number of threads in the properties"))
const ErrorCode RESOURCE_CALLBACKSERVER_CREATION ("resource.callbackServer.creation","The callback server can't be created")
const ErrorCode RESOURCE_OVERFLOW_QUEUE_BYTES ("resource.overflow.queue.bytes","The maximum size in bytes of a queue is exhausted")
const ErrorCode RESOURCE_OVERFLOW_QUEUE_ENTRIES ("resource.overflow.queue.entries","The maximum number of entries of a queue is exhausted")
const ErrorCode RESOURCE_DB_UNAVAILABLE ("resource.db.unavailable","There is no connection to a backend database using JDBC")
const ErrorCode RESOURCE_CONFIGURATION_PLUGINFAILED ("resource.configuration.pluginFailed","A plugin required couldn't be loaded, please check your configuration.")
const ErrorCode RESOURCE_CONFIGURATION_ADDRESS ("resource.configuration.address","A remote address you passed is invalid, please check your configuration.")
const ErrorCode RESOURCE_FILEIO ("resource.fileIO","A file access failed.")
const ErrorCode RESOURCE_FILEIO_FILELOST ("resource.fileIO.fileLost","A file disappeared, access failed.")
const ErrorCode RESOURCE_CLUSTER_NOTAVAILABLE ("resource.cluster.notAvailable","A remote cluster node is not reachable.")
const ErrorCode COMMUNICATION_NOCONNECTION ("communication.noConnection","A method invocation on a remote connection failed.")
const ErrorCode COMMUNICATION_TIMEOUT ("communication.timeout","The socket call blocked until a timeout occurred.")
const ErrorCode COMMUNICATION_RESPONSETIMEOUT ("communication.responseTimeout","A method call blocked when waiting on the ACK/NAK return message.")
const ErrorCode COMMUNICATION_NOCONNECTION_POLLING ("communication.noConnection.polling","The remote connection is not established and we are currently polling for it.")
const ErrorCode COMMUNICATION_NOCONNECTION_DEAD ("communication.noConnection.dead","The remote connection is not established and we have given up to poll for it.")
const ErrorCode USER_WRONG_API_USAGE ("user.wrongApiUsage","Please check your code.")
const ErrorCode USER_CONFIGURATION ("user.configuration","Login to xmlBlaster failed due to configuration problems.")
const ErrorCode USER_SECURITY_AUTHENTICATION_ACCESSDENIED ("user.security.authentication.accessDenied","Login to xmlBlaster failed due to missing privileges.")
const ErrorCode USER_SECURITY_AUTHENTICATION_ILLEGALARGUMENT ("user.security.authentication.illegalArgument","Login to xmlBlaster failed due to illegal arguments.")
const ErrorCode USER_SECURITY_AUTHORIZATION_NOTAUTHORIZED ("user.security.authorization.notAuthorized","Login to xmlBlaster failed due to missing privileges.")
const ErrorCode USER_UPDATE_ERROR ("user.update.error","Exception thrown by client on callback update invocation.")
const ErrorCode USER_UPDATE_INTERNALERROR ("user.update.internalError","Unexpected exception thrown by client code on programming error.")
const ErrorCode USER_UPDATE_ILLEGALARGUMENT ("user.update.illegalArgument","The update method was invoked without useful data.")
const ErrorCode USER_ILLEGALARGUMENT ("user.illegalArgument","You have invoked a server method with illegal arguments.")
const ErrorCode USER_UPDATE_HOLDBACK ("user.update.holdback","You can throw this on client side in your update() method: Like this the server queues the message and sets the dispatcActive to false. You need to manually activate the dispatcher again.")
const ErrorCode USER_UPDATE_SECURITY_AUTHENTICATION_ACCESSDENIED ("user.update.security.authentication.accessDenied","The update method was invoked with an invalid callback session ID.")
const ErrorCode USER_OID_UNKNOWN ("user.oid.unknown","You passed a message oid which is not known.")
const ErrorCode USER_JDBC_INVALID ("user.jdbc.invalid","You have invoked get() with an illegal JDBC query.")
const ErrorCode USER_PUBLISH ("user.publish","Your published message could not be handled, check your QoS")
const ErrorCode USER_SUBSCRIBE_ID ("user.subscribe.id","Your subscription tries to pass an illegal subscriptionId.")
const ErrorCode USER_CONNECT ("user.connect","Your connection request could not be handled, check your QoS")
const ErrorCode USER_PTP_UNKNOWNSESSION ("user.ptp.unknownSession", std::string("You have send a point to point message to a specific user ")+std::string("session but the receiver is not known."))
const ErrorCode USER_PTP_UNKNOWNDESTINATION ("user.ptp.unknownDestination", std::string("You have send a point to point message but the receiver is not ")+std::string("known and <destination forceQueuing='true'> is not set."))
const ErrorCode USER_QUERY_TYPE_INVALID ("user.query.type.invalid", std::string("You have invoked get(), subscribe(), unSubscribe() or erase() ")+std::string("with an illegal query type, try EXACT or XPATH."))
const ErrorCode USER_NOT_CONNECTED ("user.notConnected","Your operation is not possible, please login with connect() first")


Typedef Documentation

typedef struct org::xmlBlaster::util::ArgsStruct org::xmlBlaster::util::ArgsStruct_T

Data holder of Properties dumped to argc/argv command line arguments as passed to a main().

Example:

 argv[0] = myProg (the executable name) 
 argv[1] = -name
 argv[2] = joe
 

typedef std::map<std::string, std::string> org::xmlBlaster::util::Attributes

Definition at line 20 of file I_XmlHandler.h.

typedef std::pair<I_Timeout*, void*> org::xmlBlaster::util::Container

Definition at line 21 of file Timeout.h.

typedef org::xmlBlaster::util::ReferenceHolder<org::xmlBlaster::util::Global> org::xmlBlaster::util::GlobalRef

Definition at line 56 of file Global.h.

typedef std::list<Cleanup_Adaptor*> org::xmlBlaster::util::ManagedList

Definition at line 62 of file objman.h.

typedef std::map<std::string, Cleanup_Adaptor*> org::xmlBlaster::util::ManagedMap

Definition at line 61 of file objman.h.

typedef enum Priority org::xmlBlaster::util::PriorityEnum

Definition at line 69 of file PriorityEnum.h.

typedef enum prop_enum org::xmlBlaster::util::PropEnum

Definition at line 35 of file Prop.h.

typedef org::xmlBlaster::util::ReferenceHolder<SessionName> org::xmlBlaster::util::SessionNameRef

Definition at line 89 of file SessionName.h.

typedef std::map<org::xmlBlaster::util::Timestamp, Container> org::xmlBlaster::util::TimeoutMap

Definition at line 22 of file Timeout.h.

typedef int64_t org::xmlBlaster::util::Timestamp

Definition at line 52 of file xmlBlasterDef.h.


Enumeration Type Documentation

enum org::xmlBlaster::util::Priority

Enumerator:
MIN_PRIORITY  The minimum priority of a message (0).
MIN1_PRIORITY  The minimum priority of a message (1).
MIN2_PRIORITY  The minimum priority of a message (2).
LOW_PRIORITY  The lower priority of a message (3).
LOW4_PRIORITY  The lower priority of a message (4).
NORM_PRIORITY  The default priority of a message (5).
NORM6_PRIORITY  The default priority of a message (6).
HIGH_PRIORITY  The higher priority of a message (7).
HIGH8_PRIORITY  The higher priority of a message (8).
MAX_PRIORITY  The maximum priority of a message (9).

Definition at line 16 of file PriorityEnum.h.

enum org::xmlBlaster::util::prop_enum

Enumerator:
CREATED_BY_DEFAULT 
CREATED_BY_JVMENV 
CREATED_BY_PROPFILE 
CREATED_BY_CMDLINE 
CREATED_BY_SETTER 

Definition at line 27 of file Prop.h.


Function Documentation

PriorityEnum org::xmlBlaster::util::int2Priority ( int  val  ) 

Definition at line 14 of file PriorityEnum.cpp.

References HIGH8_PRIORITY, HIGH_PRIORITY, LOW4_PRIORITY, LOW_PRIORITY, MAX_PRIORITY, MIN1_PRIORITY, MIN2_PRIORITY, MIN_PRIORITY, NORM6_PRIORITY, and NORM_PRIORITY.

Referenced by PublishDemo::initEnvironment(), and str2Priority().

template<typename Target, typename Source>
Target org::xmlBlaster::util::lexical_cast ( Source  arg  ) 

Definition at line 245 of file lexical_cast.h.

Referenced by org::xmlBlaster::client::protocol::socket::SocketDriver::connect(), org::xmlBlaster::client::qos::SubscribeQos::generateSubscriptionId(), org::xmlBlaster::client::protocol::socket::SocketDriver::getCbAddress(), org::xmlBlaster::client::protocol::socket::SocketDriverFactory::getDriverInstance(), org::xmlBlaster::client::protocol::corba::CorbaDriverFactory::getDriverInstance(), org::xmlBlaster::client::protocol::corba::CorbaConnection::initAuthenticationService(), org::xmlBlaster::client::protocol::socket::SocketDriverFactory::killDriverInstance(), org::xmlBlaster::client::protocol::corba::CorbaDriverFactory::killDriverInstance(), org::xmlBlaster::client::XmlBlasterAccess::setCallbackDispatcherActive(), org::xmlBlaster::test::TestEmbeddedServer::testEmbeddedServer(), org::xmlBlaster::test::TestQueue::testMaxNumOfBytes(), org::xmlBlaster::test::TestRam::testPublish(), org::xmlBlaster::test::TestTimestamp::testTimestamp(), org::xmlBlaster::client::protocol::corba::DefaultCallback::update(), and org::xmlBlaster::client::XmlBlasterAccess::XmlBlasterAccess().

template<>
bool org::xmlBlaster::util::lexical_cast ( char *  arg  ) 

Definition at line 73 of file Global.cpp.

References lexical_cast().

template<>
bool org::xmlBlaster::util::lexical_cast ( std::string  arg  ) 

Laghi 2004-10-28 transforming 'true' or 'false' to bool fails.

crashes on sun with gcc Don't use template<> std::string lexical_cast(const std::string& arg) since it won't be invoked (instead the default template will be invoked)

Definition at line 68 of file Global.cpp.

template<>
char * org::xmlBlaster::util::lexical_cast ( bool  arg  ) 

Specialization which returns "true" instead of "1".

replaces Global::getBoolAsString(bool)

Definition at line 58 of file Global.cpp.

Referenced by org::xmlBlaster::util::qos::ClientProperty::ClientProperty(), org::xmlBlaster::util::dispatch::ConnectionsHandler::flushQueue(), org::xmlBlaster::util::dispatch::ConnectionsHandler::flushQueueUnlocked(), org::xmlBlaster::util::Global::getInstanceId(), org::xmlBlaster::util::parser::Sax2Parser::getLocationString(), org::xmlBlaster::util::qos::address::AddressBase::getName(), org::xmlBlaster::util::dispatch::ConnectionsHandler::getQueue(), org::xmlBlaster::util::qos::address::AddressBase::getRawAddress(), org::xmlBlaster::util::SessionName::getRelativeName(), org::xmlBlaster::util::qos::storage::HistoryQueueProperty::getSettings(), org::xmlBlaster::util::qos::storage::ClientQueueProperty::getSettings(), org::xmlBlaster::util::qos::storage::CbQueueProperty::getSettings(), org::xmlBlaster::util::qos::address::AddressBase::getSettings(), org::xmlBlaster::util::qos::address::Address::getSettings(), org::xmlBlaster::util::TimestampFactory::getTimeAsString(), org::xmlBlaster::util::qos::ClientProperty::getValue(), org::xmlBlaster::util::StringTrim::isTrue(), org::xmlBlaster::util::StringTrim::isTrueTrim(), lexical_cast(), org::xmlBlaster::util::parser::XmlBlasterPanicHandler::panic(), str2Priority(), org::xmlBlaster::util::Timeout::Timeout(), org::xmlBlaster::util::dispatch::ConnectionsHandler::timeout(), org::xmlBlaster::util::StopWatch::toString(), org::xmlBlaster::util::qos::storage::MsgUnitStoreProperty::usage(), org::xmlBlaster::util::qos::storage::ClientQueueProperty::usage(), org::xmlBlaster::util::qos::storage::CbQueueProperty::usage(), and org::xmlBlaster::util::qos::address::CallbackAddress::usage().

PriorityEnum org::xmlBlaster::util::str2Priority ( const std::string &  val  ) 

PriorityEnum org::xmlBlaster::util::str2Priority ( std::string &  val  ) 

Definition at line 30 of file PriorityEnum.cpp.

References HIGH_PRIORITY, int2Priority(), lexical_cast(), LOW_PRIORITY, MAX_PRIORITY, MIN_PRIORITY, and NORM_PRIORITY.

std::string org::xmlBlaster::util::waitOnKeyboardHit ( std::string &  str  ) 

Blocks until <enter> on the keyboard is hit.

Consumes multiple hits (for Windows DOS box)

Parameters:
str If not null it will be printed on console with cout
Returns:
The last entered line which contains something, previous lines and following empty lines are ignored

Definition at line 644 of file Global.cpp.

Referenced by PublishDemo::erase(), and org::xmlBlaster::test::TestFailsafe::testReconnect().


Variable Documentation

const ErrorCode org::xmlBlaster::util::COMMUNICATION_NOCONNECTION("communication.noConnection","A method invocation on a remote connection failed.")

Referenced by org::xmlBlaster::util::dispatch::ConnectionsHandler::disconnect(), org::xmlBlaster::util::dispatch::ConnectionsHandler::erase(), org::xmlBlaster::client::protocol::socket::SocketDriver::erase(), org::xmlBlaster::util::dispatch::ConnectionsHandler::get(), org::xmlBlaster::client::protocol::socket::SocketDriver::get(), org::xmlBlaster::util::dispatch::ConnectionsHandler::publish(), org::xmlBlaster::client::protocol::socket::SocketDriver::publish(), org::xmlBlaster::util::EmbeddedServer::start(), org::xmlBlaster::util::dispatch::ConnectionsHandler::subscribe(), org::xmlBlaster::client::protocol::socket::SocketDriver::subscribe(), org::xmlBlaster::util::dispatch::ConnectionsHandler::unSubscribe(), and org::xmlBlaster::client::protocol::socket::SocketDriver::unSubscribe().

const ErrorCode org::xmlBlaster::util::COMMUNICATION_NOCONNECTION_DEAD("communication.noConnection.dead","The remote connection is not established and we have given up to poll for it.")

Referenced by org::xmlBlaster::util::dispatch::ConnectionsHandler::erase(), org::xmlBlaster::util::dispatch::ConnectionsHandler::get(), org::xmlBlaster::util::dispatch::ConnectionsHandler::publish(), org::xmlBlaster::util::dispatch::ConnectionsHandler::subscribe(), and org::xmlBlaster::util::dispatch::ConnectionsHandler::unSubscribe().

const ErrorCode org::xmlBlaster::util::COMMUNICATION_NOCONNECTION_POLLING("communication.noConnection.polling","The remote connection is not established and we are currently polling for it.")

Referenced by org::xmlBlaster::util::dispatch::ConnectionsHandler::disconnect(), org::xmlBlaster::util::dispatch::ConnectionsHandler::erase(), org::xmlBlaster::util::dispatch::ConnectionsHandler::get(), and org::xmlBlaster::util::dispatch::ConnectionsHandler::unSubscribe().

const ErrorCode org::xmlBlaster::util::COMMUNICATION_RESPONSETIMEOUT("communication.responseTimeout","A method call blocked when waiting on the ACK/NAK return message.")

const ErrorCode org::xmlBlaster::util::COMMUNICATION_TIMEOUT("communication.timeout","The socket call blocked until a timeout occurred.")

const ErrorCode org::xmlBlaster::util::INTERNAL_CONNECTIONFAILURE("internal.connectionFailure", std::string("An internal error occurred, we were not able to access the ")+std::string("server handle."))

const ErrorCode org::xmlBlaster::util::INTERNAL_DISCONNECT("internal.disconnect", std::string("An internal error occurred when processing a disconnect() request."))

const ErrorCode org::xmlBlaster::util::INTERNAL_ERASE("internal.erase","An internal error occurred when processing a erase() request.")

const ErrorCode org::xmlBlaster::util::INTERNAL_GET("internal.get","An internal error occurred when processing a get() request.")

const ErrorCode org::xmlBlaster::util::INTERNAL_ILLEGALARGUMENT("internal.illegalArgument", std::string("An illegal argument is an xmlBlaster internal programming ")+std::string("error, please post it to the mailing list."))

Referenced by org::xmlBlaster::util::dispatch::ConnectionsHandler::connect(), org::xmlBlaster::util::dispatch::ConnectionsHandler::getConnection(), org::xmlBlaster::util::queue::ConnectQueueEntry::getEmbeddedObject(), org::xmlBlaster::util::queue::SQLiteQueuePlugin::put(), and org::xmlBlaster::util::Timeout::refreshTimeoutListener().

const ErrorCode org::xmlBlaster::util::INTERNAL_NOTIMPLEMENTED("internal.notImplemented", std::string("The feature is not implemented yet."))

const ErrorCode org::xmlBlaster::util::INTERNAL_NULLPOINTER("internal.nullpointer", std::string("A null pointer is an xmlBlaster internal programming error, ")+std::string("please post it to the mailing list."))

Referenced by org::xmlBlaster::client::XmlBlasterAccess::flushQueue().

const ErrorCode org::xmlBlaster::util::INTERNAL_PUBLISH("internal.publish","An internal error occurred when processing a publish() request.")

Referenced by org::xmlBlaster::util::dispatch::ConnectionsHandler::queuePublish().

const ErrorCode org::xmlBlaster::util::INTERNAL_SUBSCRIBE("internal.subscribe","An internal error occurred when processing a subscribe() request.")

Referenced by org::xmlBlaster::util::dispatch::ConnectionsHandler::queueSubscribe().

const ErrorCode org::xmlBlaster::util::INTERNAL_UNKNOWN("internal.unknown", std::string("This is an unknown and unexpected error, usually a runtime ")+std::string("exception, please post it to the mailing list."))

Referenced by org::xmlBlaster::util::parser::ParserFactory::createParser(), org::xmlBlaster::util::parser::ParserFactory::initialize(), main(), org::xmlBlaster::util::parser::XmlBlasterPanicHandler::panic(), org::xmlBlaster::util::queue::SQLiteQueuePlugin::peekWithSamePriority(), and org::xmlBlaster::util::queue::RamQueuePlugin::put().

const ErrorCode org::xmlBlaster::util::INTERNAL_UNSUBSCRIBE("internal.unSubscribe","An internal error occurred when processing an unSubscribe() request.")

const ErrorCode org::xmlBlaster::util::LEGACY("legacy", std::string("This error code marks all old style org::xmlBlaster::util::XmlBlasterExceptions ")+std::string("until they are ported to the new behaviour."))

const ErrorCode org::xmlBlaster::util::RESOURCE_CALLBACKSERVER_CREATION("resource.callbackServer.creation","The callback server can't be created")

const ErrorCode org::xmlBlaster::util::RESOURCE_CLUSTER_NOTAVAILABLE("resource.cluster.notAvailable","A remote cluster node is not reachable.")

const ErrorCode org::xmlBlaster::util::RESOURCE_CONFIGURATION_ADDRESS("resource.configuration.address","A remote address you passed is invalid, please check your configuration.")

const ErrorCode org::xmlBlaster::util::RESOURCE_CONFIGURATION_PLUGINFAILED("resource.configuration.pluginFailed","A plugin required couldn't be loaded, please check your configuration.")

const ErrorCode org::xmlBlaster::util::RESOURCE_DB_UNAVAILABLE("resource.db.unavailable","There is no connection to a backend database using JDBC")

Referenced by org::xmlBlaster::util::queue::SQLiteQueuePlugin::clear(), org::xmlBlaster::util::queue::SQLiteQueuePlugin::destroy(), org::xmlBlaster::util::queue::SQLiteQueuePlugin::empty(), org::xmlBlaster::util::queue::SQLiteQueuePlugin::getNumOfBytes(), org::xmlBlaster::util::queue::SQLiteQueuePlugin::getNumOfEntries(), org::xmlBlaster::util::queue::SQLiteQueuePlugin::peekWithSamePriority(), and org::xmlBlaster::util::queue::SQLiteQueuePlugin::put().

const ErrorCode org::xmlBlaster::util::RESOURCE_FILEIO("resource.fileIO","A file access failed.")

const ErrorCode org::xmlBlaster::util::RESOURCE_FILEIO_FILELOST("resource.fileIO.fileLost","A file disappeared, access failed.")

const ErrorCode org::xmlBlaster::util::RESOURCE_OUTOFMEMORY("resource.outOfMemory", std::string("The JVM has no more RAM memory, try increasing it like 'java ")+std::string("-Xms18M -Xmx256M org.xmlBlaster.Main'"))

const ErrorCode org::xmlBlaster::util::RESOURCE_OVERFLOW_QUEUE_BYTES("resource.overflow.queue.bytes","The maximum size in bytes of a queue is exhausted")

Referenced by org::xmlBlaster::util::queue::RamQueuePlugin::put().

const ErrorCode org::xmlBlaster::util::RESOURCE_OVERFLOW_QUEUE_ENTRIES("resource.overflow.queue.entries","The maximum number of entries of a queue is exhausted")

Referenced by org::xmlBlaster::util::queue::RamQueuePlugin::put().

const ErrorCode org::xmlBlaster::util::RESOURCE_TOO_MANY_THREADS("resource.tooManyThreads", std::string("The number of threads used is exceeded, try increasing the ")+std::string("number of threads in the properties"))

const ErrorCode org::xmlBlaster::util::USER_CONFIGURATION("user.configuration","Login to xmlBlaster failed due to configuration problems.")

Referenced by org::xmlBlaster::util::Global::getProperty(), and org::xmlBlaster::util::parser::Sax2Parser::Sax2Parser().

const ErrorCode org::xmlBlaster::util::USER_CONNECT("user.connect","Your connection request could not be handled, check your QoS")

Referenced by org::xmlBlaster::util::dispatch::ConnectionsHandler::queueConnect().

const ErrorCode org::xmlBlaster::util::USER_ILLEGALARGUMENT("user.illegalArgument","You have invoked a server method with illegal arguments.")

Referenced by org::xmlBlaster::util::Global::destroyInstance().

const ErrorCode org::xmlBlaster::util::USER_JDBC_INVALID("user.jdbc.invalid","You have invoked get() with an illegal JDBC query.")

const ErrorCode org::xmlBlaster::util::USER_NOT_CONNECTED("user.notConnected","Your operation is not possible, please login with connect() first")

Referenced by org::xmlBlaster::client::XmlBlasterAccess::erase(), org::xmlBlaster::client::XmlBlasterAccess::get(), org::xmlBlaster::client::XmlBlasterAccess::leaveServer(), org::xmlBlaster::client::XmlBlasterAccess::publish(), org::xmlBlaster::client::XmlBlasterAccess::subscribe(), and org::xmlBlaster::client::XmlBlasterAccess::unSubscribe().

const ErrorCode org::xmlBlaster::util::USER_OID_UNKNOWN("user.oid.unknown","You passed a message oid which is not known.")

const ErrorCode org::xmlBlaster::util::USER_PTP_UNKNOWNDESTINATION("user.ptp.unknownDestination", std::string("You have send a point to point message but the receiver is not ")+std::string("known and <destination forceQueuing='true'> is not set."))

const ErrorCode org::xmlBlaster::util::USER_PTP_UNKNOWNSESSION("user.ptp.unknownSession", std::string("You have send a point to point message to a specific user ")+std::string("session but the receiver is not known."))

const ErrorCode org::xmlBlaster::util::USER_PUBLISH("user.publish","Your published message could not be handled, check your QoS")

const ErrorCode org::xmlBlaster::util::USER_QUERY_TYPE_INVALID("user.query.type.invalid", std::string("You have invoked get(), subscribe(), unSubscribe() or erase() ")+std::string("with an illegal query type, try EXACT or XPATH."))

const ErrorCode org::xmlBlaster::util::USER_SECURITY_AUTHENTICATION_ACCESSDENIED("user.security.authentication.accessDenied","Login to xmlBlaster failed due to missing privileges.")

const ErrorCode org::xmlBlaster::util::USER_SECURITY_AUTHENTICATION_ILLEGALARGUMENT("user.security.authentication.illegalArgument","Login to xmlBlaster failed due to illegal arguments.")

const ErrorCode org::xmlBlaster::util::USER_SECURITY_AUTHORIZATION_NOTAUTHORIZED("user.security.authorization.notAuthorized","Login to xmlBlaster failed due to missing privileges.")

const ErrorCode org::xmlBlaster::util::USER_SUBSCRIBE_ID("user.subscribe.id","Your subscription tries to pass an illegal subscriptionId.")

const ErrorCode org::xmlBlaster::util::USER_UPDATE_ERROR("user.update.error","Exception thrown by client on callback update invocation.")

const ErrorCode org::xmlBlaster::util::USER_UPDATE_HOLDBACK("user.update.holdback","You can throw this on client side in your update() method: Like this the server queues the message and sets the dispatcActive to false. You need to manually activate the dispatcher again.")

const ErrorCode org::xmlBlaster::util::USER_UPDATE_ILLEGALARGUMENT("user.update.illegalArgument","The update method was invoked without useful data.")

const ErrorCode org::xmlBlaster::util::USER_UPDATE_INTERNALERROR("user.update.internalError","Unexpected exception thrown by client code on programming error.")

const ErrorCode org::xmlBlaster::util::USER_UPDATE_SECURITY_AUTHENTICATION_ACCESSDENIED("user.update.security.authentication.accessDenied","The update method was invoked with an invalid callback session ID.")

const ErrorCode org::xmlBlaster::util::USER_WRONG_API_USAGE("user.wrongApiUsage","Please check your code.")

Referenced by org::xmlBlaster::util::Timeout::addTimeoutListener(), and org::xmlBlaster::util::Timeout::refreshTimeoutListener().