|
||||||||||
| 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
orca.cod.plugins.db.LdapAuthorityCodDatabase
public class LdapAuthorityCodDatabase
Implementation of AuthorityCodDatabase for LDAP.
| Field Summary | |
|---|---|
static java.lang.String |
DefaultAuthorityLdapMapUrl
Default mapping file |
static java.lang.String |
Inventory
|
protected java.lang.String |
machinesDN
DN for machine records |
static java.lang.String |
Networking
|
static java.lang.String |
nodePointer
Node pointer to follow: maps to the machine this node is pointed to |
static java.lang.String |
obDns
|
static java.lang.String |
obMachine
|
static java.lang.String |
ouInventory
|
static java.lang.String |
PropertyMachinePointer
Machine pointer to follow |
static java.lang.String |
PropertyMachinesDN
Property name of the machines DN. |
static java.lang.String |
PropertyStorageDN
Property name of the storage serveers DN. |
static java.lang.String |
ResourcePools
|
static java.lang.String |
ResourceTypes
|
protected java.lang.String |
storageDN
DN for storage servers |
static java.lang.String |
TypeNetworking
|
static java.lang.String |
TypeResourcePool
|
static java.lang.String |
TypeResourceType
|
| Fields inherited from class orca.cod.plugins.db.LdapCodDatabase |
|---|
DefaultServiceManagerLdapMapUrl, Hosts, ObjectClassCodNode, TypeMachine, TypeNode, 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, 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 | |
|---|---|
LdapAuthorityCodDatabase()
Create a new instance using the default mapping |
|
| Method Summary | |
|---|---|
void |
addMachine(Machine machine)
Adds a new machine record |
protected void |
attachIP(java.util.Properties p)
Attaches the IP address and host name for a machine |
protected void |
createHierarchy(com.novell.ldap.LDAPConnection connection,
java.lang.String topPrefix)
|
java.util.Vector<java.util.Properties> |
getClientNodes(int type,
int state)
Retrieves all nodes from all client slices that are in the specified state and are from the given type. |
java.util.Vector<java.util.Properties> |
getHostedNodes(java.lang.String machineName)
Returns a list of nodes hosted on the specified machine |
java.util.Vector<java.util.Properties> |
getMachine(NodeID id)
Retrieves the specified machine record using the node identifier. |
java.util.Vector<java.util.Properties> |
getMachine(java.lang.String name)
Retrieves the specified machine record |
java.lang.String |
getMachineNodeDN(java.lang.String name)
|
java.util.Vector<java.util.Properties> |
getMachines()
Retrieves all machine records (that belong to this site) |
java.util.Vector<java.util.Properties> |
getStorageServer(java.lang.String name)
Retrieves the specified storage server record |
java.util.Vector<java.util.Properties> |
getStorageServers()
Retrieves all storage server records |
void |
removeMachine(java.lang.String name)
Removes the specified machine record |
void |
reset(java.util.Properties p)
De-serializes the object from the given properties list. |
void |
save(java.util.Properties p)
Serializes the object into the given properties list. |
void |
setMachinesDN(java.lang.String DN)
|
void |
setStorageDN(java.lang.String dn)
|
void |
updateMachine(Machine machine)
Updates the specified machine record |
| Methods inherited from class orca.cod.plugins.db.LdapCodDatabase |
|---|
addHandlerInvocation, addNode, createSliceHierarchy, getHostsDN, getHostsDN, getInventoryNodes, getNode, getNodeDN, getNodeDN, getNodeDN, getNodeDN, getNodes, getNodes, getNodes, getNodes, getNodes, getNodes, removeHandlerInvocation, removeNode, updateNode |
| Methods inherited from class orca.sharp.plugins.db.LdapClientDatabase |
|---|
addClient, 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, returnConnection, 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.cod.plugins.db.CodDatabase |
|---|
addHandlerInvocation, addNode, getInventoryNodes, getNode, getNodes, getNodes, getNodes, getNodes, getNodes, getNodes, removeHandlerInvocation, removeNode, updateNode |
| Methods inherited from interface orca.shirako.api.IInitialize |
|---|
initialize |
| Methods inherited from interface orca.shirako.api.ISerialize |
|---|
save |
| Methods inherited from interface orca.shirako.api.IRecover |
|---|
revisit |
| Field Detail |
|---|
public static final java.lang.String DefaultAuthorityLdapMapUrl
public static final java.lang.String TypeResourceType
public static final java.lang.String TypeResourcePool
public static final java.lang.String TypeNetworking
public static final java.lang.String ResourceTypes
public static final java.lang.String ResourcePools
public static final java.lang.String Networking
public static final java.lang.String Inventory
public static java.lang.String ouInventory
public static java.lang.String obDns
public static java.lang.String obMachine
public static final java.lang.String nodePointer
public static final java.lang.String PropertyMachinePointer
public static final java.lang.String PropertyMachinesDN
public static final java.lang.String PropertyStorageDN
protected java.lang.String machinesDN
protected java.lang.String storageDN
| Constructor Detail |
|---|
public LdapAuthorityCodDatabase()
| Method Detail |
|---|
protected void createHierarchy(com.novell.ldap.LDAPConnection connection,
java.lang.String topPrefix)
throws java.lang.Exception
createHierarchy in class LdapClientDatabasejava.lang.Exception
public void save(java.util.Properties p)
throws java.lang.Exception
ISerialize
save in interface ISerializesave in class LdapBasep - 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 LdapBasep - properties list containing the serialized version of
the object
java.lang.Exception
public java.util.Vector<java.util.Properties> getMachines()
throws java.lang.Exception
getMachines in interface AuthorityCodDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getMachine(java.lang.String name)
throws java.lang.Exception
getMachine in interface AuthorityCodDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getMachine(NodeID id)
throws java.lang.Exception
AuthorityCodDatabase
getMachine in interface AuthorityCodDatabaseid - node identifier
java.lang.Exception
protected void attachIP(java.util.Properties p)
throws java.lang.Exception
p - serialized machine properties
java.lang.Exception
public void addMachine(Machine machine)
throws java.lang.Exception
addMachine in interface AuthorityCodDatabasejava.lang.Exception
public void updateMachine(Machine machine)
throws java.lang.Exception
updateMachine in interface AuthorityCodDatabasejava.lang.Exception
public void removeMachine(java.lang.String name)
throws java.lang.Exception
removeMachine in interface AuthorityCodDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getHostedNodes(java.lang.String machineName)
throws java.lang.Exception
getHostedNodes in interface AuthorityCodDatabasemachineName - machine name
java.lang.Exception
public java.util.Vector<java.util.Properties> getStorageServers()
throws java.lang.Exception
getStorageServers in interface AuthorityCodDatabasejava.lang.Exception
public java.util.Vector<java.util.Properties> getStorageServer(java.lang.String name)
throws java.lang.Exception
getStorageServer in interface AuthorityCodDatabasename - Server name
java.lang.Exception
public java.util.Vector<java.util.Properties> getClientNodes(int type,
int state)
throws java.lang.Exception
AuthorityCodDatabase
getClientNodes in interface AuthorityCodDatabasetype - typestate - state
java.lang.Exceptionpublic void setMachinesDN(java.lang.String DN)
public void setStorageDN(java.lang.String dn)
public java.lang.String getMachineNodeDN(java.lang.String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||