xmlBlaster 2.2.0 API

org.xmlBlaster.protocol.corba
Class ServerImpl

java.lang.Object
  extended by org.xmlBlaster.protocol.corba.ServerImpl
All Implemented Interfaces:
ServerOperations

public class ServerImpl
extends java.lang.Object
implements ServerOperations

Implements the xmlBlaster server CORBA interface.

See Also:
CORBA xmlBlaster.idl, RequestBroker

Field Summary
private  AddressServer addressServer
           
private  I_XmlBlaster blaster
           
private  Global glob
           
private static java.util.logging.Logger log
           
private  java.lang.String ME
           
private  org.omg.CORBA.ORB orb
           
 
Constructor Summary
ServerImpl(Global glob, org.omg.CORBA.ORB orb, AddressServer addressServer, I_XmlBlaster blaster)
          Construct a persistently named object.
 
Method Summary
static java.lang.String convert(byte[] objectId)
          Converts an oid into a string as a hex dump with an unique identifier "IIOP:" in front.
 java.lang.String[] erase(java.lang.String xmlKey_literal, java.lang.String qos_literal)
           
 MessageUnit[] get(java.lang.String xmlKey_literal, java.lang.String qos_literal)
          Synchronous access
private  java.lang.String getSecretSessionId()
          Extract the user session ID from POA.
 I_XmlBlaster getXmlBlaster()
          Get a handle on the request broker singleton (the engine of xmlBlaster).
 java.lang.String ping(java.lang.String qos)
          Ping to check if xmlBlaster is alive.
 java.lang.String publish(MessageUnit msgUnit)
           
 java.lang.String[] publishArr(MessageUnit[] msgUnitArr)
           
 void publishOneway(MessageUnit[] msgUnitArr)
           
 java.lang.String subscribe(java.lang.String xmlKey_literal, java.lang.String qos_literal)
          Subscribe to messages
 java.lang.String[] unSubscribe(java.lang.String xmlKey_literal, java.lang.String qos_literal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ME

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

glob

private final Global glob

log

private static java.util.logging.Logger log

orb

private final org.omg.CORBA.ORB orb

blaster

private final I_XmlBlaster blaster

addressServer

private final AddressServer addressServer
Constructor Detail

ServerImpl

public ServerImpl(Global glob,
                  org.omg.CORBA.ORB orb,
                  AddressServer addressServer,
                  I_XmlBlaster blaster)
           throws XmlBlasterException
Construct a persistently named object.

Throws:
XmlBlasterException
Method Detail

getXmlBlaster

public I_XmlBlaster getXmlBlaster()
Get a handle on the request broker singleton (the engine of xmlBlaster).

Returns:
I_XmlBlaster

subscribe

public java.lang.String subscribe(java.lang.String xmlKey_literal,
                                  java.lang.String qos_literal)
                           throws XmlBlasterException
Subscribe to messages

Specified by:
subscribe in interface ServerOperations
Throws:
XmlBlasterException

unSubscribe

public java.lang.String[] unSubscribe(java.lang.String xmlKey_literal,
                                      java.lang.String qos_literal)
                               throws XmlBlasterException
Specified by:
unSubscribe in interface ServerOperations
Throws:
XmlBlasterException
See Also:
CORBA xmlBlaster.idl

publish

public java.lang.String publish(MessageUnit msgUnit)
                         throws XmlBlasterException
Specified by:
publish in interface ServerOperations
Throws:
XmlBlasterException
See Also:
CORBA xmlBlaster.idl

publishArr

public java.lang.String[] publishArr(MessageUnit[] msgUnitArr)
                              throws XmlBlasterException
Specified by:
publishArr in interface ServerOperations
Throws:
XmlBlasterException
See Also:
CORBA xmlBlaster.idl

publishOneway

public void publishOneway(MessageUnit[] msgUnitArr)
Specified by:
publishOneway in interface ServerOperations
See Also:
CORBA xmlBlaster.idl

erase

public java.lang.String[] erase(java.lang.String xmlKey_literal,
                                java.lang.String qos_literal)
                         throws XmlBlasterException
Specified by:
erase in interface ServerOperations
Throws:
XmlBlasterException
See Also:
CORBA xmlBlaster.idl

get

public MessageUnit[] get(java.lang.String xmlKey_literal,
                         java.lang.String qos_literal)
                  throws XmlBlasterException
Synchronous access

Specified by:
get in interface ServerOperations
Returns:
content
Throws:
XmlBlasterException
See Also:
CORBA xmlBlaster.idl

getSecretSessionId

private java.lang.String getSecretSessionId()
                                     throws XmlBlasterException
Extract the user session ID from POA.

This is a nice feature with CORBA-POA not available with RMI et al.

Throws:
XmlBlasterException

convert

public static final java.lang.String convert(byte[] objectId)
Converts an oid into a string as a hex dump with an unique identifier "IIOP:" in front.

Copied from JacORB POAUtil.java
The identifier IIOP: allows to distinguish the session ID from other generated session ids


ping

public java.lang.String ping(java.lang.String qos)
Ping to check if xmlBlaster is alive.

Specified by:
ping in interface ServerOperations
See Also:
org.xmlBlaster.protocol.I_XmlBlaster#ping(String)

xmlBlaster 2.2.0 API

Copyright © 1999-2014 The xmlBlaster.org contributers.