|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlbg.peer.core.rms.ResourceUsageData
public class ResourceUsageData
Helper class of ResourceManager. Stores usage statistics and WorkingSet of target Resource.
Field Summary | |
---|---|
java.lang.String |
id
|
ResourceHandle |
rh
|
WorkingSet |
working_set
|
Constructor Summary | |
---|---|
ResourceUsageData(Peer managed_peer,
ResourceHandle rh,
ResourceDataTracker data_tracker)
|
Method Summary | |
---|---|
long |
getStateChangedTime()
Returns state change time of the monitored Resource. |
long |
getTotalBusyLocalTime()
Returns total busy Local time of the monitored Resource. |
long |
getTotalBusySupplyingTime()
Returns total busy Supplying time of the monitored Resource. |
long |
getTotalIdleTime()
Returns total idle time of the monitored Resource. |
Task |
runningTask()
|
ResourceState |
state()
|
java.lang.String |
toString()
|
void |
updateTotalBusyLocalTime()
Updates total busy Local time of the monitored Resource. |
void |
updateTotalBusySupplyingTime()
Updates total busy Supplying time of the monitored Resource. |
void |
updateTotalIdleTime(ResourceState state,
Task t)
Updates total idle time of the monitored Resource. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final WorkingSet working_set
public final java.lang.String id
public final ResourceHandle rh
Constructor Detail |
---|
public ResourceUsageData(Peer managed_peer, ResourceHandle rh, ResourceDataTracker data_tracker) throws GridException
GridException
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public ResourceState state()
public Task runningTask() throws GridException
GridException
public long getStateChangedTime()
public long getTotalIdleTime()
public long getTotalBusyLocalTime()
public long getTotalBusySupplyingTime()
public void updateTotalIdleTime(ResourceState state, Task t) throws GridException
state
- new state monitored Resourcet
- running Task
GridException
- if a parameter is illegalpublic void updateTotalBusyLocalTime() throws GridException
GridException
public void updateTotalBusySupplyingTime() throws GridException
GridException
|
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.