|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorca.util.db.DatabaseBase
orca.util.db.LdapBase
orca.shirako.plugins.db.LdapDatabase
orca.sharp.plugins.db.LdapClientDatabase
orca.cod.plugins.db.LdapCodDatabase
public class LdapCodDatabase
Implementation of CodDatabase for LDAP.
| Field Summary | |
|---|---|
static java.lang.String |
DefaultServiceManagerLdapMapUrl
Default mapping file |
static java.lang.String |
Hosts
|
static java.lang.String |
ObjectClassCodNode
|
static java.lang.String |
TypeMachine
|
static java.lang.String |
TypeNode
|
static java.lang.String |
TypeStorage
|
| Fields inherited from class orca.sharp.plugins.db.LdapClientDatabase |
|---|
Client, Clients, clientsDN, DefaultClientsLdapMapUrl |
| Fields inherited from class orca.shirako.plugins.db.LdapDatabase |
|---|
actorName, Brokers, brokersDN, ConfigMappings, configMappingsDN, Configs, configsDN, DefaultConfigUrl, Inventory, inventoryDN, ObjectClassReservation, ObjectClassSlice, Peers, peersDN, PropertyNodeState, PropertyReservationID, reservationListeners, Reservations, Slices, slicesDN, TypeBroker, TypeConfigMapping, TypeReservation, TypeSlice |
| Fields inherited from class orca.util.db.LdapBase |
|---|
AllEntries, baseDN, bindDN, bindPasswd, bindPasswdBytes, cn, cnE, create, dc, dcE, DefaultMaxPhysicalConnections, DefaultMaxSharesPerPhysicalConnection, ldapServer, logger, mapFile, mapper, maxPhysicalConnections, maxSharesPerPhysicalConnection, obCodCluster, objectClass, objectClassE, obMisc, obOU, obShirako, obTop, ou, ouE, pool, PropertyLdapBaseDN, PropertyLdapBindDN, PropertyLdapPassword, PropertyLdapServer, resetState |
| Fields inherited from class orca.util.db.DatabaseBase |
|---|
PropertyDBClassName |
| Constructor Summary | |
|---|---|
LdapCodDatabase()
Creates a new instance using the default mapping file. |
|
LdapCodDatabase(java.lang.String mapFile)
Creates a new instance using the specified mapping file. |
|
| Method Summary | |
|---|---|
void |
addHandlerInvocation(java.lang.String type,
Node node,
java.util.Properties p)
Adds a handler invocation record |
void |
addNode(Node node)
Adds a database record for the specified node. |
protected void |
createSliceHierarchy(com.novell.ldap.LDAPConnection connection,
Slice slice)
Creates the slice hierarchy |
protected java.lang.String |
getHostsDN(Slice slice)
Returns the hosts DN for the given slice |
protected java.lang.String |
getHostsDN(SliceID sliceID)
Returns the hosts DN for the given slice |
java.util.Vector<java.util.Properties> |
getInventoryNodes(int type,
int state)
Retrieves all nodes from all inventory slices that are from the specified type and are in the specified state. |
java.util.Vector<java.util.Properties> |
getNode(NodeID nodeID)
Retrieves the specified node record. |
protected java.lang.String |
getNodeDN(Node n)
Returns the DN for the specified node |
protected java.lang.String |
getNodeDN(NodeID nid)
Returns the DN for the specified reservation |
protected java.lang.String |
getNodeDN(Node n,
SliceID sliceID)
Returns the DN for the specified node |
protected java.lang.String |
getNodeDN(SliceID sliceID,
NodeID nodeID)
Returns the DN for the specified node |
java.util.Vector<java.util.Properties> |
getNodes(int type,
int state)
Retrieves all nodes from all slices that are from the specified type and are in the specified state. |
java.util.Vector<java.util.Properties> |
getNodes(NodeID[] ids)
Retrieves the specified nodes |
java.util.Vector<java.util.Properties> |
getNodes(ReservationID rid)
Retrieves all nodes for the specified reservation |
java.util.Vector<java.util.Properties> |
getNodes(ReservationID rid,
int state)
Retrieves all nodes for the reservation that are in the specified state. |
java.util.Vector<java.util.Properties> |
getNodes(SliceID sliceID)
Retrieves all nodes in the specified slice |
java.util.Vector<java.util.Properties> |
getNodes(SliceID sliceID,
int state)
Retrieves all nodes in the specified slice that are in the specified state |
void |
removeHandlerInvocation(java.lang.String type,
Node node,
java.util.Properties p)
Removes a handler invocation record |
void |
removeNode(NodeID nodeID)
Removes the database record for the specified node. |
void |
updateNode(Node node)
Updates the corresponding node record. |
| Methods inherited from class orca.sharp.plugins.db.LdapClientDatabase |
|---|
addClient, createHierarchy, getClient, getClientDN, getClientPrefix, getClients, initDNs, removeClient, updateClient |
| Methods inherited from class orca.util.db.LdapBase |
|---|
checkBase, configure, deleteContainer, exists, getBaseDN, getBindDN, getConnection, getDatabaseData, getLogger, getPassword, getProperties, getServer, reset, returnConnection, save, save, search, searchBase, searchOne, searchSub, setBaseDN, setBindDN, setBindPassword, setLogger, setMaxPhysicalConnections, setMaxSharesPerPhysicalConnection, setResetState, setServer |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface orca.shirako.api.IInitialize |
|---|
initialize |
| Methods inherited from interface orca.shirako.api.ISerialize |
|---|
reset, save, save |
| Methods inherited from interface orca.shirako.api.IRecover |
|---|
revisit |
| Field Detail |
|---|
public static final java.lang.String DefaultServiceManagerLdapMapUrl
public static final java.lang.String Hosts
public static final java.lang.String ObjectClassCodNode
public static final java.lang.String TypeNode
public static final java.lang.String TypeMachine
public static final java.lang.String TypeStorage
| Constructor Detail |
|---|
public LdapCodDatabase()
public LdapCodDatabase(java.lang.String mapFile)
mapFile - | Method Detail |
|---|
protected void createSliceHierarchy(com.novell.ldap.LDAPConnection connection,
Slice slice)
throws java.lang.Exception
createSliceHierarchy in class LdapDatabaseconnection - connection objectslice - slice
java.lang.Exception
public void addHandlerInvocation(java.lang.String type,
Node node,
java.util.Properties p)
throws java.lang.Exception
CodDatabase
addHandlerInvocation in interface CodDatabasejava.lang.Exception
public void removeHandlerInvocation(java.lang.String type,
Node node,
java.util.Properties p)
throws java.lang.Exception
CodDatabase
removeHandlerInvocation in interface CodDatabasejava.lang.Exception
public void addNode(Node node)
throws java.lang.Exception
CodDatabase
addNode in interface CodDatabasenode - node object
java.lang.Exception
public void updateNode(Node node)
throws java.lang.Exception
CodDatabase
updateNode in interface CodDatabasenode - node object
java.lang.Exception
public void removeNode(NodeID nodeID)
throws java.lang.Exception
CodDatabase
removeNode in interface CodDatabasenodeID - node identifier
java.lang.Exception
public java.util.Vector<java.util.Properties> getNode(NodeID nodeID)
throws java.lang.Exception
CodDatabase
getNode in interface CodDatabasenodeID - node identifier
java.lang.Exception
public java.util.Vector<java.util.Properties> getNodes(ReservationID rid)
throws java.lang.Exception
CodDatabase
getNodes in interface CodDatabaserid - Reservation id
java.lang.Exception
public java.util.Vector<java.util.Properties> getNodes(ReservationID rid,
int state)
throws java.lang.Exception
CodDatabase
getNodes in interface CodDatabaserid - Reservationstate - Node state
java.lang.Exception
public java.util.Vector<java.util.Properties> getNodes(SliceID sliceID)
throws java.lang.Exception
CodDatabase
getNodes in interface CodDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getNodes(SliceID sliceID,
int state)
throws java.lang.Exception
CodDatabase
getNodes in interface CodDatabasesliceID - sliceName
java.lang.Exception
public java.util.Vector<java.util.Properties> getNodes(NodeID[] ids)
throws java.lang.Exception
CodDatabase
getNodes in interface CodDatabaseids - an array of node identifiers
java.lang.Exception
public java.util.Vector<java.util.Properties> getNodes(int type,
int state)
throws java.lang.Exception
CodDatabase
getNodes in interface CodDatabasetype - typestate - state
java.lang.Exception
public java.util.Vector<java.util.Properties> getInventoryNodes(int type,
int state)
throws java.lang.Exception
CodDatabase
getInventoryNodes in interface CodDatabasetype - typestate - state
java.lang.Exceptionprotected java.lang.String getHostsDN(SliceID sliceID)
sliceID - slice identifierprotected java.lang.String getHostsDN(Slice slice)
slice - slice
protected java.lang.String getNodeDN(Node n)
n - node
protected java.lang.String getNodeDN(Node n,
SliceID sliceID)
n - nodesliceName - slice name
protected java.lang.String getNodeDN(SliceID sliceID,
NodeID nodeID)
sliceName - slice namenodeId - node node id
protected java.lang.String getNodeDN(NodeID nid)
throws java.lang.Exception
rid - reservation id
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||