OSMQ
v2.0.1

osmq.mcns
Class MCResponder

java.lang.Object
  extended byosmq.util.Threaded
      extended byosmq.mcns.MCResponder
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
DiscoveryServer

public abstract class MCResponder
extends Threaded

A threaded base class for respondants to requests on a multicast channel. The class answers Muticast requests on a specific channel and passes the string to an onRequest() function that returns a string. If the String returned by onRequest() is not null, it is returned to the requestor node via a datagram write.


Field Summary
static byte[] buf
           
 
Fields inherited from class osmq.util.Threaded
HIGH_PRIORITY, HIGHEST_PRIORITY, INCREASED_PRIORITY, VERY_HIGH_PRIORITY
 
Method Summary
 int getChannel()
           
 java.lang.String getDottedGroupAddress()
           
 int getTimeToLive()
           
 boolean isActive()
           
 void setChannel(int channel)
           
 void setDottedGroupAddress(java.lang.String dottedaddress)
           
 void setTimeToLive(int ttl)
           
 
Methods inherited from class osmq.util.Threaded
getExceptionListener, getIterations, getPriority, getSequenceNumber, getUserDefinedName, getYieldToPeers, hasTerminated, isPaused, isRunning, isShutdownCompleted, killAll, killAllInGroup, run, setExceptionListener, setPaused, setPriority, setUserDefinedName, setYieldCount, shutdownRequested, sleepSecs, sleepTenths, start, stop, successfulInit
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buf

public static byte[] buf
Method Detail

isActive

public boolean isActive()

setChannel

public void setChannel(int channel)

getChannel

public int getChannel()

setDottedGroupAddress

public void setDottedGroupAddress(java.lang.String dottedaddress)

getDottedGroupAddress

public java.lang.String getDottedGroupAddress()

setTimeToLive

public void setTimeToLive(int ttl)

getTimeToLive

public int getTimeToLive()

(c) 2000 - 2003 MQue Systems
All Rights Reserved