Lightweight Bartering Grid

lbg.peer.service
Interface AbstractInternalPeerHandle

All Known Subinterfaces:
InternalPeerHandle, PeerService
All Known Implementing Classes:
LivePeerHandle, LivePeerService, SimulatedPeerHandle, SimulatedPeerService, SimulatedWithCloningPeerService, TestPeerHandle

public interface AbstractInternalPeerHandle

Author:
Cyril Briquet

Method Summary
 void addResource(ResourceHandle rh, int power)
           
 void preemptLocalTaskOnLocalResource(Task t, byte[] logs)
           
 void preemptSupplyingTaskOnLocalResource(java.lang.String consumer_id, Task t, byte[] logs)
           
 void removeResource(ResourceHandle rh)
           
 int resourcePort()
           
 void uploadLocallyCompletedTask(Task t)
           
 

Method Detail

resourcePort

int resourcePort()

addResource

void addResource(ResourceHandle rh,
                 int power)
                 throws GridException
Throws:
GridException

removeResource

void removeResource(ResourceHandle rh)
                    throws GridException
Throws:
GridException

preemptLocalTaskOnLocalResource

void preemptLocalTaskOnLocalResource(Task t,
                                     byte[] logs)
                                     throws GridException
Throws:
GridException

preemptSupplyingTaskOnLocalResource

void preemptSupplyingTaskOnLocalResource(java.lang.String consumer_id,
                                         Task t,
                                         byte[] logs)
                                         throws GridException
Throws:
GridException

uploadLocallyCompletedTask

void uploadLocallyCompletedTask(Task t)
                                throws GridException
Throws:
GridException

Lightweight Bartering Grid

Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.