Class AbstractSimulationStrategy
- java.lang.Object
-
- step.basic.restclient.old.simulation.AbstractSimulationStrategy
-
- Direct Known Subclasses:
BasicGroupStrategy
,BasicIdStrategy
public abstract class AbstractSimulationStrategy extends java.lang.Object
- Author:
- doriancransac
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AbstractSimulationStrategy.BrokerGroup
static class
AbstractSimulationStrategy.ExecutionType
-
Field Summary
Fields Modifier and Type Field Description protected java.time.Duration
duration
protected AbstractSimulationStrategy.BrokerGroup
getters
protected long
gracePeriod
protected int
nbIterations
protected AbstractSimulationStrategy.BrokerGroup
peekers
protected AbstractSimulationStrategy.BrokerGroup
putters
protected long
sleepTime
protected java.lang.String
strategyName
protected AbstractSimulationStrategy.ExecutionType
type
-
Constructor Summary
Constructors Constructor Description AbstractSimulationStrategy(java.lang.String strategyName, AbstractSimulationStrategy.ExecutionType type, AbstractSimulationStrategy.BrokerGroup putters, AbstractSimulationStrategy.BrokerGroup peekers, AbstractSimulationStrategy.BrokerGroup getters, java.time.Duration duration, int nbIterations, long sleepTime, long gracePeriod)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
doGroupAction(AbstractSimulationStrategy.BrokerGroup group, RemoteEventBrokerClient client, java.lang.String iterationIdentifier)
java.time.Duration
getDuration()
int
getNbGetters()
int
getNbIterations()
int
getNbPeekers()
int
getNbPuters()
long
getSleepTime()
-
-
-
Field Detail
-
strategyName
protected java.lang.String strategyName
-
type
protected AbstractSimulationStrategy.ExecutionType type
-
putters
protected AbstractSimulationStrategy.BrokerGroup putters
-
peekers
protected AbstractSimulationStrategy.BrokerGroup peekers
-
getters
protected AbstractSimulationStrategy.BrokerGroup getters
-
duration
protected java.time.Duration duration
-
nbIterations
protected int nbIterations
-
sleepTime
protected long sleepTime
-
gracePeriod
protected long gracePeriod
-
-
Constructor Detail
-
AbstractSimulationStrategy
public AbstractSimulationStrategy(java.lang.String strategyName, AbstractSimulationStrategy.ExecutionType type, AbstractSimulationStrategy.BrokerGroup putters, AbstractSimulationStrategy.BrokerGroup peekers, AbstractSimulationStrategy.BrokerGroup getters, java.time.Duration duration, int nbIterations, long sleepTime, long gracePeriod)
-
-
Method Detail
-
doGroupAction
public abstract void doGroupAction(AbstractSimulationStrategy.BrokerGroup group, RemoteEventBrokerClient client, java.lang.String iterationIdentifier) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getNbPuters
public int getNbPuters()
-
getNbPeekers
public int getNbPeekers()
-
getNbGetters
public int getNbGetters()
-
getDuration
public java.time.Duration getDuration()
-
getNbIterations
public int getNbIterations()
-
getSleepTime
public long getSleepTime()
-
-