Namespace: Consultingwerk.Studio.Pasoe
Class 
PasoeManager Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:PasoeManager
Purpose:Get information or trim agents of a PASOE instance.
Description:Uses the OpenEdge HTTP client classes. Collects all
information in one dataset.
Author(s):Richard Kelters / Consultingwerk Ltd.
Created:Wed Jan 31 12:07:45 CET 2018



Top Method Summary
Options Name Purpose
+ ActivateObjectTracking (character) Turn on ABLObjects tracking
- CreateClientRecord (JsonObject) Create an eClient record
- CreateMetricsRecord (JsonObject) Create an eMetrics record
- CreateSessionRecord (JsonObject) Create an eSession record
- CreateUrlRecord (character, character) Create an eUrl record.
+ DeactivateObjectTracking (character) Turn off ABLObjects tracking
+ GetAgentRequests (character, dataset) Retrieve agent request information from PASOE
+ GetAgents (dataset) Retrieve agent(s) information from PASOE
+ GetAgentSessions (character, dataset) Retrieve agent session information from PASOE
+ GetApplications (dataset) Retrieve application(s) from PASOE
+ GetClients (dataset) Retrieve client(s) information from PASOE
+ GetMetrics (dataset) Retrieve metrics from PASOE
- OpenEdge.Net.HTTP.IHttpResponse GetResponse (character, character, Credentials) Does a Get or Delete request to a PASOE
+ GetSessions (dataset) Retrieve session(s) information from PASOE
+ ObjectTrackingStatus (character) Check ABLObjects tracking
- OpenEdge.Net.HTTP.IHttpResponse PasoePidRequest (character, character, character, character) Does a request to https address and/or http
- OpenEdge.Net.HTTP.IHttpResponse PasoeRequest (character, character) Does a request to https address and/or http
- OpenEdge.Net.HTTP.IHttpResponse PasoeRequest (character, character, logical) Does a request to https address and/or http
+ QueryPasoe (dataset) Get all the information of a PASOE application
+ ReportObjectTracking (character, logical) Report ABLObjects tracking
+ TrimAgents (dataset) Trim agents, first get a list of agents then delete each one
- CHARACTER Url (logical, character, integer) Builds the url for the oemanager requests
- CHARACTER Url (logical, character, integer, character, character) Builds the url for the oemanager requests
+ VerifyAgent (character) Verify the agent PID
+ VerifyAppName () Verify the application name if the name is needed to execute PasoeManager functionality

Top Constructor Summary
Options Name Purpose
+ PasoeManager (character, character, character, integer, character) Public constructor with all necessary properties as parameter

Top Property Summary
Options Name Purpose
+ CHARACTER AppName
+ OpenEdge.Net.HTTP.Credentials Credentials
+ CHARACTER HostName
- INTEGER LastStatusCode
- CHARACTER LastStatusReason
+ CHARACTER LastUrlUsed
- CHARACTER Password
+ INTEGER PortNumber
+ CHARACTER UserName


Method Detail
Top

PUBLIC ActivateObjectTracking (character)

Purpose: Turn on ABLObjects tracking
Notes:

Parameters:
pcAgentPid CHARACTER
Character Process ID of the agent
Top

PRIVATE CreateClientRecord (JsonObject)

Purpose: Create an eClient record
Notes:

Parameters:
poClient Progress.Json.ObjectModel.JsonObject
JsonObject with Client request information
Top

PRIVATE CreateMetricsRecord (JsonObject)

Purpose: Create an eMetrics record
Notes:

Parameters:
poMetrics Progress.Json.ObjectModel.JsonObject
JsonObject with PASOE metrics
Top

PRIVATE CreateSessionRecord (JsonObject)

Purpose: Create an eSession record
Notes:

Parameters:
poSession Progress.Json.ObjectModel.JsonObject
JsonObject with Session request information
Top

PRIVATE CreateUrlRecord (character, character)

Purpose: Create an eUrl record.
Notes:

Parameters:
pcIdentifier CHARACTER
could be agents, clients, metrics or sessions.
pcLastUrlUsed CHARACTER
Url.
Top

PUBLIC DeactivateObjectTracking (character)

Purpose: Turn off ABLObjects tracking
Notes:

Parameters:
pcAgentPid CHARACTER
Character Process ID of the agent
Top

