Skip to content

Commit

Permalink
basic application starting poc
Browse files Browse the repository at this point in the history
Signed-off-by: jace-roell <[email protected]>
  • Loading branch information
jace-roell committed Oct 1, 2024
1 parent 7d736ca commit 75126e6
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 4 deletions.
1 change: 1 addition & 0 deletions packages/cli/src/zostso/start/as-app/StartASApp.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ export default class Handler extends ZosTsoBaseHandler {
},
this.mTsoStart
);
console.log(response);
}
}
12 changes: 10 additions & 2 deletions packages/zostso/src/StartTsoApp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,16 @@ export class StartTsoApp {
// Address space is known
else
{
const response: string;
return undefined;
const endpoint = `${TsoConstants.RESOURCE}/app/${params.servletKey}/${params.appKey}`;
const apiResponse = await ZosmfRestClient.postExpectJSON<IStartASAppResponse>(
session,
endpoint,
[Headers.APPLICATION_JSON],
{
"startcmd": `${params.startupCommand} '&1 &2 ${params.queueID}'`
}
);
return apiResponse;
}
}
}
Expand Down
22 changes: 20 additions & 2 deletions packages/zostso/src/doc/IStartASAppResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,29 @@

export interface IStartASAppResponse {
/**
* True if the command was issued and the responses were collected.
* Version in response
* @type {boolean}
* @memberof IStartASAppResponse
*/
success: boolean;
version: string
/**
* Data from response
* @type {boolean}
* @memberof IStartASAppResponse
*/
tsoData: string[]
/**
* Reused boolean
* @type {boolean}
* @memberof IStartASAppResponse
*/
reused: boolean
/**
* Data from response
* @type {boolean}
* @memberof IStartASAppResponse
*/
timeout: boolean
/**
* Servlet key from IZosmfTsoResponse
* @type {string}
Expand Down

0 comments on commit 75126e6

Please sign in to comment.