Five Stars

Job statistics

Hi experts ,
Q1-Can I get the system process id for a particular PID (talend id) without using tstatcather component ?
Q2-is talend id unique across all projects?
Is there any possibility that I could get the same talend id for any process at any point of time ?

Note- I refer PID column of tstatcather as talend id
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Twelve Stars

Re: Job statistics

Talend just generates Java. As such, there is a lot available to you if you can write Java. Click on the Code tab in the bottom left of the developer screen. Rummage through the code and you will find a load of variables like below....

 

	public boolean watch = false;
	// portStats is null, it means don't execute the statistics
	public Integer portStats = null;
	public int portTraces = 4334;
	public String clientHost;
	public String defaultClientHost = "localhost";
	public String contextStr = "Default";
	public boolean isDefaultContext = true;
	public String pid = "0";
	public String rootPid = null;
	public String fatherPid = null;
	public String fatherNode = null;
	public long startTime = 0;
	public boolean isChildJob = false;
	public String log4jLevel = "";

You can use any of these variables, and others. The ID is not guaranteed to be unique, but it is highly likely to be unique. If you are running through the TAC, then a timestamp is added to the unique character sequence which makes it even more likely to be unique. You are not likely to see duplicates in the Studio, practically impossible in the TAC

Rilhia Solutions
1 REPLY
Twelve Stars

Re: Job statistics

Talend just generates Java. As such, there is a lot available to you if you can write Java. Click on the Code tab in the bottom left of the developer screen. Rummage through the code and you will find a load of variables like below....

 

	public boolean watch = false;
	// portStats is null, it means don't execute the statistics
	public Integer portStats = null;
	public int portTraces = 4334;
	public String clientHost;
	public String defaultClientHost = "localhost";
	public String contextStr = "Default";
	public boolean isDefaultContext = true;
	public String pid = "0";
	public String rootPid = null;
	public String fatherPid = null;
	public String fatherNode = null;
	public long startTime = 0;
	public boolean isChildJob = false;
	public String log4jLevel = "";

You can use any of these variables, and others. The ID is not guaranteed to be unique, but it is highly likely to be unique. If you are running through the TAC, then a timestamp is added to the unique character sequence which makes it even more likely to be unique. You are not likely to see duplicates in the Studio, practically impossible in the TAC

Rilhia Solutions