node-deadline
Version:
Module to interface with Deadline Compute Management System by Thinkbox Software
58 lines (36 loc) • 2.01 kB
Markdown
Ownes all functionality related to deadline slaves.
Base function for retrieving slave information from Deadline, takes an options object defining which slaves to get.
With no options or an empty options object, this function returns all slaves.
**NOTE:** Deadline.slaves.get is also provided under Deadline.get.slaves for better code clarity if desired.
(ie: `deadline.slaves.get.by.id === deadline.get.jobs.by.id`)
**id:** *get only slaves with the given names(s)* ( string | array[string] )
```
{ name: "Slave01" }
{ name: ["Slave01", "Slave02"] }
```
Called when the query is complete, takes two parameters: error and results
- **error:** a Deadline.Error object or null if OK<br/>
- **results:** an array of jobs mathing the request, empty if none found, null if there was a fatal error
This object provides all of the above available options in Deadline.slaves.get
as individual functions for better code clarity, if applicable
```javascript
deadline.slaves.get.by.id( "55b911f1ec46630980bba101" );
```
The same as Deadline.slaves.get() but mathches any of the given properties rather than all of them.
Called when the query is complete, takes two parameters: error and results
- **error:** a Deadline.Error object or null if OK<br/>
- **results:** an array of slaves mathing the request, empty if none found, null if there was a fatal error
Accepts a raw MongoDB query to use in the
[](http://mongodb.github.io/node-mongodb-native/2.0/api/Collection.html#find) method.
*This methond is used internally by all other get methods, and should not be used when another suitable get method exists for
the query in question*
Represents a singular ative slave from the Deadline database ( [readme](./Slave.md) ).