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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_unigen
protected cern.jet.random.Uniform _unigen
_batch
protected int _batch
_counter
protected int _counter
_pubId
protected Id _pubId
_client
protected PackClient _client
PackSender
public PackSender()
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