orca.cod
Class CodSlice

java.lang.Object
  extended by orca.shirako.kernel.Slice
      extended by orca.cod.CodSlice
All Implemented Interfaces:
java.lang.Cloneable, ISerialize, ISlice
Direct Known Subclasses:
AuthorityCodSlice

public class CodSlice
extends Slice

Attributes and global state for a COD slice. One CodSlice object is attached to each COD instance of slices.Slice.

On a Service Manager, the CodSlice is created explicitly and primed with with desired parameters for the Slice. CodSlice installs these parameters in the Slice properties, and they are passed to the Authority in the Slice property list.

On an Authority, the CodSlice is created on first allocation of resources for the slice. Its attributes are determined from the Slice properties and their interaction with Site parameters and policies.


Field Summary
static java.lang.String PropertyHostPrefix
           
 
Fields inherited from class orca.shirako.kernel.Slice
controller, description, guard, guid, owner, PropertyClass, PropertyController, PropertyControllerClass, PropertyDescription, PropertyGuard, PropertyGuid, PropertyName, PropertyOwner, PropertyProperties, PropertyResourceType, PropertyType, reservations, resourceType, rsrcdata, slicename, type
 
Constructor Summary
CodSlice()
           
CodSlice(SliceID sliceID, java.lang.String name)
           
CodSlice(SliceID sliceID, java.lang.String name, ResourceData rd)
           
CodSlice(java.lang.String name)
          Constructor for Service Manager side, called from main.
CodSlice(java.lang.String name, ResourceData rd)
           
 
Method Summary
 java.lang.String getHostPrefix()
           
 void revisit(IReservation reservation, Node n)
          Reserve all soft resources held by this Node.
 void setHostPrefix(java.lang.String prefix)
          Set the host prefix.
 void transferIn(ResourceReservation reservation, Node node)
          Upcall from NodeGroup to transfer a node into a slice.
 void transferOut(IReservation reservation, Node node)
          Upcall from NodeGroup to transfer a node out of a slice.
 
Methods inherited from class orca.shirako.kernel.Slice
cloneRequest, createInstance, getConfigurationProperties, getController, getDescription, getLocalProperties, getName, getName, getOwner, getRequestProperties, getReservations, getReservationsArray, getResourceData, getResourceProperties, getResourceType, getSliceID, getSliceID, Guard, isBrokerClient, isBrokerClient, isClient, isClient, isEmpty, isInventory, isInventory, prepare, register, reset, revisit, save, save, setBrokerClient, setClient, setController, setDescription, setGuard, setInventory, setName, setOwner, setResourceData, setResourceType, softLookup, toString, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PropertyHostPrefix

public static final java.lang.String PropertyHostPrefix
See Also:
Constant Field Values
Constructor Detail

CodSlice

public CodSlice()

CodSlice

public CodSlice(java.lang.String name)
Constructor for Service Manager side, called from main.

Parameters:
name - name for this slice

CodSlice

public CodSlice(SliceID sliceID,
                java.lang.String name)

CodSlice

public CodSlice(java.lang.String name,
                ResourceData rd)

CodSlice

public CodSlice(SliceID sliceID,
                java.lang.String name,
                ResourceData rd)
Method Detail

setHostPrefix

public void setHostPrefix(java.lang.String prefix)
Set the host prefix.

Parameters:
prefix - the prefix

getHostPrefix

public java.lang.String getHostPrefix()

revisit

public void revisit(IReservation reservation,
                    Node n)
             throws java.lang.Exception
Reserve all soft resources held by this Node.

Parameters:
n - the node
resprop - reservation properties
Throws:
exception
java.lang.Exception

transferIn

public void transferIn(ResourceReservation reservation,
                       Node node)
                throws java.lang.Exception
Upcall from NodeGroup to transfer a node into a slice. Overridden by AuthoritySlice; nothing to do on SM.

Parameters:
node - the node object
resprop - reservation properties
Throws:
java.lang.Exception

transferOut

public void transferOut(IReservation reservation,
                        Node node)
                 throws java.lang.Exception
Upcall from NodeGroup to transfer a node out of a slice. Overridden by AuthoritySlice; nothing to do on SM.

Parameters:
node - the node object
resprop - reservation properties
Throws:
java.lang.Exception


Copyright © 2007 Network/Internet Computing Lab. All Rights Reserved.