Namespace: OpenEdge.DataAdmin.ServerCommand
Class
ProCommand
Parent classes:
Inherits: Progress.Lang.Object
Implements: OpenEdge.DataAdmin.ServerCommand.IServerCommand

/* Copyright (c) 2011 by progress Software Corporation.
/*
/* all rights reserved. no part of this program or document
/* may be reproduced in any form or by any means without
/* permission in writing from progress Software Corporation.
Purpose:Abstract class that executes opsys commands silently
and picks up errors.
Author(s):hdaniels
Created:Tue Jul 12 16:25:38 EDT 2011
Notes:Subclasses
Purpose:
Notes:




Method Summary
Options Name Purpose
CheckStatus (character) /** Throws an error with error text from the passed command output if necessary @param pcMessage chr(10) separated list of output from command Subclasses override this to handle utility specific messages The default assumes the following --------------------------- OpenEdge Release ...... as of Fri Jul 8 19:02:09 EDT 2011 <utility text> (12345) Do you want to continue (y/n)? (13706) ------ or (the openedge release is not always there even for the same utility) --------------------------- <utility text> (12345) Do you want to continue (y/n)? (13706) ------ The last line is assumed if PromptValue is set **/
Execute (IUtilityRequest)
CHARACTER GetCommandParameters (IUtilityRequest)
CHARACTER GetDLC ()
INTEGER GetErrorNumber (character)
OpenEdge.DataAdmin.Message.IUtilityResponse GetResponse ()
LOGICAL IsPrompt (character) /* does the text end with ? or parenthesis but not number (y/n) */
RunCommand (character)

Constructor Summary
Options Name Purpose
ProCommand (character)

Property Summary
Options Name Purpose
CHARACTER CommandFullName
CHARACTER CommandName
OpenEdge.DataAdmin.DataSource.DatabaseInfo DatabaseInfo
CHARACTER DatabaseName
CHARACTER ProgressHeaderStart
CHARACTER PromptValue
CHARACTER Slash
LOGICAL UseBatFile


Method Detail
Top

CheckStatus (character)

Purpose:
Throws an error with error text from the passed command output if necessary
Subclasses override this to handle utility specific messages
The default assumes the following
OpenEdge Release ...... as of Fri Jul 8 19:02:09 EDT 2011
<utility text> (12345)
Do you want to continue (y/n)? (13706)
or (the openedge release is not always there even for the same utility)
<utility text> (12345)
Do you want to continue (y/n)? (13706)
The last line is assumed if PromptValue is set
Parameters:
pcMessage CHARACTER
Top

Execute (IUtilityRequest)

Parameters:
prequest OpenEdge.DataAdmin.Message.IUtilityRequest
Top

CHARACTER GetCommandParameters (IUtilityRequest)

Parameters:
pRequest OpenEdge.DataAdmin.Message.IUtilityRequest
Returns CHARACTER
Top

CHARACTER GetDLC ()

Returns CHARACTER
Top

INTEGER GetErrorNumber (character)

Parameters:
pcMessage CHARACTER
Returns INTEGER
Top

OpenEdge.DataAdmin.Message.IUtilityResponse GetResponse ()

Returns OpenEdge.DataAdmin.Message.IUtilityResponse
Top

LOGICAL IsPrompt (character)

/* does the text end with ? or parenthesis but not number (y/n)
Parameters:
pcMessage CHARACTER
Returns LOGICAL
Top

RunCommand (character)

Parameters:
pcCommand CHARACTER


Constructor Detail
Top

ProCommand (character)

Parameters:
pcdbname CHARACTER


Property Detail
Top

CHARACTER CommandFullName

Returns CHARACTER
Top

CHARACTER CommandName

Returns CHARACTER
Top

OpenEdge.DataAdmin.DataSource.DatabaseInfo DatabaseInfo

Returns OpenEdge.DataAdmin.DataSource.DatabaseInfo
Top

CHARACTER DatabaseName

Returns CHARACTER
Top

CHARACTER ProgressHeaderStart

Returns CHARACTER
Top

CHARACTER PromptValue

Returns CHARACTER
Top

CHARACTER Slash

Returns CHARACTER
Top

LOGICAL UseBatFile

Returns LOGICAL


Copyright © 2022 Progress Software Corporation. All rights Reserved.

Progress® OpenEdge® Release 11.7.15