org.gwe.api.impl
Class ServerAPI4AgentImpl

java.lang.Object
  extended by org.gwe.api.impl.BaseServerAPIImpl<API_TYPE,DOM_TYPE>
      extended by org.gwe.api.impl.PulsingServerAPIImpl<ServerAPI4Agent,AgentDomain>
          extended by org.gwe.api.impl.ServerAPI4AgentImpl
All Implemented Interfaces:
java.rmi.Remote, PulsingServerAPI, ServerAPI4Agent

public class ServerAPI4AgentImpl
extends PulsingServerAPIImpl<ServerAPI4Agent,AgentDomain>
implements ServerAPI4Agent

Since:
Aug 15, 2007
Author:
Marco Ruiz

Field Summary
 
Fields inherited from class org.gwe.api.impl.BaseServerAPIImpl
domain, remoteInterface
 
Fields inherited from interface org.gwe.api.PulsingServerAPI
DEFAULT_HEART_BEAT_PERIOD
 
Constructor Summary
ServerAPI4AgentImpl()
           
 
Method Summary
 DaemonRequest<?> getNextRequest(int allocId)
           
 DaemonRequest<?> getNextRequestAgain(int allocId)
           
 void processHeartBeatOverdue(java.lang.Object id)
           
 boolean reportAgentProblem(int allocId, java.lang.Exception exception)
           
 boolean reportRequestCompletion(int allocId, java.lang.String execId, java.io.Serializable result)
           
 boolean reserveAllocation(int allocId, ComputeResourceInfo compRes)
           
 
Methods inherited from class org.gwe.api.impl.PulsingServerAPIImpl
createExportableServerObject, disposeHeart, heartBeat
 
Methods inherited from class org.gwe.api.impl.BaseServerAPIImpl
bind, getDomain, setDomain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.gwe.api.PulsingServerAPI
heartBeat
 

Constructor Detail

ServerAPI4AgentImpl

public ServerAPI4AgentImpl()
Method Detail

reserveAllocation

public boolean reserveAllocation(int allocId,
                                 ComputeResourceInfo compRes)
                          throws java.rmi.RemoteException
Specified by:
reserveAllocation in interface ServerAPI4Agent
Throws:
java.rmi.RemoteException

getNextRequest

public DaemonRequest<?> getNextRequest(int allocId)
                                throws java.rmi.RemoteException
Specified by:
getNextRequest in interface ServerAPI4Agent
Throws:
java.rmi.RemoteException

getNextRequestAgain

public DaemonRequest<?> getNextRequestAgain(int allocId)
                                     throws java.rmi.RemoteException
Specified by:
getNextRequestAgain in interface ServerAPI4Agent
Throws:
java.rmi.RemoteException

reportRequestCompletion

public boolean reportRequestCompletion(int allocId,
                                       java.lang.String execId,
                                       java.io.Serializable result)
                                throws java.rmi.RemoteException
Specified by:
reportRequestCompletion in interface ServerAPI4Agent
Throws:
java.rmi.RemoteException

reportAgentProblem

public boolean reportAgentProblem(int allocId,
                                  java.lang.Exception exception)
                           throws java.rmi.RemoteException
Specified by:
reportAgentProblem in interface ServerAPI4Agent
Throws:
java.rmi.RemoteException

processHeartBeatOverdue

public void processHeartBeatOverdue(java.lang.Object id)
Specified by:
processHeartBeatOverdue in class PulsingServerAPIImpl<ServerAPI4Agent,AgentDomain>


Copyright © 2007-2009. All Rights Reserved.