public class org.apache.activemq.console.command.ProducerCommand extends org.apache.activemq.console.command.AbstractCommand
{
private static final org.slf4j.Logger LOG;
java.lang.String brokerUrl;
java.lang.String user;
java.lang.String password;
java.lang.String destination;
int messageCount;
int sleep;
boolean persistent;
java.lang.String message;
java.lang.String payloadUrl;
int messageSize;
int textMessageSize;
long msgTTL;
java.lang.String msgGroupID;
int transactionBatchSize;
private int parallelThreads;
public void <init>()
{
org.apache.activemq.console.command.ProducerCommand v;
java.lang.String v, v, v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
specialinvoke v.<org.apache.activemq.console.command.AbstractCommand: void <init>()>();
v = <org.apache.activemq.ActiveMQConnectionFactory: java.lang.String DEFAULT_BROKER_URL>;
v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String brokerUrl> = v;
v = <org.apache.activemq.ActiveMQConnectionFactory: java.lang.String DEFAULT_USER>;
v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String user> = v;
v = <org.apache.activemq.ActiveMQConnectionFactory: java.lang.String DEFAULT_PASSWORD>;
v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String password> = v;
v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String destination> = "queue://TEST";
v.<org.apache.activemq.console.command.ProducerCommand: int messageCount> = 1000;
v.<org.apache.activemq.console.command.ProducerCommand: int sleep> = 0;
v.<org.apache.activemq.console.command.ProducerCommand: boolean persistent> = 1;
v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String message> = null;
v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String payloadUrl> = null;
v.<org.apache.activemq.console.command.ProducerCommand: int messageSize> = 0;
v.<org.apache.activemq.console.command.ProducerCommand: long msgTTL> = 0L;
v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String msgGroupID> = null;
v.<org.apache.activemq.console.command.ProducerCommand: int parallelThreads> = 1;
return;
}
protected void runTask(java.util.List) throws java.lang.Exception
{
org.apache.activemq.console.command.ProducerCommand v;
javax.jms.Session v;
org.apache.activemq.util.ProducerThread v;
boolean v, v;
org.apache.activemq.ActiveMQConnectionFactory v;
org.apache.activemq.command.ActiveMQDestination v;
java.util.concurrent.CountDownLatch v;
java.util.List v;
java.lang.Throwable v;
long v;
int v, v, v, v, v, v, v, v, v, v, v;
java.lang.String v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v, v;
javax.jms.Connection v;
org.slf4j.Logger v, v, v, v, v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v := @parameter: java.util.List;
v = <org.apache.activemq.console.command.ProducerCommand: org.slf4j.Logger LOG>;
v = v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String brokerUrl>;
v = v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String user>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String,java.lang.String)>(v, v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Connecting to URL: \u as user: \u0001");
interfaceinvoke v.<org.slf4j.Logger: void info(java.lang.String)>(v);
v = <org.apache.activemq.console.command.ProducerCommand: org.slf4j.Logger LOG>;
v = v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String destination>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Producing messages to \u0001");
interfaceinvoke v.<org.slf4j.Logger: void info(java.lang.String)>(v);
v = <org.apache.activemq.console.command.ProducerCommand: org.slf4j.Logger LOG>;
v = v.<org.apache.activemq.console.command.ProducerCommand: boolean persistent>;
if v == 0 goto label;
v = "persistent";
goto label;
label:
v = "non-persistent";
label:
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (java.lang.String)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Using \u messages");
interfaceinvoke v.<org.slf4j.Logger: void info(java.lang.String)>(v);
v = <org.apache.activemq.console.command.ProducerCommand: org.slf4j.Logger LOG>;
v = v.<org.apache.activemq.console.command.ProducerCommand: int sleep>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Sleeping between sends \u ms");
interfaceinvoke v.<org.slf4j.Logger: void info(java.lang.String)>(v);
v = <org.apache.activemq.console.command.ProducerCommand: org.slf4j.Logger LOG>;
v = v.<org.apache.activemq.console.command.ProducerCommand: int parallelThreads>;
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("Running \u parallel threads");
interfaceinvoke v.<org.slf4j.Logger: void info(java.lang.String)>(v);
v = new org.apache.activemq.ActiveMQConnectionFactory;
v = v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String brokerUrl>;
specialinvoke v.<org.apache.activemq.ActiveMQConnectionFactory: void <init>(java.lang.String)>(v);
v = null;
label:
v = v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String user>;
v = v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String password>;
v = virtualinvoke v.<org.apache.activemq.ActiveMQConnectionFactory: javax.jms.Connection createConnection(java.lang.String,java.lang.String)>(v, v);
interfaceinvoke v.<javax.jms.Connection: void start()>();
v = new java.util.concurrent.CountDownLatch;
v = v.<org.apache.activemq.console.command.ProducerCommand: int parallelThreads>;
specialinvoke v.<java.util.concurrent.CountDownLatch: void <init>(int)>(v);
v = 1;
label:
v = v.<org.apache.activemq.console.command.ProducerCommand: int parallelThreads>;
if v > v goto label;
v = v.<org.apache.activemq.console.command.ProducerCommand: int transactionBatchSize>;
if v == 0 goto label;
v = interfaceinvoke v.<javax.jms.Connection: javax.jms.Session createSession(boolean,int)>(1, 0);
goto label;
label:
v = interfaceinvoke v.<javax.jms.Connection: javax.jms.Session createSession(boolean,int)>(0, 1);
label:
v = new org.apache.activemq.util.ProducerThread;
v = v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String destination>;
v = staticinvoke <org.apache.activemq.command.ActiveMQDestination: org.apache.activemq.command.ActiveMQDestination createDestination(java.lang.String,byte)>(v, 1);
specialinvoke v.<org.apache.activemq.util.ProducerThread: void <init>(javax.jms.Session,javax.jms.Destination)>(v, v);
v = dynamicinvoke "makeConcatWithConstants" <java.lang.String (int)>(v) <java.lang.invoke.StringConcatFactory: java.lang.invoke.CallSite makeConcatWithConstants(java.lang.invoke.MethodHandles$Lookup,java.lang.String,java.lang.invoke.MethodType,java.lang.String,java.lang.Object[])>("producer-\u0001");
virtualinvoke v.<org.apache.activemq.util.ProducerThread: void setName(java.lang.String)>(v);
v = v.<org.apache.activemq.console.command.ProducerCommand: int messageCount>;
virtualinvoke v.<org.apache.activemq.util.ProducerThread: void setMessageCount(int)>(v);
v = v.<org.apache.activemq.console.command.ProducerCommand: int sleep>;
virtualinvoke v.<org.apache.activemq.util.ProducerThread: void setSleep(int)>(v);
v = v.<org.apache.activemq.console.command.ProducerCommand: long msgTTL>;
virtualinvoke v.<org.apache.activemq.util.ProducerThread: void setMsgTTL(long)>(v);
v = v.<org.apache.activemq.console.command.ProducerCommand: boolean persistent>;
virtualinvoke v.<org.apache.activemq.util.ProducerThread: void setPersistent(boolean)>(v);
v = v.<org.apache.activemq.console.command.ProducerCommand: int transactionBatchSize>;
virtualinvoke v.<org.apache.activemq.util.ProducerThread: void setTransactionBatchSize(int)>(v);
v = v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String message>;
virtualinvoke v.<org.apache.activemq.util.ProducerThread: void setMessage(java.lang.String)>(v);
v = v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String payloadUrl>;
virtualinvoke v.<org.apache.activemq.util.ProducerThread: void setPayloadUrl(java.lang.String)>(v);
v = v.<org.apache.activemq.console.command.ProducerCommand: int messageSize>;
virtualinvoke v.<org.apache.activemq.util.ProducerThread: void setMessageSize(int)>(v);
v = v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String msgGroupID>;
virtualinvoke v.<org.apache.activemq.util.ProducerThread: void setMsgGroupID(java.lang.String)>(v);
v = v.<org.apache.activemq.console.command.ProducerCommand: int textMessageSize>;
virtualinvoke v.<org.apache.activemq.util.ProducerThread: void setTextMessageSize(int)>(v);
virtualinvoke v.<org.apache.activemq.util.ProducerThread: void setFinished(java.util.concurrent.CountDownLatch)>(v);
virtualinvoke v.<org.apache.activemq.util.ProducerThread: void start()>();
v = v + 1;
goto label;
label:
virtualinvoke v.<java.util.concurrent.CountDownLatch: void await()>();
label:
interfaceinvoke v.<javax.jms.Connection: void close()>();
goto label;
label:
v := @caughtexception;
if v == null goto label;
interfaceinvoke v.<javax.jms.Connection: void close()>();
label:
throw v;
label:
return;
catch java.lang.Throwable from label to label with label;
}
public java.lang.String getBrokerUrl()
{
org.apache.activemq.console.command.ProducerCommand v;
java.lang.String v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v = v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String brokerUrl>;
return v;
}
public void setBrokerUrl(java.lang.String)
{
org.apache.activemq.console.command.ProducerCommand v;
java.lang.String v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v := @parameter: java.lang.String;
v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String brokerUrl> = v;
return;
}
public java.lang.String getDestination()
{
org.apache.activemq.console.command.ProducerCommand v;
java.lang.String v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v = v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String destination>;
return v;
}
public void setDestination(java.lang.String)
{
org.apache.activemq.console.command.ProducerCommand v;
java.lang.String v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v := @parameter: java.lang.String;
v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String destination> = v;
return;
}
public int getMessageCount()
{
int v;
org.apache.activemq.console.command.ProducerCommand v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v = v.<org.apache.activemq.console.command.ProducerCommand: int messageCount>;
return v;
}
public void setMessageCount(int)
{
int v;
org.apache.activemq.console.command.ProducerCommand v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v := @parameter: int;
v.<org.apache.activemq.console.command.ProducerCommand: int messageCount> = v;
return;
}
public int getSleep()
{
int v;
org.apache.activemq.console.command.ProducerCommand v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v = v.<org.apache.activemq.console.command.ProducerCommand: int sleep>;
return v;
}
public void setSleep(int)
{
int v;
org.apache.activemq.console.command.ProducerCommand v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v := @parameter: int;
v.<org.apache.activemq.console.command.ProducerCommand: int sleep> = v;
return;
}
public boolean isPersistent()
{
org.apache.activemq.console.command.ProducerCommand v;
boolean v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v = v.<org.apache.activemq.console.command.ProducerCommand: boolean persistent>;
return v;
}
public void setPersistent(boolean)
{
org.apache.activemq.console.command.ProducerCommand v;
boolean v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v := @parameter: boolean;
v.<org.apache.activemq.console.command.ProducerCommand: boolean persistent> = v;
return;
}
public int getMessageSize()
{
int v;
org.apache.activemq.console.command.ProducerCommand v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v = v.<org.apache.activemq.console.command.ProducerCommand: int messageSize>;
return v;
}
public void setMessageSize(int)
{
int v;
org.apache.activemq.console.command.ProducerCommand v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v := @parameter: int;
v.<org.apache.activemq.console.command.ProducerCommand: int messageSize> = v;
return;
}
public int getTextMessageSize()
{
int v;
org.apache.activemq.console.command.ProducerCommand v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v = v.<org.apache.activemq.console.command.ProducerCommand: int textMessageSize>;
return v;
}
public void setTextMessageSize(int)
{
int v;
org.apache.activemq.console.command.ProducerCommand v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v := @parameter: int;
v.<org.apache.activemq.console.command.ProducerCommand: int textMessageSize> = v;
return;
}
public long getMsgTTL()
{
org.apache.activemq.console.command.ProducerCommand v;
long v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v = v.<org.apache.activemq.console.command.ProducerCommand: long msgTTL>;
return v;
}
public void setMsgTTL(long)
{
org.apache.activemq.console.command.ProducerCommand v;
long v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v := @parameter: long;
v.<org.apache.activemq.console.command.ProducerCommand: long msgTTL> = v;
return;
}
public java.lang.String getMsgGroupID()
{
org.apache.activemq.console.command.ProducerCommand v;
java.lang.String v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v = v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String msgGroupID>;
return v;
}
public void setMsgGroupID(java.lang.String)
{
org.apache.activemq.console.command.ProducerCommand v;
java.lang.String v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v := @parameter: java.lang.String;
v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String msgGroupID> = v;
return;
}
public int getTransactionBatchSize()
{
int v;
org.apache.activemq.console.command.ProducerCommand v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v = v.<org.apache.activemq.console.command.ProducerCommand: int transactionBatchSize>;
return v;
}
public void setTransactionBatchSize(int)
{
int v;
org.apache.activemq.console.command.ProducerCommand v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v := @parameter: int;
v.<org.apache.activemq.console.command.ProducerCommand: int transactionBatchSize> = v;
return;
}
public java.lang.String getUser()
{
org.apache.activemq.console.command.ProducerCommand v;
java.lang.String v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v = v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String user>;
return v;
}
public void setUser(java.lang.String)
{
org.apache.activemq.console.command.ProducerCommand v;
java.lang.String v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v := @parameter: java.lang.String;
v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String user> = v;
return;
}
public java.lang.String getPassword()
{
org.apache.activemq.console.command.ProducerCommand v;
java.lang.String v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v = v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String password>;
return v;
}
public void setPassword(java.lang.String)
{
org.apache.activemq.console.command.ProducerCommand v;
java.lang.String v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v := @parameter: java.lang.String;
v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String password> = v;
return;
}
public int getParallelThreads()
{
int v;
org.apache.activemq.console.command.ProducerCommand v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v = v.<org.apache.activemq.console.command.ProducerCommand: int parallelThreads>;
return v;
}
public void setParallelThreads(int)
{
int v;
org.apache.activemq.console.command.ProducerCommand v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v := @parameter: int;
v.<org.apache.activemq.console.command.ProducerCommand: int parallelThreads> = v;
return;
}
public java.lang.String getPayloadUrl()
{
org.apache.activemq.console.command.ProducerCommand v;
java.lang.String v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v = v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String payloadUrl>;
return v;
}
public void setPayloadUrl(java.lang.String)
{
org.apache.activemq.console.command.ProducerCommand v;
java.lang.String v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v := @parameter: java.lang.String;
v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String payloadUrl> = v;
return;
}
public java.lang.String getMessage()
{
org.apache.activemq.console.command.ProducerCommand v;
java.lang.String v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v = v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String message>;
return v;
}
public void setMessage(java.lang.String)
{
org.apache.activemq.console.command.ProducerCommand v;
java.lang.String v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
v := @parameter: java.lang.String;
v.<org.apache.activemq.console.command.ProducerCommand: java.lang.String message> = v;
return;
}
protected void printHelp()
{
org.apache.activemq.console.command.ProducerCommand v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
virtualinvoke v.<org.apache.activemq.console.command.ProducerCommand: void printHelpFromFile()>();
return;
}
public java.lang.String getName()
{
org.apache.activemq.console.command.ProducerCommand v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
return "producer";
}
public java.lang.String getOneLineDescription()
{
org.apache.activemq.console.command.ProducerCommand v;
v := @this: org.apache.activemq.console.command.ProducerCommand;
return "Sends messages to the broker";
}
static void <clinit>()
{
org.slf4j.Logger v;
v = staticinvoke <org.slf4j.LoggerFactory: org.slf4j.Logger getLogger(java.lang.Class)>(class "Lorg/apache/activemq/console/command/ProducerCommand;");
<org.apache.activemq.console.command.ProducerCommand: org.slf4j.Logger LOG> = v;
return;
}
}