solar.test
Class PackSender

java.lang.Object
  |
  +--solar.test.PackSender
All Implemented Interfaces:
EndPoint, Publisher

public class PackSender
extends java.lang.Object
implements Publisher

A standalone event publisher using PACK service.

Version:
$Id: PackSender.java,v 1.18 2003/10/13 14:53:38 glchen Exp $
Author:
Guanling Chen

Field Summary
protected  int _batch
           
protected  PackClient _client
           
protected  int _counter
           
protected  Id _pubId
           
protected  cern.jet.random.Uniform _unigen
           
 
Constructor Summary
PackSender()
           
 
Method Summary
private  long getNextInterval(cern.jet.random.Exponential exp)
           
private  void goExponential(double lambda, int interval)
           
private  void goUniform(int interval)
           
static void main(java.lang.String[] args)
           
private  void publish(long timestamp)
           
 void run(PackClient client, serp.util.Options opts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_unigen

protected cern.jet.random.Uniform _unigen

_batch

protected int _batch

_counter

protected int _counter

_pubId

protected Id _pubId

_client

protected PackClient _client
Constructor Detail

PackSender

public PackSender()
Method Detail

run

public void run(PackClient client,
                serp.util.Options opts)
         throws java.lang.Exception
java.lang.Exception

goUniform

private void goUniform(int interval)
                throws java.lang.Exception
java.lang.Exception

goExponential

private void goExponential(double lambda,
                           int interval)
                    throws java.lang.Exception
java.lang.Exception

publish

private void publish(long timestamp)
              throws java.lang.Exception
java.lang.Exception

getNextInterval

private long getNextInterval(cern.jet.random.Exponential exp)

main

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