ist.palcom.bytecode
Class IJavaServiceImpl

java.lang.Object
  extended by java.util.Observable
      extended by ist.palcom.bytecode.IJavaServiceImpl
All Implemented Interfaces:
IJavaService

public abstract class IJavaServiceImpl
extends java.util.Observable
implements IJavaService


Constructor Summary
IJavaServiceImpl()
          Constructor: start monitoring for incoming messages
 
Method Summary
 void addTopic(java.lang.String topic)
          Add another topic to the list of topics that we subscribe to
 TopicMessage getNextMessage()
          Return the next message that the Java service wishes to send
 java.lang.String getNextTopic()
          Read the next topic that the Java service is interested in receiving messages on
 boolean hasMessage()
          Return true if the Java service has a message to send
abstract  void receivedMessageHook(TopicMessage message)
          Action to perform when a message has been received
 void receiveMessage(TopicMessage message)
          A message which has been received is pushed to the Java service using this method
 void sendMessage(java.lang.String message, java.lang.String topic)
          Add message to outbound queue
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IJavaServiceImpl

public IJavaServiceImpl()
Constructor: start monitoring for incoming messages

Method Detail

receivedMessageHook

public abstract void receivedMessageHook(TopicMessage message)
Action to perform when a message has been received


sendMessage

public void sendMessage(java.lang.String message,
                        java.lang.String topic)
Add message to outbound queue


addTopic

public void addTopic(java.lang.String topic)
Add another topic to the list of topics that we subscribe to


receiveMessage

public void receiveMessage(TopicMessage message)
Description copied from interface: IJavaService
A message which has been received is pushed to the Java service using this method

Specified by:
receiveMessage in interface IJavaService

hasMessage

public boolean hasMessage()
Description copied from interface: IJavaService
Return true if the Java service has a message to send

Specified by:
hasMessage in interface IJavaService

getNextMessage

public TopicMessage getNextMessage()
Description copied from interface: IJavaService
Return the next message that the Java service wishes to send

Specified by:
getNextMessage in interface IJavaService

getNextTopic

public java.lang.String getNextTopic()
Description copied from interface: IJavaService
Read the next topic that the Java service is interested in receiving messages on

Specified by:
getNextTopic in interface IJavaService