gr.uoa.di.madgik.rr.element.execution
Class ExecutionServer

java.lang.Object
  extended by gr.uoa.di.madgik.rr.element.RRElement
      extended by gr.uoa.di.madgik.rr.element.execution.ExecutionServer
All Implemented Interfaces:
gr.uoa.di.madgik.rr.element.IRRElement

public class ExecutionServer
extends gr.uoa.di.madgik.rr.element.RRElement


Constructor Summary
ExecutionServer()
           
 
Method Summary
 String deepToString()
           
 void delete(boolean deleteDetails, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
 boolean exists(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
static Set<ExecutionServer> filterNodes(gr.uoa.di.madgik.commons.infra.nodefilter.Facet facet, gr.uoa.di.madgik.commons.infra.nodefilter.ConstraintType type, List<ExecutionServer> executionServers)
          Filters a list of Execution Servers, according to the Facet applied and the type of the constraint.
static List<ExecutionServer> getAll(boolean loadDetails)
           
 HostingNode getHostingNode()
           
 String getID()
           
 gr.uoa.di.madgik.rr.RRContext getISContext()
           
 ExecutionServerDao getItem()
           
static ExecutionServer getMatchingNode(boolean loadDetails, String requirementExpression, String rankingExpression)
           
static ExecutionServer getMatchingNode(boolean loadDetails, String requirementExpression, String rankingExpression, gr.uoa.di.madgik.commons.infra.nodeselection.NodeSelector selector)
           
static List<ExecutionServer> getMatchingNodes(boolean loadDetails, String requirementExpression, String rankingExpression)
           
static List<ExecutionServer> getMatchingNodes(boolean loadDetails, String requirementExpression, String rankingExpression, gr.uoa.di.madgik.commons.infra.nodeselection.NodeSelector selector)
           
 String getPort()
           
 Set<String> getScopes()
           
 boolean isEqual(gr.uoa.di.madgik.rr.element.IRRElement target, boolean includeDetails)
           
 boolean load(boolean loadDetails, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
 boolean load(boolean loadDetails, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType, boolean overridePrefetched)
           
 void setDirty()
           
 void setID(String id)
           
 void setPort(String port)
           
 void setScopes(Set<String> scopes)
           
 void store(boolean storeDetails, gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           
 
Methods inherited from class gr.uoa.di.madgik.rr.element.RRElement
delete, delete, exists, exists, load, load, store, store
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionServer

public ExecutionServer()
                throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException
Method Detail

getISContext

public gr.uoa.di.madgik.rr.RRContext getISContext()

getID

public String getID()

setID

public void setID(String id)

getScopes

public Set<String> getScopes()

setScopes

public void setScopes(Set<String> scopes)

getPort

public String getPort()

setPort

public void setPort(String port)

getHostingNode

public HostingNode getHostingNode()

getItem

public ExecutionServerDao getItem()

setDirty

public void setDirty()

load

public boolean load(boolean loadDetails,
                    gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType,
                    boolean overridePrefetched)
             throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

load

public boolean load(boolean loadDetails,
                    gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
             throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

delete

public void delete(boolean deleteDetails,
                   gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
            throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

store

public void store(boolean storeDetails,
                  gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
           throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

isEqual

public boolean isEqual(gr.uoa.di.madgik.rr.element.IRRElement target,
                       boolean includeDetails)
                throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

deepToString

public String deepToString()

exists

public boolean exists(gr.uoa.di.madgik.rr.RRContext.DatastoreType persistencyType)
               throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getAll

public static List<ExecutionServer> getAll(boolean loadDetails)
                                    throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getMatchingNodes

public static List<ExecutionServer> getMatchingNodes(boolean loadDetails,
                                                     String requirementExpression,
                                                     String rankingExpression)
                                              throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getMatchingNodes

public static List<ExecutionServer> getMatchingNodes(boolean loadDetails,
                                                     String requirementExpression,
                                                     String rankingExpression,
                                                     gr.uoa.di.madgik.commons.infra.nodeselection.NodeSelector selector)
                                              throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getMatchingNode

public static ExecutionServer getMatchingNode(boolean loadDetails,
                                              String requirementExpression,
                                              String rankingExpression,
                                              gr.uoa.di.madgik.commons.infra.nodeselection.NodeSelector selector)
                                       throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

getMatchingNode

public static ExecutionServer getMatchingNode(boolean loadDetails,
                                              String requirementExpression,
                                              String rankingExpression)
                                       throws gr.uoa.di.madgik.rr.ResourceRegistryException
Throws:
gr.uoa.di.madgik.rr.ResourceRegistryException

filterNodes

public static Set<ExecutionServer> filterNodes(gr.uoa.di.madgik.commons.infra.nodefilter.Facet facet,
                                               gr.uoa.di.madgik.commons.infra.nodefilter.ConstraintType type,
                                               List<ExecutionServer> executionServers)
                                        throws Exception
Filters a list of Execution Servers, according to the Facet applied and the type of the constraint.

Parameters:
facet - - The facet to apply to each node.
type - - The type of the constraint.
executionServers - - List of Execution Servers.
Returns:
- The list of all Execution Servers that match the necessary criteria.
Throws:
Exception


Copyright © 2013. All Rights Reserved.