|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlbg.resource.service.LiveResourceService
public class LiveResourceService
Live implementation of the Resource service, handling requests to a given Resource.
| Constructor Summary | |
|---|---|
protected |
LiveResourceService(LiveResource owner_resource)
Create a service for a resource. |
| Method Summary | |
|---|---|
int |
cacheCapacity()
|
void |
cancelTask()
Cancel the currently running task |
ResourceHandle |
createHandle()
Get a handle to the owner resource |
void |
delete_me_runTask(Task t)
Deprecated. |
long |
expectedTaskRuntime()
How much time should running this task take ? |
java.lang.String |
id()
|
boolean |
idle()
Get the state of the resource |
boolean |
isAlive()
Gets the Resource status |
Task |
runningTask()
Deprecated. |
boolean |
runTask(Task t,
GridData[][] working_set)
|
boolean |
setWorkingSet(GridData[][] working_set)
|
long |
taskStartTime()
Returns the Task start time in seconds |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected LiveResourceService(LiveResource owner_resource)
throws GridException
owner_resource - The resource concerned by this service
GridException| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
public ResourceHandle createHandle()
throws GridException
createHandle in interface ResourceServiceGridExceptionpublic java.lang.String id()
id in interface AbstractResourceHandlepublic int cacheCapacity()
cacheCapacity in interface AbstractResourceHandle
public boolean setWorkingSet(GridData[][] working_set)
throws GridException
setWorkingSet in interface AbstractResourceHandleGridException
public boolean runTask(Task t,
GridData[][] working_set)
throws GridException
runTask in interface AbstractResourceHandleGridExceptionpublic boolean idle()
idle in interface AbstractResourceHandlepublic boolean isAlive()
isAlive in interface AbstractResourceHandle@Deprecated public Task runningTask()
runningTask in interface AbstractResourceHandle
@Deprecated
public void delete_me_runTask(Task t)
throws GridException
t - The task to run
GridException
public void cancelTask()
throws GridException
cancelTask in interface AbstractResourceHandleGridException
public long expectedTaskRuntime()
throws GridException
GridExceptionpublic long taskStartTime()
taskStartTime in interface AbstractResourceHandle
|
Lightweight Bartering Grid | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.