public class MGUIDGenerator
extends java.lang.Object
A GUID is a string that is universally unique. The SDK itself generates this unique ID from a set of variables including the IP address, hostname and a random number generator.
You can also call the method MApp.newGUID
to create a new MGUID
.
MGUID
Constructor and Description |
---|
MGUIDGenerator()
Factory class for creating
MGUID instances. |
MGUIDGenerator(MApp app) |
Modifier and Type | Method and Description |
---|---|
void |
activate()
Activate/Reactivate the component - a no op for this class.
|
void |
deactivate()
Deactivate the component - a no op for this class.
|
MApp |
getApp() |
MGUID |
newGUID()
Create a new
MGUID instance. |
static long |
numericToTextFormat(byte[] src) |
public MGUIDGenerator(MApp app)
public MGUIDGenerator()
MGUID
instances.public MApp getApp()
public void activate() throws MException
MException
- On any error to complete the creation of the GUI generatorpublic static long numericToTextFormat(byte[] src)
public MGUID newGUID()
MGUID
instance.
A GUID is a string that is universally unique. It is generated from a set of variables including the IP address, hostname, and a random number generator.
Applications that create MGUID
instances have to free them themselves.
You can also create a new MGUID
by calling
MApp.newGUID()
.
public void deactivate() throws MException
MException
- On any error to release any resource and deactivate the GUI generator