lc
Class LC

java.lang.Object
  extended by lc.LC

public class LC
extends java.lang.Object

Lightweight Communications implementation


Constructor Summary
LC()
          Create an LC instance using default options (or environment variable LC_MCADDR if available.)
LC(java.lang.String addr, int port, int ttl)
           
 
Method Summary
static LC getSingleton()
           
static void main(java.lang.String[] args)
           
 void publish(java.lang.String channel, byte[] data, int offset, int length)
           
 void publish(java.lang.String channel, LCEncodable e)
           
 void publish(java.lang.String channel, java.lang.String s)
           
 void subscribe(java.lang.String channel, LCSubscriber sub)
           
 void subscribeAll(LCSubscriber sub)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LC

public LC()
   throws java.io.IOException
Create an LC instance using default options (or environment variable LC_MCADDR if available.)

Throws:
java.io.IOException

LC

public LC(java.lang.String addr,
          int port,
          int ttl)
   throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getSingleton

public static LC getSingleton()
                       throws java.io.IOException
Throws:
java.io.IOException

publish

public void publish(java.lang.String channel,
                    java.lang.String s)
             throws java.io.IOException
Throws:
java.io.IOException

publish

public void publish(java.lang.String channel,
                    LCEncodable e)
             throws java.io.IOException
Throws:
java.io.IOException

publish

public void publish(java.lang.String channel,
                    byte[] data,
                    int offset,
                    int length)
             throws java.io.IOException
Throws:
java.io.IOException

subscribe

public void subscribe(java.lang.String channel,
                      LCSubscriber sub)

subscribeAll

public void subscribeAll(LCSubscriber sub)

main

public static void main(java.lang.String[] args)