com.tc.lcp
Class LinkedJavaProcessStarter

java.lang.Object
  extended by com.tc.lcp.LinkedJavaProcessStarter

public class LinkedJavaProcessStarter
extends java.lang.Object

Runs another main class, with full arguments, but first establishes a socket heartbeat protocol with a parent process on a specified port — and kills itself if this ping protocol is broken. This prevents runaway Java processes.


Constructor Summary
LinkedJavaProcessStarter()
           
 
Method Summary
static long getMaxRuntime()
           
static void main(java.lang.String[] args)
           
static void scheduleShutdownTimer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkedJavaProcessStarter

public LinkedJavaProcessStarter()
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

getMaxRuntime

public static long getMaxRuntime()

scheduleShutdownTimer

public static void scheduleShutdownTimer()


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.