org.symcomp.scscp
Class SCSCPSpawner

java.lang.Object
  extended by org.symcomp.scscp.SCSCPSpawner
All Implemented Interfaces:
java.lang.Runnable

public class SCSCPSpawner
extends java.lang.Object
implements java.lang.Runnable

A class implementing spawning and breeding of an SCSCP server, i.e making sure it keeps running. This is called from C3PO and hence from SCSCPServer, and is intended to be used from there, by using e.g. SCSCPServer.spawn.


Method Summary
static void breed(java.lang.Class clazz, int port)
           
protected static void log(java.lang.Integer l, java.lang.String msg)
          Basic logging, quick hack.
 void run()
           
static void spawn(java.lang.Class clazz, int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

log

protected static void log(java.lang.Integer l,
                          java.lang.String msg)
Basic logging, quick hack. Uses C3PO.log, and his (static) loglevel.


spawn

public static void spawn(java.lang.Class clazz,
                         int port)
                  throws java.lang.Exception
Throws:
java.lang.Exception

breed

public static void breed(java.lang.Class clazz,
                         int port)
                  throws java.lang.Exception
Throws:
java.lang.Exception

run

public void run()
Specified by:
run in interface java.lang.Runnable


Copyright © 2010. All Rights Reserved.