Native5 APIs Native5 APIs
  • Namespace
  • Class
  • Tree

Namespaces

  • Native5
    • Services
      • Identity
      • Job
      • Messaging
      • Users
    • Users
  • PHP

Classes

  • Job
  • JobManager

Class JobManager

JobManager

Native5\Api\ApiClient
Extended by Native5\Services\Job\JobManager
Namespace: Native5\Services\Job
Package: Native5\Services\Jobs
Category: Jobs
Copyright: 2012 Native5. All Rights Reserved
License: attached NOTICE.md for details
Author: Shamik Datta <shamik@native5.com>
Version: Release: 1.0
Link: http://www.docs.native5.com
Located at Native5/Services/Job/JobManager.php

Methods summary

public
# __construct( )
public boolean
# createJob( string $serviceName )

createJob Create an entry for a long running job

createJob Create an entry for a long running job

Parameters

$serviceName
string
$serviceName

Returns

boolean
true if successful, false otherwise

Assert

(null) throws Exception
(array()) throws Exception
("testingJob") != null
public
# deleteJob( mixed $jobId )
public
# updateJobState( mixed $jobId, mixed $state )
public
# updateJobStatus( mixed $jobId, mixed $status )
public
# setJobResult( mixed $jobId, mixed $result )
public @see
# getJob( string $jobId )

getJob Get details of a long running job entry

getJob Get details of a long running job entry

Parameters

$jobId
string
$jobId The job Id

Returns

@see
JobStatus

Assert

(null) throws Exception
(array()) throws Exception

Magic methods summary

Constants summary

string API_PATH 'job/'
#
string CREATE_JOB 'create/'
#
string GET_JOB ''
#
string UPDATE_JOB_STATE 'state/'
#
string UPDATE_JOB_STATUS 'status/'
#
string SET_JOB_RESULT 'result/'
#
string DELETE_JOB 'delete/'
#