public class MdsQuery extends Object
Modifier and Type | Field and Description |
---|---|
private static int |
Avg_Bandwidth |
private static int |
Avg_Bandwidth_range1 |
private static int |
Avg_Bandwidth_range2 |
private static int |
Avg_Bandwidth_range3 |
private static int |
Avg_Bandwidth_range4 |
private String |
DEFAULT_CTX |
private static int |
Dest_Subnet_Id |
private Hashtable |
env |
private static int |
Gvds_Pool_Gridlaunch |
private static int |
Gvds_Pool_Id |
private static int |
Gvds_Pool_Lrc |
private static int |
Gvds_Pool_Profile |
private static int |
Gvds_Pool_Storage |
private static int |
Gvds_Pool_Universe |
private static int |
Gvds_Pool_WorkDir |
private static int |
Host_Subnet_Id |
private ArrayList |
m_identifiers |
private static int |
Max_Bandwidth |
private static int |
Mds_Computer_Isa |
private static int |
Mds_Computer_Total_Free_NodeCount |
private static int |
Mds_Computer_Total_NodeCount |
private static int |
Mds_Gram_Job_Queue_MaxCount |
private static int |
Mds_Gram_Job_Queue_MaxCpuTime |
private static int |
Mds_Gram_Job_Queue_MaxJobsInQueue |
private static int |
Mds_Gram_Job_Queue_MaxRunningJobs |
private static int |
Mds_Memory_Ram_FreeSizeMB |
private static int |
Mds_Memory_Ram_Total_SizeMB |
private static int |
Mds_Os_Name |
private static int |
Mds_Service_Gram_SchedulerType |
private static int |
Mds_Subnetid |
private String |
mdsbaseDN |
private String |
mdshost |
private int |
mdsport |
private static int |
Min_Bandwidth |
Constructor and Description |
---|
MdsQuery()
C'tor for the class.
|
MdsQuery(String host,
int port)
Valid C'tor for the class to create a MdsQuery object.
|
Modifier and Type | Method and Description |
---|---|
LdapContext |
connectMds()
Create and return a MDS LdapContext.
|
void |
displayResults(NamingEnumeration results,
String baseDN)
Displays the result on stdout instead of putting it in data classes.
|
NamingEnumeration |
searchMDS(LdapContext mdsctx,
String baseDN,
String filter)
Still Thinking how to eable this option.
|
void |
setLdapConnectionEnv(String index,
String value)
Enables a user to set new or overide existing connection settings to the MDS.
|
void |
setLdapSearchConstraints() |
PoolConfig |
StoreGvdsMdsInfo(NamingEnumeration results,
String baseDN,
PoolConfig poolconfig) |
private String mdshost
private int mdsport
private String mdsbaseDN
private String DEFAULT_CTX
private Hashtable env
private static final int Gvds_Pool_Id
private static final int Gvds_Pool_Universe
private static final int Gvds_Pool_WorkDir
private static final int Gvds_Pool_Lrc
private static final int Gvds_Pool_Gridlaunch
private static final int Gvds_Pool_Storage
private static final int Gvds_Pool_Profile
private static final int Mds_Computer_Total_Free_NodeCount
private static final int Mds_Computer_Total_NodeCount
private static final int Mds_Gram_Job_Queue_MaxCount
private static final int Mds_Gram_Job_Queue_MaxCpuTime
private static final int Mds_Gram_Job_Queue_MaxRunningJobs
private static final int Mds_Gram_Job_Queue_MaxJobsInQueue
private static final int Mds_Memory_Ram_Total_SizeMB
private static final int Mds_Memory_Ram_FreeSizeMB
private static final int Mds_Service_Gram_SchedulerType
private static final int Mds_Computer_Isa
private static final int Mds_Os_Name
private static final int Mds_Subnetid
private static final int Host_Subnet_Id
private static final int Dest_Subnet_Id
private static final int Avg_Bandwidth_range1
private static final int Avg_Bandwidth_range2
private static final int Avg_Bandwidth_range3
private static final int Avg_Bandwidth_range4
private static final int Avg_Bandwidth
private static final int Max_Bandwidth
private static final int Min_Bandwidth
private ArrayList m_identifiers
public MdsQuery()
public MdsQuery(String host, int port)
host
- the hostname of the machine on which a GRIS or GIIS is running.port
- the Port number on which a GRIS or GIIS is running.public void setLdapConnectionEnv(String index, String value)
index
- Holds the index string for the connection environment.value
- Holds the value corresponding to the index fro the connnection environment.public void setLdapSearchConstraints()
public LdapContext connectMds() throws NamingException
NamingException
public NamingEnumeration searchMDS(LdapContext mdsctx, String baseDN, String filter)
public PoolConfig StoreGvdsMdsInfo(NamingEnumeration results, String baseDN, PoolConfig poolconfig) throws NamingException, Exception
NamingException
Exception
public void displayResults(NamingEnumeration results, String baseDN) throws NamingException
results
- Takes a NamingEnumeration returned by the MDS searchbaseDN
- Takes the baseDN provided to the MDS search.NamingException
Copyright © 2011 The University of Southern California. All Rights Reserved.