|
xmlBlaster 2.2.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xmlBlaster.util.admin.extern.XmlBlasterConnector
public class XmlBlasterConnector
XmlBlasterConnector is a tiny embedded xmlBlaster server instance. It is both publisher and subscriber to a topic. XmlBlasterConnector extracts MethodInvocation Object from the Message Unit and handles the invocation, stores the return value
| Field Summary | |
|---|---|
private EmbeddedXmlBlaster |
embeddedXmlBlaster
|
static int |
FINISHED
|
private Global |
glob
|
boolean |
jmxInterfaceAlive
|
private static java.util.logging.Logger |
log
|
private static int |
port
|
static int |
SENDING
|
private SerializeHelper |
serHelp
|
private javax.management.MBeanServer |
server
|
static int |
UNKNOWN
|
private I_XmlBlasterAccess |
xmlBlasterAccess
|
| Constructor Summary | |
|---|---|
XmlBlasterConnector()
|
|
| Method Summary | |
|---|---|
private void |
addNotification(MethodInvocation mi)
|
boolean |
isConnectorAlive()
Display internal status to Management |
private void |
removeNotification(MethodInvocation mi)
|
void |
start(java.lang.String agentID)
Starts the connector - starts an embedded xmlBlaster that listens on port 3424 Subscribes to topic where MethodInvocations are placed Starts another (new!) MBeanServer |
void |
startEmbeddedXmlBlasterServer()
Start EmbeddedXmlBlaster |
void |
startInternal(javax.management.MBeanServer server)
Starts the connector - starts an embedded xmlBlaster that listens on port 3424 Subscribes to topic where MethodInvocations are placed Uses MBeanServer from JMXWrapper |
void |
stop(java.lang.String agentId)
Stop Service |
java.lang.String |
update(java.lang.String cbSessionId,
UpdateKey updateKey,
byte[] content,
UpdateQos updateQos)
update() is invoked, when a methodInvocation for the given key arrives MethodInvocation is deserialized, the method is invoked and the return value is stored (within the MethodInvocation Object) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private I_XmlBlasterAccess xmlBlasterAccess
private javax.management.MBeanServer server
private SerializeHelper serHelp
private static java.util.logging.Logger log
private Global glob
private EmbeddedXmlBlaster embeddedXmlBlaster
private static int port
public static int UNKNOWN
public static int SENDING
public static int FINISHED
public boolean jmxInterfaceAlive
| Constructor Detail |
|---|
public XmlBlasterConnector()
| Method Detail |
|---|
public void start(java.lang.String agentID)
start in interface XmlBlasterConnectorMBeanpublic void startInternal(javax.management.MBeanServer server)
startInternal in interface XmlBlasterConnectorMBeanpublic void startEmbeddedXmlBlasterServer()
public java.lang.String update(java.lang.String cbSessionId,
UpdateKey updateKey,
byte[] content,
UpdateQos updateQos)
update in interface I_CallbackcbSessionId - The session ID specified by the client which registered the callback.
You can specify a cbSessionId during connection (with ConnectQos)
and this is bounced back here so you can authenticate the message.updateKey - The arrived key containing the topic namecontent - The arrived message content. This is your payload.I_XmlBlasterAccessprivate void removeNotification(MethodInvocation mi)
private void addNotification(MethodInvocation mi)
public boolean isConnectorAlive()
isConnectorAlive in interface XmlBlasterConnectorMBeanpublic void stop(java.lang.String agentId)
stop in interface XmlBlasterConnectorMBean
|
xmlBlaster 2.2.0 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||