|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorca.shirako.plugins.ShirakoPlugin
orca.cod.plugins.CodBasePlugin
orca.cod.plugins.Site
public class Site
Attributes and global state for a COD site. There is one Site object per COD authority actor. It drives site-global functions, including assignment of subnet prefixes and DNS domains.
Once you create your COD site, invoke the install/configure methods to set its various parameters, then initialize it, and reset it if recovering. Note: the configuration parameters should/must be immutable once configured: if you change them on a recovering site, then active slices continue to use the old parameters, so recovery may fail or various naming/address clashes may result.
| Field Summary | |
|---|---|
protected Authority |
authority
The authority actor for this site |
protected java.util.Properties |
configurationProperties
|
protected boolean |
fromConfig
True if this plugin was configured from a config file. |
protected KeyManager |
keyManager
Manages account information for clients of this site authority |
protected NetworkConfigurationManager |
networkManager
Network configuration |
protected PoolManager |
poolManager
Manager of resource pools. |
static java.lang.String |
PropertyHostKey
|
static java.lang.String |
PropertyKeyManager
|
static java.lang.String |
PropertyKeyManagerClass
|
static java.lang.String |
PropertyNetworkManager
|
static java.lang.String |
PropertyNetworkManagerClass
|
static java.lang.String |
PropertySliceID
|
static java.lang.String |
PropertyTicket
|
protected AuthorityCodDatabase |
siteDB
Cached database object |
protected int |
ticketImplementation
The ticket implementation supported by the authority. |
protected java.util.Hashtable |
ticketSets
|
| Fields inherited from class orca.cod.plugins.CodBasePlugin |
|---|
LocationTransferInComplete, propertiesMapper |
| Fields inherited from class orca.shirako.plugins.ShirakoPlugin |
|---|
actor, config, db, factories, keystoreManager, logger, PropertyConfig, PropertyConfigClass, PropertyDatabase, PropertyDatabaseClass |
| Constructor Summary | |
|---|---|
Site()
Constructor. |
|
| Method Summary | |
|---|---|
void |
configure(java.util.Properties p)
Processes a list of configuration properites |
Slice |
createSlice(SliceID id,
java.lang.String name,
ResourceData properties,
java.lang.Object other)
Slice factory. |
Authority |
getAuthority()
Get access to authority and to manager through the site object. |
java.util.Properties |
getConfigurationProperties()
|
protected java.util.Properties |
getConfigurationProperties(ResourceReservation reservation,
Node node)
Produces a properties list to be passed to the configuration sub-system |
java.lang.String |
getHostKey()
|
KeyManager |
getKeyManager()
|
NetworkConfigurationManager |
getNetworkManager()
|
PoolManager |
getPoolManager()
|
void |
initialize()
Initializes a COD site from an LDAP server. |
protected void |
logOvercommit(java.util.List list)
|
void |
releaseSlice(Slice slice)
Release any resources held by the slice. |
void |
reset()
Resets a site on startup or recovery. |
void |
reset(java.util.Properties p)
De-serializes the object from the given properties list. |
void |
revisit(IActor actor,
java.util.Properties p)
Recovers state of the component using a previously saved properties list and a references to the actor this component belongs to. |
void |
revisit(ResourceReservation r)
Reset/restore interface. |
void |
revisit(Slice slice)
Revisits slice. |
void |
save(java.util.Properties p)
Serializes the object into the given properties list. |
void |
setActor(IActor authority)
Sets the authority. |
void |
setHostKey(java.lang.String key)
|
void |
setKeyManager(KeyManager keyManager)
|
void |
setNetworkManager(NetworkConfigurationManager networkManager)
|
void |
setTicketImplementation(int ticketImplementation)
|
boolean |
validateIncoming(IReservation reservation,
AuthToken auth)
Validates an incoming reservation. |
| Methods inherited from class orca.cod.plugins.CodBasePlugin |
|---|
loadFactories, makeAndAttachCopy, modify, notify, probe, processJoinComplete, processLeaveComplete, processModifyComplete, processProbeComplete, processRecoverComplete, processSavedProperties, recover, restartConfigurationActions, restartConfigurationActions, setConfigMapUrl, transferIn, transferOut |
| Methods inherited from class orca.shirako.plugins.ShirakoPlugin |
|---|
actorAdded, configurationComplete, getActor, getConfig, getDatabase, getFactory, getKeyStore, getLogger, getResultCode, initializeKeyStore, save, setConfig, setDatabase, setLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PropertyKeyManagerClass
public static final java.lang.String PropertyKeyManager
public static final java.lang.String PropertyNetworkManagerClass
public static final java.lang.String PropertyNetworkManager
public static final java.lang.String PropertySliceID
public static final java.lang.String PropertyHostKey
public static final java.lang.String PropertyTicket
protected PoolManager poolManager
protected KeyManager keyManager
protected NetworkConfigurationManager networkManager
protected Authority authority
protected AuthorityCodDatabase siteDB
protected boolean fromConfig
protected int ticketImplementation
protected java.util.Hashtable ticketSets
protected java.util.Properties configurationProperties
| Constructor Detail |
|---|
public Site()
authority - authority objecttfac - encapsulates standard term parameters for leases| Method Detail |
|---|
public void initialize()
throws java.lang.Exception
initialize in interface IInitializeinitialize in class CodBasePluginexception - if mis-configured, misused, or buggy
java.lang.Exception
public void configure(java.util.Properties p)
throws java.lang.Exception
p -
java.lang.Exception
public void save(java.util.Properties p)
throws java.lang.Exception
ISerialize
save in interface ISerializesave in class ShirakoPluginp - properties list to serialize the object into
java.lang.Exception
public void reset(java.util.Properties p)
throws java.lang.Exception
ISerialize
reset in interface ISerializereset in class ShirakoPluginp - properties list containing the serialized version of
the object
java.lang.Exception
public void revisit(IActor actor,
java.util.Properties p)
throws java.lang.Exception
IRecover
revisit in interface IRecoverrevisit in class ShirakoPluginactor - actor object the component belongs top - properties list containing configuration data about the
component
java.lang.Exception
public void revisit(Slice slice)
throws java.lang.Exception
revisit in interface IShirakoPluginrevisit in class ShirakoPlugins - the slice
java.lang.Exception
public void revisit(ResourceReservation r)
throws java.lang.Exception
revisit in interface IShirakoPluginrevisit in class ShirakoPluginr - restored reservation
java.lang.Exception
public void reset()
throws java.lang.Exception
reset in interface IShirakoPluginreset in class CodBasePluginjava.lang.Exception
public Slice createSlice(SliceID id,
java.lang.String name,
ResourceData properties,
java.lang.Object other)
throws java.lang.Exception
ShirakoPlugin
createSlice in interface IShirakoPlugincreateSlice in class CodBasePluginid - guid for the slicename - name for the sliceproperties - properties for the sliceother - other relevant information
java.lang.Exception
public void releaseSlice(Slice slice)
throws java.lang.Exception
releaseSlice in interface IShirakoPluginreleaseSlice in class ShirakoPlugins - the slice
java.lang.Exception
protected java.util.Properties getConfigurationProperties(ResourceReservation reservation,
Node node)
throws java.lang.Exception
getConfigurationProperties in class CodBasePluginjava.lang.Exception
public boolean validateIncoming(IReservation reservation,
AuthToken auth)
validateIncoming in interface IShirakoPluginvalidateIncoming in class ShirakoPluginreservation - The reservationauth - The AuthToken of the caller
protected void logOvercommit(java.util.List list)
public Authority getAuthority()
public void setActor(IActor authority)
setActor in interface IShirakoPluginsetActor in class ShirakoPluginauthority - the authoritypublic void setHostKey(java.lang.String key)
public java.lang.String getHostKey()
public KeyManager getKeyManager()
public void setKeyManager(KeyManager keyManager)
public void setNetworkManager(NetworkConfigurationManager networkManager)
public NetworkConfigurationManager getNetworkManager()
public void setTicketImplementation(int ticketImplementation)
public PoolManager getPoolManager()
public java.util.Properties getConfigurationProperties()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||