Hasoop
Hasoop client, get your own instance by creating an instance.
Constructor Summary
Public Constructor | ||
public |
constructor(config: *) |
Method Summary
Public Methods | ||
public |
async createJob(config: *): * create job. |
|
public |
createLink(config: *): * create link. |
|
public |
deleteJob(jobName: *): * delete job by job name. |
|
public |
async deleteJobAll(): * delete all jobs on sqoop server. |
|
public |
deleteLink(linkName: *): * delete link by link name. |
|
public |
async deleteLinkAll(): * delete all links on sqoop server. |
|
public |
formatUrl(basicPath: *, queryObject: *, otherPath: *): * use some param to create a sqoop rest api url. |
|
public |
getConnectorAll(): * get infos of all connectors. |
|
public |
getConnectorByConnectorName(connectorName: *): * get info of connector by connector name. |
|
public |
getDriver(): * get infos of all drivers. |
|
public |
getJobAll(): * get infos of all jobs. |
|
public |
getJobByConnectorName(connectorName: *): * get info of job by connector name. |
|
public |
getJobByJobName(JobName: *): * get info of job by job name. |
|
public |
getLinkAll(): * get infos of all links. |
|
public |
getLinkByConnectorName(connectorName: *): * get info of link by connector name. |
|
public |
getLinkByLinkName(linkName: *): * get info of link by link name. |
|
public |
getSubmissionAll(): * get infos of all submissions. |
|
public |
getSubmissionByJobName(jobName: *): * get info of submission by job name. |
|
public |
getVersion(): * get sqoop server version. |
|
public |
jobStatus(jobName: *): * get status of job by job name. |
|
public |
startJob(jobName: *): * start job by job name. |
|
public |
stopJob(jobName: *): * stop job by job name. |
|
public |
async updateJobConfig(oldJobName: *, config: *): * update job config. |
|
public |
updateJobDisable(jobName: *): * change job to disable by job name. |
|
public |
updateJobEnable(jobName: *): * change job to enable by job name. |
|
public |
updateLinkConfig(oldLinkName: *, config: *): * update link config. |
|
public |
updateLinkDisable(linkName: *): * change link to disable by link name. |
|
public |
updateLinkEnable(linkName: *): * change link to enable by link name. |
Public Constructors
public constructor(config: *) source
Params:
Name | Type | Attribute | Description |
config | * |
Public Members
public host: * source
public port: * source
public userName: * source
public weapp: * source
Public Methods
public async createJob(config: *): * source
create job.
Params:
Name | Type | Attribute | Description |
config | * |
Return:
* |
public createLink(config: *): * source
create link.
Params:
Name | Type | Attribute | Description |
config | * |
Return:
* |
public deleteJob(jobName: *): * source
delete job by job name.
Params:
Name | Type | Attribute | Description |
jobName | * |
Return:
* |
public deleteLink(linkName: *): * source
delete link by link name.
Params:
Name | Type | Attribute | Description |
linkName | * |
Return:
* |
public formatUrl(basicPath: *, queryObject: *, otherPath: *): * source
use some param to create a sqoop rest api url.
Params:
Name | Type | Attribute | Description |
basicPath | * | ||
queryObject | * | ||
otherPath | * |
Return:
* |
public getConnectorByConnectorName(connectorName: *): * source
get info of connector by connector name.
Params:
Name | Type | Attribute | Description |
connectorName | * |
Return:
* |
public getJobByConnectorName(connectorName: *): * source
get info of job by connector name.
Params:
Name | Type | Attribute | Description |
connectorName | * |
Return:
* |
public getJobByJobName(JobName: *): * source
get info of job by job name.
Params:
Name | Type | Attribute | Description |
JobName | * |
Return:
* |
public getLinkByConnectorName(connectorName: *): * source
get info of link by connector name.
Params:
Name | Type | Attribute | Description |
connectorName | * |
Return:
* |
public getLinkByLinkName(linkName: *): * source
get info of link by link name.
Params:
Name | Type | Attribute | Description |
linkName | * |
Return:
* |
public getSubmissionByJobName(jobName: *): * source
get info of submission by job name.
Params:
Name | Type | Attribute | Description |
jobName | * |
Return:
* |
public jobStatus(jobName: *): * source
get status of job by job name.
Params:
Name | Type | Attribute | Description |
jobName | * |
Return:
* |
public startJob(jobName: *): * source
start job by job name.
Params:
Name | Type | Attribute | Description |
jobName | * |
Return:
* |
public stopJob(jobName: *): * source
stop job by job name.
Params:
Name | Type | Attribute | Description |
jobName | * |
Return:
* |
public async updateJobConfig(oldJobName: *, config: *): * source
update job config.
Params:
Name | Type | Attribute | Description |
oldJobName | * | ||
config | * |
Return:
* |
public updateJobDisable(jobName: *): * source
change job to disable by job name.
Params:
Name | Type | Attribute | Description |
jobName | * |
Return:
* |
public updateJobEnable(jobName: *): * source
change job to enable by job name.
Params:
Name | Type | Attribute | Description |
jobName | * |
Return:
* |
public updateLinkConfig(oldLinkName: *, config: *): * source
update link config.
Params:
Name | Type | Attribute | Description |
oldLinkName | * | ||
config | * |
Return:
* |
public updateLinkDisable(linkName: *): * source
change link to disable by link name.
Params:
Name | Type | Attribute | Description |
linkName | * |
Return:
* |
public updateLinkEnable(linkName: *): * source
change link to enable by link name.
Params:
Name | Type | Attribute | Description |
linkName | * |
Return:
* |