-
Notifications
You must be signed in to change notification settings - Fork 3
Asset Management
- AssetUtilizationStore
-
AssetUtilizationStoreAdapter
- #ctor()
- AssetUtilizationStoreEndUtilization(utilizationUuid)
- AssetUtilizationStoreStartUtilization(assetNames,utilizationCategory,userName,taskName)
- AssetUtilizationStoreUpdateUtilization(utilizationUuid)
- CleanStartUtilizationResult(utilizationResult)
- Dispose(disposing)
- Dispose()
- Finalize()
- InitializeAssetUtilizationStore()
- ShutdownAssetUtilizationStore()
- AssetUtilizationStoreException
- AssetUtilizationStoreFactory
- IAssetUtilizationStore
-
IAssetUtilizationStoreAdapter
- AssetUtilizationStoreEndUtilization(utilizationUuid)
- AssetUtilizationStoreStartUtilization(assetNames,utilizationCategory,userName,taskName)
- AssetUtilizationStoreUpdateUtilization(utilizationUuid)
- CleanStartUtilizationResult(utilizationResult)
- InitializeAssetUtilizationStore()
- ShutdownAssetUtilizationStore()
- IAssetUtilizationStoreFactory
- IStartedUtilization
- InteropStartUtilizationResult
- NativeMethods
- StartUtilizationConfiguration
- StartedUtilization
NationalInstruments.SystemLink.Clients.AssetManagement
Class containing methods to store asset utilization data locally.
Inherit from parent.
This method has no parameters.
Starts a utilization task for all assets with the given information about the current running task.
An object containing the utilization that was started.
| Name | Type | Description |
|---|---|---|
| startUtilizationConfiguration | NationalInstruments.SystemLink.Clients.AssetManagement.StartUtilizationConfiguration | Configuration used to start a new utilization. |
| utilizationCategory | System.String | A string containing the category of the started utilization. |
| userName | System.String | The user name of the user that started the utilization session. |
| taskName | System.String | The name of the task that is running for the utilization session. |
| Name | Description |
|---|---|
| NationalInstruments.SystemLink.Clients.AssetManagement.AssetUtilizationStoreException | when the start utilization operations fails. |
| System.ObjectDisposedException | when this object was already disposed. |
| System.ArgumentNullException | if utilizationCategory, userName
|
or taskName are null. |
StartUtilization(startUtilizationConfiguration,assetName,utilizationCategory,userName,taskName) method
Starts a utilization task for the given asset with the given information about the current running task.
An object containing the utilization that was started.
| Name | Type | Description |
|---|---|---|
| startUtilizationConfiguration | NationalInstruments.SystemLink.Clients.AssetManagement.StartUtilizationConfiguration | Configuration used to start a new utilization. |
| assetName | System.String | A string containing the name of the asset that is being utilized. |
| utilizationCategory | System.String | A string containing the category of the started utilization. |
| userName | System.String | The user name of the user that started the utilization session. |
| taskName | System.String | The name of the task that is running for the utilization session. |
| Name | Description |
|---|---|
| NationalInstruments.SystemLink.Clients.AssetManagement.AssetUtilizationStoreException | when the start utilization operations fails. |
| System.ObjectDisposedException | when this object was already disposed. |
| System.ArgumentNullException | if assetName, utilizationCategory, |
userName or taskName are null. |
The system controller is automatically included in the utilization task.
StartUtilization(startUtilizationConfiguration,assetNames,utilizationCategory,userName,taskName) method
Starts a utilization task for the specified assets with the given information about the current running task.
An object containing the utilization that was started.
| Name | Type | Description |
|---|---|---|
| startUtilizationConfiguration | NationalInstruments.SystemLink.Clients.AssetManagement.StartUtilizationConfiguration | Configuration used to start a new utilization. |
| assetNames | System.Collections.Generic.IEnumerable{System.String} | A collection containing the name of the assets that are being utilized. |
| utilizationCategory | System.String | A string containing the category of the started utilization. |
| userName | System.String | The user name of the user that started the utilization session. |
| taskName | System.String | The name of the task that is running for the utilization session. |
| Name | Description |
|---|---|
| NationalInstruments.SystemLink.Clients.AssetManagement.AssetUtilizationStoreException | when the start utilization operations fails. |
| System.ObjectDisposedException | when this object was already disposed. |
| System.ArgumentNullException | if assetNames, utilizationCategory, |
userName or taskName are null. |
The system controller is automatically included in the utilization task.
NationalInstruments.SystemLink.Clients.AssetManagement
Concrete implementation of the IAssetUtilizationStoreAdapter that calls into the C++ dll of the asset utilization store API.
Create a new instance of AssetUtilizationStoreAdapter.
This constructor has no parameters.
End the asset utilization.
If the function succeeds, the return value is 0. Otherwise the return value is an error code.
| Name | Type | Description |
|---|---|---|
| utilizationUuid | System.String | UUID of the asset utilization to end. |
Start a new asset utilization.
Object containing the result of the start utilization operation.
| Name | Type | Description |
|---|---|---|
| assetNames | System.String | Names of the assets that are being utilized. |
| utilizationCategory | System.String | A string containing the category of the started utilization. |
| userName | System.String | The user name of the user that started the utilization session. |
| taskName | System.String | The name of the task that is running for the utilization session. |
Update the asset utilization.
If the function succeeds, the return value is 0. Otherwise the return value is an error code.
| Name | Type | Description |
|---|---|---|
| utilizationUuid | System.String | UUID of the asset utilization to update. |
Clean the start utilization operation result object.
| Name | Type | Description |
|---|---|---|
| utilizationResult | NationalInstruments.SystemLink.Clients.AssetManagement.InteropStartUtilizationResult | Object to clean. |
On dispose, clean up any resources used.
| Name | Type | Description |
|---|---|---|
| disposing | System.Boolean | Flag for disposing |
Inherit from parent.
This method has no parameters.
Generic destructor.
This method has no parameters.
Initialize the asset utilization store.
If the function succeeds, the return value is 0. Otherwise the return value is an error code.
This method has no parameters.
Shutdown the asset utilization store.
If the function succeeds, the return value is 0. Otherwise the return value is an error code.
This method has no parameters.
NationalInstruments.SystemLink.Clients.AssetManagement
Provides the exception that is thrown when an error occurs in asset utilization store.
Use this class to retrieve information regarding the error that ocurred.
Initializes a new exception with the given error code.
| Name | Type | Description |
|---|---|---|
| errorCode | System.Int32 | Error code. |
Initializes a new exception with the given message.
| Name | Type | Description |
|---|---|---|
| message | System.String | Exception message. |
Initializes a new exception with the given message and an inner exception.
| Name | Type | Description |
|---|---|---|
| message | System.String | Exception message. |
| innerException | System.Exception | Inner exception. |
Initializes a new exception with the given serialization info and streaming context.
| Name | Type | Description |
|---|---|---|
| serializationInfo | System.Runtime.Serialization.SerializationInfo | Serialization information. |
| streamingContext | System.Runtime.Serialization.StreamingContext | Streaming context. |
Initializes a new exception.
This constructor has no parameters.
The AssetUtilization error code corresponding to the exception.
Inherit from parent.
This method has no parameters.
NationalInstruments.SystemLink.Clients.AssetManagement
Class used to create IAssetUtilizationStore instances.
Create a new asset utilization store factory, given an asset utilization store adapter.
| Name | Type | Description |
|---|---|---|
| assetUtilizationStoreAdapter | NationalInstruments.SystemLink.Clients.AssetManagement.IAssetUtilizationStoreAdapter | Adapter for the asset utilization store implementation. |
Create a new asset utilization store factory.
This constructor has no parameters.
Create a new instance of IAssetUtilizationStore.
Newly created instance.
This method has no parameters.
| Name | Description |
|---|---|
| NationalInstruments.SystemLink.Clients.AssetManagement.AssetUtilizationStoreException | when the store initialization fails. |
Inherit from parent.
This method has no parameters.
Inherit from parent.
This method has no parameters.
NationalInstruments.SystemLink.Clients.AssetManagement
Interface for storing asset utilization data.
Starts a utilization task for all assets with the given information about the current running task.
An object containing the utilization that was started.
| Name | Type | Description |
|---|---|---|
| startUtilizationConfiguration | NationalInstruments.SystemLink.Clients.AssetManagement.StartUtilizationConfiguration | Configuration used to start a new utilization. |
| utilizationCategory | System.String | A string containing the category of the started utilization. |
| userName | System.String | The user name of the user that started the utilization session. |
| taskName | System.String | The name of the task that is running for the utilization session. |
| Name | Description |
|---|---|
| NationalInstruments.SystemLink.Clients.AssetManagement.AssetUtilizationStoreException | when the start utilization operations fails. |
| System.ObjectDisposedException | when this object was already disposed. |
| System.ArgumentNullException | if utilizationCategory, userName
|
or taskName are null. |
StartUtilization(startUtilizationConfiguration,assetName,utilizationCategory,userName,taskName) method
Starts a utilization task for the given asset with the given information about the current running task.
An object containing the utilization that was started.
| Name | Type | Description |
|---|---|---|
| startUtilizationConfiguration | NationalInstruments.SystemLink.Clients.AssetManagement.StartUtilizationConfiguration | Configuration used to start a new utilization. |
| assetName | System.String | A string containing the name of the asset that is being utilized. |
| utilizationCategory | System.String | A string containing the category of the started utilization. |
| userName | System.String | The user name of the user that started the utilization session. |
| taskName | System.String | The name of the task that is running for the utilization session. |
| Name | Description |
|---|---|
| NationalInstruments.SystemLink.Clients.AssetManagement.AssetUtilizationStoreException | when the start utilization operations fails. |
| System.ObjectDisposedException | when this object was already disposed. |
| System.ArgumentNullException | if assetName, utilizationCategory, |
userName or taskName are null. |
The system controller is automatically included in the utilization task.
StartUtilization(startUtilizationConfiguration,assetNames,utilizationCategory,userName,taskName) method
Starts a utilization task for the specified assets with the given information about the current running task.
An object containing the utilization that was started.
| Name | Type | Description |
|---|---|---|
| startUtilizationConfiguration | NationalInstruments.SystemLink.Clients.AssetManagement.StartUtilizationConfiguration | Configuration used to start a new utilization. |
| assetNames | System.Collections.Generic.IEnumerable{System.String} | A collection containing the name of the assets that are being utilized. |
| utilizationCategory | System.String | A string containing the category of the started utilization. |
| userName | System.String | The user name of the user that started the utilization session. |
| taskName | System.String | The name of the task that is running for the utilization session. |
| Name | Description |
|---|---|
| NationalInstruments.SystemLink.Clients.AssetManagement.AssetUtilizationStoreException | when the start utilization operations fails. |
| System.ObjectDisposedException | when this object was already disposed. |
| System.ArgumentNullException | if assetNames, utilizationCategory, |
userName or taskName are null. |
The system controller is automatically included in the utilization task.
NationalInstruments.SystemLink.Clients.AssetManagement
Adapter over the asset utilization store dll implementation.
End the asset utilization.
If the function succeeds, the return value is 0. Otherwise the return value is an error code.
| Name | Type | Description |
|---|---|---|
| utilizationUuid | System.String | UUID of the asset utilization to end. |
Start a new asset utilization.
Object containing the result of the start utilization operation.
| Name | Type | Description |
|---|---|---|
| assetNames | System.String | Names of the assets that are being utilized. |
| utilizationCategory | System.String | A string containing the category of the started utilization. |
| userName | System.String | The user name of the user that started the utilization session. |
| taskName | System.String | The name of the task that is running for the utilization session. |
Update the asset utilization.
If the function succeeds, the return value is 0. Otherwise the return value is an error code.
| Name | Type | Description |
|---|---|---|
| utilizationUuid | System.String | UUID of the asset utilization to update. |
Clean the start utilization operation result object.
| Name | Type | Description |
|---|---|---|
| utilizationResult | NationalInstruments.SystemLink.Clients.AssetManagement.InteropStartUtilizationResult | Object to clean. |
Initialize the asset utilization store.
If the function succeeds, the return value is 0. Otherwise the return value is an error code.
This method has no parameters.
Shutdown the asset utilization store.
If the function succeeds, the return value is 0. Otherwise the return value is an error code.
This method has no parameters.
NationalInstruments.SystemLink.Clients.AssetManagement
Interface used to create IAssetUtilizationStore instances.
Create a new instance of IAssetUtilizationStore.
Newly created instance.
This method has no parameters.
| Name | Description |
|---|---|
| NationalInstruments.SystemLink.Clients.AssetManagement.AssetUtilizationStoreException | when the store initialization fails. |
NationalInstruments.SystemLink.Clients.AssetManagement
Interface for handling ongoing asset utilization.
Gets the names of the utilized assets.
Gets the name of the task for the utilization.
Gets the name of the user that started the utilization.
Gets the category of the utilization.
Updates the utilization task with a heartbeat which means that the utilization task is still in progress.
This method has no parameters.
| Name | Description |
|---|---|
| NationalInstruments.SystemLink.Clients.AssetManagement.AssetUtilizationStoreException | when the update utilization operation fails. |
| System.ObjectDisposedException | when this object was already disposed. |
NationalInstruments.SystemLink.Clients.AssetManagement
Class containing the result of the store start utilization operation.
Error code returned by the Start Utilization operation.
Integer handle for Utilization Unique Identifier.
NationalInstruments.SystemLink.Clients.AssetManagement
Wrapper over the asset utilization store dll written in C++.
Obtain the full path of the Asset Management utilization store library based on the process bitness and Skyline install directory.
This method has no parameters.
NationalInstruments.SystemLink.Clients.AssetManagement
Configuration object used by IAssetUtilizationStore to create and start an utilization.
Flag for specifying whether to autogenerate heart beats
Heartbeat interval, in milliseconds.
Default configuration for a IStartedUtilization that has autogenerated heartbeats every 5 minutes.
This method has no parameters.
NationalInstruments.SystemLink.Clients.AssetManagement
Class containing an ongoing asset utilization.
Gets the names of the utilized assets.
Gets the task for the utilization.
Gets the user that started the utilization.
Gets the category of the utilization.
Ends the utilization task.
This method has no parameters.
Updates the utilization task with a heartbeat which means that the utilization task is still in progress.
This method has no parameters.
| Name | Description |
|---|---|
| NationalInstruments.SystemLink.Clients.AssetManagement.AssetUtilizationStoreException | when the update utilization operation fails. |
| System.ObjectDisposedException | when this object was already disposed. |