PUBLIC GetAgentRequests (character, dataset)

Purpose: Retrieve agent request information from PASOE
Notes: Creates eAgentRequest records and 1 eUrl record

Parameters:
pcAgentPid CHARACTER
Character Process ID of the agent
dsPasoeManager DATASET dsPasoeManager
Dataset with eAgentRequest records and one eUrl records
Top

PUBLIC GetAgents (dataset)

Purpose: Retrieve agent(s) information from PASOE
Notes: Creates eAgent records and 1 eUrl record

Parameters:
dsPasoeManager DATASET dsPasoeManager
Dataset with eAgents records and one eUrl records
Top

PUBLIC GetAgentSessions (character, dataset)

Purpose: Retrieve agent session information from PASOE
Notes: Creates eAgentSession records and 1 eUrl record

Parameters:
pcAgentPid CHARACTER
Character Process ID of the agent
dsPasoeManager DATASET dsPasoeManager
Dataset with eAgentSession records and one eUrl records
Top

PUBLIC GetApplications (dataset)

Purpose: Retrieve application(s) from PASOE
Notes: Creates eApplication records and 1 eUrl record

Parameters:
dsPasoeManager DATASET dsPasoeManager
Dataset with eApplication records and one eUrl records
Top

PUBLIC GetClients (dataset)

Purpose: Retrieve client(s) information from PASOE
Notes: Creates eClient records and 1 eUrl record

Parameters:
dsPasoeManager DATASET dsPasoeManager
Dataset with eClients records and one eUrl records
Top

PUBLIC GetMetrics (dataset)

Purpose: Retrieve metrics from PASOE
Notes: Creates an eMetrics record and 1 eUrl record

Parameters:
dsPasoeManager DATASET dsPasoeManager
Dataset with one Metrics record and one eUrl records
Top

PRIVATE OpenEdge.Net.HTTP.IHttpResponse GetResponse (character, character, Credentials)

Purpose: Does a Get or Delete request to a PASOE
Notes:

Parameters:
pcOperation CHARACTER
Either Get or Delete, the latter is used for trimming agents
pcUrl CHARACTER
Http(s) address
poCredentials OpenEdge.Net.HTTP.Credentials
Username password object
Returns OpenEdge.Net.HTTP.IHttpResponse
IHttpResponse Contains json formatted data
Top

PUBLIC GetSessions (dataset)

Purpose: Retrieve session(s) information from PASOE
Notes: Creates eSession records and 1 eUrl record

Parameters:
dsPasoeManager DATASET dsPasoeManager
Dataset with eSessions records and one eUrl records
Top

PUBLIC ObjectTrackingStatus (character)

Purpose: Check ABLObjects tracking
Notes:

Parameters:
pcAgentPid CHARACTER
Character Process ID of the agent
Top

PRIVATE OpenEdge.Net.HTTP.IHttpResponse PasoePidRequest (character, character, character, character)

Purpose: Does a request to https address and/or http
Notes: Try http first if http fails try https.
If both fail a combined error of both fails is thrown.

Parameters:
pcOperation CHARACTER
Either Get or Delete, the latter is used for trimming agents
pcAction CHARACTER
Action could be agents, clients, metrics or sessions
pcPid CHARACTER
PID Identifier
pcAttribute CHARACTER
Attribute could be session or requestes
Returns OpenEdge.Net.HTTP.IHttpResponse
IHttpResponse Contains json formatted data
Top

PRIVATE OpenEdge.Net.HTTP.IHttpResponse PasoeRequest (character, character)

Purpose: Does a request to https address and/or http
Notes: Try http first if http fails try https.
If both fail a combined error of both fails is thrown.

Parameters:
pcAction CHARACTER
Action could be agents, clients, metrics or sessions
pcOperation CHARACTER
Either Get or Delete, the latter is used for trimming agents
Returns OpenEdge.Net.HTTP.IHttpResponse
IHttpResponse Contains json formatted data
Top

PRIVATE OpenEdge.Net.HTTP.IHttpResponse PasoeRequest (character, character, logical)

Purpose: Does a request to https address and/or http
Notes: Try http first if http fails try https.
If both fail a combined error of both fails is thrown.

