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, unexportObject
protected JGDIRemoteBaseImpl(java.lang.String url) throws java.rmi.RemoteException, JGDIException
java.rmi.RemoteException
JGDIException
public void close() throws java.rmi.RemoteException
JGDIRemoteBase
JGDI
object. After calling this method
the JGDI
is not longer useable.close
in interface JGDIRemoteBase
java.rmi.RemoteException
- on any error on the GDI layerpublic java.lang.String getActQMaster() throws java.rmi.RemoteException
JGDIRemoteBase
getActQMaster
in interface JGDIRemoteBase
java.rmi.RemoteException
- on any error on the GDI layerpublic java.lang.String getAdminUser() throws java.rmi.RemoteException
JGDIRemoteBase
getAdminUser
in interface JGDIRemoteBase
java.rmi.RemoteException
- on any error on the GDI layerpublic QHostResult execQHost(QHostOptions options) throws java.rmi.RemoteException
JGDIRemoteBase
qhost
(see man qhost(1)).execQHost
in interface JGDIRemoteBase
options
- 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
JGDIRemoteBase
getSGERoot
in interface JGDIRemoteBase
java.rmi.RemoteException
public java.lang.String getSGECell() throws java.rmi.RemoteException
JGDIRemoteBase
getSGECell
in interface JGDIRemoteBase
java.rmi.RemoteException
public java.util.List getRealExecHostList() throws java.rmi.RemoteException
JGDIRemoteBase
getRealExecHostList
in interface JGDIRemoteBase
java.rmi.RemoteException
public java.util.List getClusterQueueSummary(ClusterQueueSummaryOptions options) throws java.rmi.RemoteException
JGDIRemoteBase
qstat -g c
(see man qstat(1)).getClusterQueueSummary
in interface JGDIRemoteBase
options
- options the cluster queue summary algorithmjava.rmi.RemoteException
- on any error in the GDI layerpublic QueueInstanceSummaryResult getQueueInstanceSummary(QueueInstanceSummaryOptions options) throws java.rmi.RemoteException
JGDIRemoteBase
qstat
(see man qstat(1)).getQueueInstanceSummary
in interface JGDIRemoteBase
options
- Options for the queue instance summary algorithmjava.rmi.RemoteException
- on any error in the GDI layerpublic QQuotaResult getQQuota(QQuotaOptions options) throws java.rmi.RemoteException
JGDIRemoteBase
qquota
(see man qquota(1)).getQQuota
in interface JGDIRemoteBase
options
- the options for the qquota algorithmQQuotaResult
instancesjava.rmi.RemoteException
public void clearShareTreeUsage() throws java.rmi.RemoteException
JGDIRemoteBase
Clears 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 JGDIRemoteBase
java.rmi.RemoteException
public void cleanQueues(java.lang.String[] queues) throws java.rmi.RemoteException
JGDIRemoteBase
Cleans 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 JGDIRemoteBase
queues
- a wild card queue listjava.rmi.RemoteException
- on any error on the GDI layerpublic void killMaster() throws java.rmi.RemoteException
JGDIRemoteBase
The CLI equivialent for this method is qconf -km
(see man qconf(1)).
killMaster
in interface JGDIRemoteBase
java.rmi.RemoteException
- on any error on the GDI layerpublic void killScheduler() throws java.rmi.RemoteException
JGDIRemoteBase
The CLI equivialent for this method is qconf -ks
(see man qconf(1)).
killScheduler
in interface JGDIRemoteBase
java.rmi.RemoteException
- on any error on the GDI layerpublic void killExecd(java.lang.String[] hosts, boolean terminateJobs) throws java.rmi.RemoteException
JGDIRemoteBase
The CLI equivialent for this method is qconf -ke
(see man qconf(1)).
killExecd
in interface JGDIRemoteBase
hosts
- 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
JGDIRemoteBase
The CLI equivialent for this method is qconf -ke all
(see man qconf(1)).
killAllExecds
in interface JGDIRemoteBase
terminateJobs
- 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
JGDIRemoteBase
Used 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 JGDIRemoteBase
ids
- 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
JGDIRemoteBase
Used to shutdown event clients all registered at qmaster(8).
killAllEventClients
in interface JGDIRemoteBase
java.rmi.RemoteException
- RemoteException on any error on the GDI levelpublic void triggerSchedulerMonitoring() throws java.rmi.RemoteException
JGDIRemoteBase
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. 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 JGDIRemoteBase
java.rmi.RemoteException
- RemoteException on any error on the GDI levelpublic java.lang.String getSchedulerHost() throws java.rmi.RemoteException
JGDIRemoteBase
Return 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 JGDIRemoteBase
java.rmi.RemoteException
- RemoteException on any error on the GDI levelpublic void enableQueues(java.lang.String[] queues, boolean force) throws java.rmi.RemoteException
JGDIRemoteBase
Enable queue(s).
The CLI equivialent for this method is qmod -e
(see man qmod(1)).
enableQueues
in interface JGDIRemoteBase
queues
- 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
JGDIRemoteBase
Disable 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 JGDIRemoteBase
queues
- 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
JGDIRemoteBase
Suspend 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 JGDIRemoteBase
queues
- 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
JGDIRemoteBase
Unsuspends 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 JGDIRemoteBase
queues
- 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
JGDIRemoteBase
Clears the error state of the specified queues(s).
The CLI equivialent for this method is qmod -cq
(see man qmod(1)).
clearQueues
in interface JGDIRemoteBase
queues
- 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
JGDIRemoteBase
Reschedules 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 JGDIRemoteBase
queues
- 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
JGDIRemoteBase
Suspends 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 JGDIRemoteBase
jobs
- 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
JGDIRemoteBase
Unsuspends 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 JGDIRemoteBase
jobs
- 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
JGDIRemoteBase
Clears the error state of the specified jobs(s).
The CLI equivialent for this method is qmod -cj (see man qmod(1)).
clearJobs
in interface JGDIRemoteBase
jobs
- 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
JGDIRemoteBase
If 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 JGDIRemoteBase
jobs
- a wildcard job range listforce
- Force the modification action for the job(s)java.rmi.RemoteException
Copyright © 2007 Sun Microsystems, Inc. All rights reserved.