FeedUtil
An instance of this class represents Feed utility service
Static Method Summary
Static Public Methods | ||
public static |
createService(chrisClient: Client): FeedUtil Create a service object of this class |
Constructor Summary
Public Constructor | ||
public |
constructor(chrisClient: Client) Constructor |
Member Summary
Public Members | ||
public |
chrisClient: * |
Method Summary
Public Methods | ||
public |
async createAndZipFeed(dataPath: String, feedName: String, zipName: String): Promise<Feed> A method to create, zip & download a new feed |
|
public |
async createFeed(dataPath: String, feedName: String): Promise<Feed> Create a new feed in CUBE |
|
public |
Get a feed given it's id |
|
public |
async getProgress(feed: Object): Promise<number> Get the progress of a given feed |
|
public |
async getRunTime(feed: Object): Promise<number> Get the cumulative run time of a given feed |
|
public |
Get the total file size of a given feed |
Static Public Methods
Public Constructors
public constructor(chrisClient: Client) source
Constructor
Params:
Name | Type | Attribute | Description |
chrisClient | Client | A Chris Client Object |
Public Members
public chrisClient: * source
Public Methods
public async createAndZipFeed(dataPath: String, feedName: String, zipName: String): Promise<Feed> source
A method to create, zip & download a new feed
public async createFeed(dataPath: String, feedName: String): Promise<Feed> source
Create a new feed in CUBE
public async getFeed(feedId: number): Promise<Feed> source
Get a feed given it's id
Params:
Name | Type | Attribute | Description |
feedId | number | A Feed id |
public async getProgress(feed: Object): Promise<number> source
Get the progress of a given feed
Params:
Name | Type | Attribute | Description |
feed | Object | A Feed object |