Parameters:
pcAction CHARACTER
Action could be agents, clients, metrics or sessions
pcOperation CHARACTER
Either Get or Delete, the latter is used for trimming agents
plSecure LOGICAL
indicates if a secure or a non secure connection was used
Returns OpenEdge.Net.HTTP.IHttpResponse
IHttpResponse Contains json formatted data
Top

PUBLIC QueryPasoe (dataset)

Purpose: Get all the information of a PASOE application
Notes:

Parameters:
dsPasoeManager DATASET dsPasoeManager
dataset with eAgent, eClient, eMetrics, eSessions and eUrl records
Top

PUBLIC ReportObjectTracking (character, logical)

Purpose: Report ABLObjects tracking
Notes:

Parameters:
pcAgentPid CHARACTER
Character Process ID of the agent
plConsole LOGICAL
Logical indator if console output should be used
Top

PUBLIC TrimAgents (dataset)

Purpose: Trim agents, first get a list of agents then delete each one
Notes:

Parameters:
dsPasoeManager DATASET dsPasoeManager
dataset with eUrl and eAgent records
Top

PRIVATE CHARACTER Url (logical, character, integer)

Purpose: Builds the url for the oemanager requests
Notes: Sets the property LastUrlUsed.

Parameters:
plSecure LOGICAL
Try for https/false for http
pcHostName CHARACTER
Hostname, ipaddress or domain
piPortNumber INTEGER
Portnumber
Returns CHARACTER
HTTP(S) address
Top

PRIVATE CHARACTER Url (logical, character, integer, character, character)

Purpose: Builds the url for the oemanager requests
Notes: Sets the property LastUrlUsed.

Parameters:
plSecure LOGICAL
Try for https/false for http
pcHostName CHARACTER
Hostname, ipaddress or domain
piPortNumber INTEGER
Portnumber
pcAppName CHARACTER
PASOE application name
pcAction CHARACTER
action could be agents, clients, metrics or sessions
Returns CHARACTER
HTTP(S) address
Top

PUBLIC VerifyAgent (character)

Purpose: Verify the agent PID
Notes: if the agent PID is not available display a list of available agent PIDs

Parameters:
pcAgentPid CHARACTER
Process ID of the agent
Top

PUBLIC VerifyAppName ()

Purpose: Verify the application name if the name is needed to execute PasoeManager functionality
Notes: Verifies if the application name exists, else lists all available applications



Constructor Detail
Top

PUBLIC PasoeManager (character, character, character, integer, character)

Purpose: Public constructor with all necessary properties as parameter
Notes:

Parameters:
pcUserName CHARACTER
Username used for credentials object
pcPassword CHARACTER
Password used for credentials object
pcHostName CHARACTER
Hostname, ipaddress or domain
piPortNumber INTEGER
Portnumber
pcAppName CHARACTER
PASOE application name


Property Detail
Top

PUBLIC CHARACTER AppName


Returns CHARACTER
Top

PUBLIC OpenEdge.Net.HTTP.Credentials Credentials


Returns OpenEdge.Net.HTTP.Credentials
Top

PUBLIC CHARACTER HostName


Returns CHARACTER
Top

PRIVATE INTEGER LastStatusCode


Returns INTEGER
Top

PRIVATE CHARACTER LastStatusReason


Returns CHARACTER
Top

PUBLIC CHARACTER LastUrlUsed


Returns CHARACTER
Top

PRIVATE CHARACTER Password


Returns CHARACTER
Top

PUBLIC INTEGER PortNumber


Returns INTEGER
Top

PUBLIC CHARACTER UserName


Returns CHARACTER


ProDataset Detail

ProDataset dsPasoeManager

Member tables: eMetrics, eAgent, eDeletedAgent, eSession, eClient, eUrl, eApplication, eAgentSessions, eAgentRequests


Temp-Table Detail

Temp-Table eAgent

Defined in:

Temp-Table eAgentRequests

Defined in:

Temp-Table eAgentSessions

Defined in:

Temp-Table eApplication

Defined in:

Temp-Table eClient

Defined in:

Temp-Table eDeletedAgent

Defined in:

Temp-Table eMetrics

Defined in:

Temp-Table eSession

Defined in:

Temp-Table eUrl

Defined in:


©2006-2020 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       04.02.2020 23:32:44