com.sun.grid.jgdi.rmi
public class JGDIRemoteBaseImpl extends java.rmi.server.UnicastRemoteObject implements JGDIRemoteBase
| Modifier and Type | Field and Description |
|---|---|
protected JGDI |
jgdi |
protected java.util.logging.Logger |
logger |
| Modifier | Constructor and Description |
|---|---|
protected |
JGDIRemoteBaseImpl(java.lang.String url) |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanQueues(java.lang.String[] queues)
Cleans queue from jobs which haven't been reaped.
|
void |
clearJobs(java.lang.String[] jobs,
boolean force)
Clears the error state of the specified jobs(s).
|
void |
clearQueues(java.lang.String[] queues,
boolean force)
Clears the error state of the specified queues(s).
|
void |
clearShareTreeUsage()
Clears all user and project usage from the sharetree.
|
void |
close()
Close the
JGDI object. |
void |
disableQueues(java.lang.String[] queues,
boolean force)
Disable queue(s), i.e.
|
void |
enableQueues(java.lang.String[] queues,
boolean force)
Enable queue(s).
|
QHostResult |
execQHost(QHostOptions options)
Get summary information about cluster hosts.
|
java.lang.String |
getActQMaster()
Get the hostname of the current qmaster
|
java.lang.String |
getAdminUser()
Get the admin user
|
java.util.List |
getClusterQueueSummary(ClusterQueueSummaryOptions options)
Get summary information about cluster queues.
|
QQuotaResult |
getQQuota(QQuotaOptions options)
Get the limit information.
|
QueueInstanceSummaryResult |
getQueueInstanceSummary(QueueInstanceSummaryOptions options)
Get summary information abouter queue instances.
|
java.util.List |
getRealExecHostList()
Get the list of real exec hosts (excludes "template" and "global").
|
java.lang.String |
getSchedulerHost()
Return the host where the Sun™ Grid Engine scheduler sge_schedd(8) is
active or null otherwise
|
java.lang.String |
getSGECell()
Get the cell of the grid engine
|
java.io.File |
getSGERoot()
Get the root directory of the grid engine installation
|
void |
killAllEventClients()
Used to shutdown event clients all registered at qmaster(8).
|
void |
killAllExecds(boolean terminateJobs)
Send all execution hosts a kill signal.
|
void |
killEventClients(int[] ids)
Used to shutdown event clients registered at qmaster(8), except
special clients like the sge_schedd(8)
|
void |
killExecd(java.lang.String[] hosts,
boolean terminateJobs)
Send some execution hosts a kill signal.
|
void |
killMaster()
Send the qmaster a kill signal.
|
void |
killScheduler()
Send the schedduler a kill signal.
|
void |
rescheduleJobs(java.lang.String[] jobs,
boolean force)
If applied to running jobs, reschedules the jobs.
|
void |
rescheduleQueues(java.lang.String[] queues,
boolean force)
Reschedules all jobs currently running in the queue(s).
|
void |
suspendJobs(java.lang.String[] jobs,
boolean force)
Suspends job(s).
|
void |
suspendQueues(java.lang.String[] queues,
boolean force)
Suspend the queues and any jobs which might be active.
|
void |
triggerSchedulerMonitoring()
The Sun™ Grid Engine scheduler sge_schedd(8) is forced to print
trace messages of its next scheduling run to the file
<sge_root>/<cell>/common/schedd_runlog.
|
void |
unsuspendJobs(java.lang.String[] jobs,
boolean force)
Unsuspends the job(s).
|
void |
unsuspendQueues(java.lang.String[] queues,
boolean force)
Unsuspends the queues and any jobs which might be active.
|
clone, exportObject, exportObject, exportObject, unexportObjectprotected JGDIRemoteBaseImpl(java.lang.String url)
throws java.rmi.RemoteException,
JGDIException
java.rmi.RemoteExceptionJGDIExceptionpublic void close()
throws java.rmi.RemoteException
JGDIRemoteBaseJGDI object. After calling this method
the JGDI is not longer useable.close in interface JGDIRemoteBasejava.rmi.RemoteException - on any error on the GDI layerpublic java.lang.String getActQMaster()
throws java.rmi.RemoteException
JGDIRemoteBasegetActQMaster in interface JGDIRemoteBasejava.rmi.RemoteException - on any error on the GDI layerpublic java.lang.String getAdminUser()
throws java.rmi.RemoteException
JGDIRemoteBasegetAdminUser in interface JGDIRemoteBasejava.rmi.RemoteException - on any error on the GDI layerpublic QHostResult execQHost(QHostOptions options) throws java.rmi.RemoteException
JGDIRemoteBaseqhost (see man qhost(1)).execQHost in interface JGDIRemoteBaseoptions - host summary optionsQHostResult object which the host summary informationjava.rmi.RemoteException - on any error in the GDI layerpublic java.io.File getSGERoot()
throws java.rmi.RemoteException
JGDIRemoteBasegetSGERoot in interface JGDIRemoteBasejava.rmi.RemoteExceptionpublic java.lang.String getSGECell()
throws java.rmi.RemoteException
JGDIRemoteBasegetSGECell in interface JGDIRemoteBasejava.rmi.RemoteExceptionpublic java.util.List getRealExecHostList()
throws java.rmi.RemoteException
JGDIRemoteBasegetRealExecHostList in interface JGDIRemoteBasejava.rmi.RemoteExceptionpublic java.util.List getClusterQueueSummary(ClusterQueueSummaryOptions options) throws java.rmi.RemoteException
JGDIRemoteBaseqstat -g c (see man qstat(1)).getClusterQueueSummary in interface JGDIRemoteBaseoptions - options the cluster queue summary algorithmjava.rmi.RemoteException - on any error in the GDI layerpublic QueueInstanceSummaryResult getQueueInstanceSummary(QueueInstanceSummaryOptions options) throws java.rmi.RemoteException
JGDIRemoteBaseqstat (see man qstat(1)).getQueueInstanceSummary in interface JGDIRemoteBaseoptions - Options for the queue instance summary algorithmjava.rmi.RemoteException - on any error in the GDI layerpublic QQuotaResult getQQuota(QQuotaOptions options) throws java.rmi.RemoteException
JGDIRemoteBaseqquota (see man qquota(1)).getQQuota in interface JGDIRemoteBaseoptions - the options for the qquota algorithmQQuotaResult instancesjava.rmi.RemoteExceptionpublic void clearShareTreeUsage()
throws java.rmi.RemoteException
JGDIRemoteBaseClears all user and project usage from the sharetree. All usage will be initialized back to zero.
The CLI equivialent for this method is qconf -clearusage (see man qconf(1)).
clearShareTreeUsage in interface JGDIRemoteBasejava.rmi.RemoteExceptionpublic void cleanQueues(java.lang.String[] queues)
throws java.rmi.RemoteException
JGDIRemoteBaseCleans queue from jobs which haven't been reaped. Primarily for development purpose. Requires root/manager/operator privileges.
The CLI equivialent for this method is qconf -kcq (see man qconf(1)).
cleanQueues in interface JGDIRemoteBasequeues - a wild card queue listjava.rmi.RemoteException - on any error on the GDI layerpublic void killMaster()
throws java.rmi.RemoteException
JGDIRemoteBaseThe CLI equivialent for this method is qconf -km (see man qconf(1)).
killMaster in interface JGDIRemoteBasejava.rmi.RemoteException - on any error on the GDI layerpublic void killScheduler()
throws java.rmi.RemoteException
JGDIRemoteBaseThe CLI equivialent for this method is qconf -ks (see man qconf(1)).
killScheduler in interface JGDIRemoteBasejava.rmi.RemoteException - on any error on the GDI layerpublic void killExecd(java.lang.String[] hosts,
boolean terminateJobs)
throws java.rmi.RemoteException
JGDIRemoteBaseThe CLI equivialent for this method is qconf -ke (see man qconf(1)).
killExecd in interface JGDIRemoteBasehosts - a host name listterminateJobs - if true, all jobs running on the execution hosts are
aborted prior to termination of the corresponding
sge_execd(8).java.rmi.RemoteException - on any error on the GDI layerpublic void killAllExecds(boolean terminateJobs)
throws java.rmi.RemoteException
JGDIRemoteBaseThe CLI equivialent for this method is qconf -ke all (see man qconf(1)).
killAllExecds in interface JGDIRemoteBaseterminateJobs - if true, all jobs running on the execution hosts are
aborted prior to termination of the corresponding
sge_execd(8).java.rmi.RemoteException - on any error on the GDI layerpublic void killEventClients(int[] ids)
throws java.rmi.RemoteException
JGDIRemoteBaseUsed to shutdown event clients registered at qmaster(8), except special clients like the sge_schedd(8)
Requires root or manager privilege.
The CLI equivialent for this method is qconf -secl (see man qconf(1)).
killEventClients in interface JGDIRemoteBaseids - array with the ids of the event clients which should be killedjava.rmi.RemoteException - RemoteException on any error on the GDI levelpublic void killAllEventClients()
throws java.rmi.RemoteException
JGDIRemoteBaseUsed to shutdown event clients all registered at qmaster(8).
killAllEventClients in interface JGDIRemoteBasejava.rmi.RemoteException - RemoteException on any error on the GDI levelpublic void triggerSchedulerMonitoring()
throws java.rmi.RemoteException
JGDIRemoteBaseThe Sun™ Grid Engine scheduler sge_schedd(8) is forced to print trace messages of its next scheduling run to the file <sge_root>/<cell>/common/schedd_runlog. The messages indicate the reasons for jobs and queues not being selected in that run.
Requires root or manager privileges.
The CLI equivialent for this method is qconf -tsm (see man qconf(1)).
triggerSchedulerMonitoring in interface JGDIRemoteBasejava.rmi.RemoteException - RemoteException on any error on the GDI levelpublic java.lang.String getSchedulerHost()
throws java.rmi.RemoteException
JGDIRemoteBaseReturn the host where the Sun™ Grid Engine scheduler sge_schedd(8) is active or null otherwise
The CLI equivialent for this method is qconf -sss (see man qconf(1)).
getSchedulerHost in interface JGDIRemoteBasejava.rmi.RemoteException - RemoteException on any error on the GDI levelpublic void enableQueues(java.lang.String[] queues,
boolean force)
throws java.rmi.RemoteException
JGDIRemoteBaseEnable queue(s).
The CLI equivialent for this method is qmod -e (see man qmod(1)).
enableQueues in interface JGDIRemoteBasequeues - a wildcard queue listforce - force the actionjava.rmi.RemoteException - RemoteException on any error on the GDI levelpublic void disableQueues(java.lang.String[] queues,
boolean force)
throws java.rmi.RemoteException
JGDIRemoteBaseDisable queue(s), i.e. no further jobs are dispatched to disabled queues while jobs already executing in these queues are allowed to finish.
The CLI equivialent for this method is qmod -d (see man qmod(1)).
disableQueues in interface JGDIRemoteBasequeues - a wildcard queue listforce - force the actionjava.rmi.RemoteException - RemoteException on any error on the GDI levelpublic void suspendQueues(java.lang.String[] queues,
boolean force)
throws java.rmi.RemoteException
JGDIRemoteBaseSuspend the queues and any jobs which might be active.
The CLI equivialent for this method is qmod -sq (see man qmod(1)).
suspendQueues in interface JGDIRemoteBasequeues - a wildcard queue listforce - force the actionjava.rmi.RemoteException - RemoteException on any error on the GDI levelpublic void unsuspendQueues(java.lang.String[] queues,
boolean force)
throws java.rmi.RemoteException
JGDIRemoteBaseUnsuspends the queues and any jobs which might be active.
The CLI equivialent for this method is qmod -usq
(see man qmod(1)).
unsuspendQueues in interface JGDIRemoteBasequeues - a wildcard queue listforce - force the actionjava.rmi.RemoteException - RemoteException on any error on the GDI levelpublic void clearQueues(java.lang.String[] queues,
boolean force)
throws java.rmi.RemoteException
JGDIRemoteBaseClears the error state of the specified queues(s).
The CLI equivialent for this method is qmod -cq
(see man qmod(1)).
clearQueues in interface JGDIRemoteBasequeues - a wildcard queue listforce - Force the modification action for the queue despite the apparent current state of the queue.
java.rmi.RemoteException - RemoteException on any error on the GDI levelpublic void rescheduleQueues(java.lang.String[] queues,
boolean force)
throws java.rmi.RemoteException
JGDIRemoteBaseReschedules all jobs currently running in the queue(s). Requires root or manager privileges.
The CLI equivialent for this method is qmod -r (see man qmod(1)).
rescheduleQueues in interface JGDIRemoteBasequeues - a wildcard queue listforce - Force the modification action for the queue
despite the apparent current state of the queue.java.rmi.RemoteException - RemoteException on any error on the GDI levelpublic void suspendJobs(java.lang.String[] jobs,
boolean force)
throws java.rmi.RemoteException
JGDIRemoteBaseSuspends job(s). If a job is both suspended explicitly and via suspension of its queue, a following unsuspend of the queue will not release the suspension state on the job.
The CLI equivialent for this method is qmod -sj (see man qmod(1)).
suspendJobs in interface JGDIRemoteBasejobs - a wildcard job listforce - force the actionjava.rmi.RemoteException - RemoteException on any error on the GDI levelpublic void unsuspendJobs(java.lang.String[] jobs,
boolean force)
throws java.rmi.RemoteException
JGDIRemoteBaseUnsuspends the job(s). If a job is both suspended explicitly and via suspension of its queue, a following unsuspend of the queue will not release the suspension state on the job.
The CLI equivialent for this method is qmod -usj
(see man qmod(1)).
unsuspendJobs in interface JGDIRemoteBasejobs - a wildcard queue listforce - force the actionjava.rmi.RemoteException - RemoteException on any error on the GDI levelpublic void clearJobs(java.lang.String[] jobs,
boolean force)
throws java.rmi.RemoteException
JGDIRemoteBaseClears the error state of the specified jobs(s).
The CLI equivialent for this method is qmod -cj (see man qmod(1)).
clearJobs in interface JGDIRemoteBasejobs - a wildcard job listforce - Force the modification action for the job(s)java.rmi.RemoteException - RemoteException on any error on the GDI levelpublic void rescheduleJobs(java.lang.String[] jobs,
boolean force)
throws java.rmi.RemoteException
JGDIRemoteBaseIf applied to running jobs, reschedules the jobs. Requires root or manager privileges.
The CLI equivialent for this method is qmod -r (see man qmod(1)).
rescheduleJobs in interface JGDIRemoteBasejobs - a wildcard job range listforce - Force the modification action for the job(s)java.rmi.RemoteExceptionCopyright © 2007 Sun Microsystems, Inc. All rights reserved.