mirror of https://github.com/deavmi/tasky.git
Added stub method for future usage along with comments related to it
This commit is contained in:
parent
743744410c
commit
8f8a1e724f
|
@ -48,6 +48,22 @@ public final class Engine : Thread
|
||||||
start();
|
start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Starts the Tasky engine
|
||||||
|
*
|
||||||
|
* FIXME: Pivot to using this
|
||||||
|
* FIXME: This code should be private and rather called at the beginning
|
||||||
|
* of `.start()`
|
||||||
|
*/
|
||||||
|
public void startTasky()
|
||||||
|
{
|
||||||
|
/* Start the event engine */
|
||||||
|
//evEngine.start();
|
||||||
|
|
||||||
|
/* TODO: TManager should not start immediately either I guess */
|
||||||
|
//tmanager.start();
|
||||||
|
}
|
||||||
|
|
||||||
public class TaskyEvent : Event
|
public class TaskyEvent : Event
|
||||||
{
|
{
|
||||||
private byte[] payload;
|
private byte[] payload;
|
||||||
|
@ -270,12 +286,20 @@ public final class Engine : Thread
|
||||||
|
|
||||||
Engine e = new Engine(clientSocket);
|
Engine e = new Engine(clientSocket);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Setup the job types that are wanted
|
||||||
|
*/
|
||||||
e.registerDescriptor(jobType);
|
e.registerDescriptor(jobType);
|
||||||
e.registerDescriptor(jobType2);
|
e.registerDescriptor(jobType2);
|
||||||
|
|
||||||
|
|
||||||
|
/* TODO: Use this in future */
|
||||||
|
// e.start();
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Await the expected result, but if this does not complete
|
* Await the expected result, but if this does not complete
|
||||||
* within 4 seconds then expect it failed
|
* within 4 seconds then expect it failed
|
||||||
|
|
Loading…
Reference in New Issue