public final class ProcessFlow extends Packet
A Process Flow entry is responsible for illustrated process and thread information.
It has several properties which describe its creation context (like a thread ID, timestamp or hostname) and other properties which specify the way the Console interprets this packet (like the process flow ID). Furthermore, a Process Flow entry contains the actual data, namely the title, which will be displayed in the Console.
This class is not guaranteed to be thread-safe. However, instances of this class will normally only be used in the context of a single thread.
PACKET_HEADER| Constructor and Description |
|---|
ProcessFlow()
Overloaded.
|
ProcessFlow(ProcessFlowType processFlowType)
Creates and initializes a ProcessFlow instance with a custom process flow type.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHostName()
Returns the hostname of this Process Flow entry.
|
PacketType |
getPacketType()
Overridden.
|
ProcessFlowType |
getProcessFlowType()
Returns the type of this Process Flow entry.
|
int |
getProcessId()
Returns the process ID of this ProcessFlow object.
|
int |
getSize()
Overridden.
|
int |
getThreadId()
Returns the thread ID of this ProcessFlow object.
|
long |
getTimestamp()
Returns the timestamp of this ProcessFlow object.
|
String |
getTitle()
Returns the title of this Process Flow entry.
|
void |
setHostName(String hostName)
Sets the hostname of this Process Flow Entry.
|
void |
setProcessFlowType(ProcessFlowType processFlowType)
Sets the type of this Process Flow entry.
|
void |
setProcessId(int processId)
Sets the process ID of this ProcessFlow object.
|
void |
setThreadId(int threadId)
Sets the thread ID of this ProcessFlow object.
|
void |
setTimestamp(long timestamp)
Sets the timestamp of this ProcessFlow object.
|
void |
setTitle(String title)
Sets the title of the Process Flow Entry.
|
getBytes, getLevel, getStringSize, isThreadSafe, lock, setBytes, setLevel, setThreadSafe, unlockpublic ProcessFlow()
public ProcessFlow(ProcessFlowType processFlowType)
If the processFlowType argument is a null reference a NullPointerException will be thrown.
processFlowType - The type of the new Process Flow entry describes the way the
Console interprets this packet. Please see the ProcessFlowType
enum for more information. Now allowed to be nullNullPointerException - if the processFlowType argument is nullpublic int getSize()
public PacketType getPacketType()
getPacketType in class Packetpublic String getTitle()
This method can return null if this Process Flow entry does not contain a title. If this is the case, it will be empty in the SmartInspect Console.
public void setTitle(String title)
The title of this Process Flow entry will be empty in the SmartInspect Console when this method gets a null reference as argument.
title - The new title of this Process Flow entry. Can be nullpublic String getHostName()
The hostname of this Process Flow entry is usually set to the name of the machine this Process Flow entry is sent from.
This method can return null if this Process Flow entry does not contain a hostname. If this is the case, it will be empty in the SmartInspect Console.
public void setHostName(String hostName)
The hostname of this Process Flow entry will be empty in the SmartInspect Console when this method gets a null reference as argument.
hostName - The new hostname of this Process Flow entry. Can be nullpublic ProcessFlowType getProcessFlowType()
public void setProcessFlowType(ProcessFlowType processFlowType)
The type of the Process Flow entry describes the way the Console interprets this packet. Please see the ProcessFlowType enum for more information. If the processFlowType argument is a null reference a NullPointerException will be thrown.
processFlowType - The new type of this Process Flow entry. Not allowed to be nullNullPointerException - if the processFlowType argument is nullpublic long getTimestamp()
public void setTimestamp(long timestamp)
timestamp - The new timestamp of this ProcessFlow object. The passed value
should represent the local date and time in microseconds since
January 1, 1970. See SmartInspect.now() for more informationpublic int getProcessId()
public void setProcessId(int processId)
processId - The new process ID of this Process Flow objectpublic int getThreadId()
getThreadId in class Packetpublic void setThreadId(int threadId)
threadId - The new thread ID of this Process Flow object.Copyright © 2023. All rights reserved.