|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.grid.jgdi.jni.JGDIBaseImpl
public abstract class JGDIBaseImpl
Constructor Summary | |
---|---|
JGDIBaseImpl()
|
Method Summary | |
---|---|
void |
cleanQueues(java.lang.String[] queues)
Cleans queue from jobs which haven't been reaped. |
void |
cleanQueuesWithAnswer(java.lang.String[] queues,
java.util.List<JGDIAnswer> answers)
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 |
clearJobsWithAnswer(java.lang.String[] jobs,
boolean force,
java.util.List<JGDIAnswer> answers)
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 |
clearQueuesWithAnswer(java.lang.String[] queues,
boolean force,
java.util.List<JGDIAnswer> answers)
Clears the error state of the specified queues(s). |
void |
clearShareTreeUsage()
Clears all user and project usage from the sharetree. |
void |
clearShareTreeUsageWithAnswer(java.util.List<JGDIAnswer> answers)
Clears all user and project usage from the sharetree. |
void |
close()
Close the JGDI object. |
static void |
closeAllConnections()
|
void |
deleteShareTree()
Delete the sharetree Requires root or manager privileges. |
void |
deleteShareTreeWithAnswer(java.util.List<JGDIAnswer> answers)
Delete the sharetree Requires root or manager privileges. |
void |
disableQueues(java.lang.String[] queues,
boolean force)
Disable queue(s), i.e. |
void |
disableQueuesWithAnswer(java.lang.String[] queues,
boolean force,
java.util.List<JGDIAnswer> answers)
Disable queue(s), i.e. |
void |
enableQueues(java.lang.String[] queues,
boolean force)
Enable queue(s). |
void |
enableQueuesWithAnswer(java.lang.String[] queues,
boolean force,
java.util.List<JGDIAnswer> answers)
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<ClusterQueueSummary> |
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.lang.String |
getSchedulerHost()
Return the host where the SGE scheduler sge_schedd(8) is active or null otherwise |
java.lang.String |
getSGECell()
Get the cell of the grid engine |
int |
getSgeExecdPort()
Get the SGE_EXECD_PORT of the current qmaster |
int |
getSgeQmasterPort()
Get the SGE_QMASTER_PORT of the current qmaster |
java.io.File |
getSGERoot()
Get the root directory of the grid engine installation |
void |
init(java.lang.String url)
|
void |
killAllEventClients()
Used to shutdown event clients all registered at qmaster(8). |
void |
killAllEventClientsWithAnswer(java.util.List<JGDIAnswer> answers)
Used to shutdown event clients all registered at qmaster(8). |
void |
killAllExecds(boolean terminateJobs)
Send all execution hosts a kill signal. |
void |
killAllExecdsWithAnswer(boolean terminateJobs,
java.util.List<JGDIAnswer> answers)
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 |
killEventClientsWithAnswer(int[] ids,
java.util.List<JGDIAnswer> answers)
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 |
killExecdWithAnswer(java.lang.String[] hosts,
boolean terminateJobs,
java.util.List<JGDIAnswer> answers)
Send some execution hosts a kill signal. |
void |
killMaster()
Send the qmaster a kill signal. |
void |
killMasterWithAnswer(java.util.List<JGDIAnswer> answers)
Send the qmaster a kill signal. |
void |
killScheduler()
Send the schedduler a kill signal. |
void |
killSchedulerWithAnswer(java.util.List<JGDIAnswer> answers)
Send the schedduler a kill signal. |
void |
reschedule(java.lang.String[] queue_or_job,
boolean force)
Reschedules all jobs currently running in the queue(s). |
void |
rescheduleJobs(java.lang.String[] jobs,
boolean force)
If applied to running jobs, reschedules the jobs. |
void |
rescheduleJobsWithAnswer(java.lang.String[] jobs,
boolean force,
java.util.List<JGDIAnswer> answers)
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 |
rescheduleQueuesWithAnswer(java.lang.String[] queues,
boolean force,
java.util.List<JGDIAnswer> answers)
Reschedules all jobs currently running in the queue(s). |
void |
rescheduleWithAnswer(java.lang.String[] queue_or_job,
boolean force,
java.util.List<JGDIAnswer> answers)
Reschedules all jobs currently running in the queue(s). |
static void |
resetShutdown()
|
java.lang.String |
showDetachedSettings(java.lang.String[] queues)
Show the detached settings of a cluster queue Requires root or manager privileges. |
java.lang.String |
showDetachedSettingsAll()
Show the detached settings of all cluster queues Requires root or manager privileges. |
java.lang.String |
showDetachedSettingsAllWithAnswer(java.util.List<JGDIAnswer> answers)
|
java.lang.String |
showDetachedSettingsWithAnswer(java.lang.String[] queues,
java.util.List<JGDIAnswer> answers)
|
void |
startScheduler()
Send the schedduler a start signal. |
void |
startSchedulerWithAnswer(java.util.List<JGDIAnswer> answers)
Send the schedduler a kill signal. |
void |
suspend(java.lang.String[] queues,
boolean force)
Suspend the queues and any jobs which might be active. |
void |
suspendJobs(java.lang.String[] jobs,
boolean force)
Suspends job(s). |
void |
suspendJobsWithAnswer(java.lang.String[] jobs,
boolean force,
java.util.List<JGDIAnswer> answers)
Suspends job(s). |
void |
suspendQueues(java.lang.String[] queues,
boolean force)
Suspend the queues and any jobs which might be active. |
void |
suspendQueuesWithAnswer(java.lang.String[] queues,
boolean force,
java.util.List<JGDIAnswer> answers)
Suspend the queues and any jobs which might be active. |
void |
suspendWithAnswer(java.lang.String[] queues,
boolean force,
java.util.List<JGDIAnswer> answers)
Suspend the queues and any jobs which might be active. |
void |
triggerSchedulerMonitoring()
The SGE 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 |
triggerSchedulerMonitoringWithAnswer(java.util.List<JGDIAnswer> answers)
The N1 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 |
unsuspend(java.lang.String[] queues,
boolean force)
Unsuspends the queues and any jobs which might be active. |
void |
unsuspendJobs(java.lang.String[] jobs,
boolean force)
Unsuspends the job(s). |
void |
unsuspendJobsWithAnswer(java.lang.String[] jobs,
boolean force,
java.util.List<JGDIAnswer> answers)
Unsuspends the job(s). |
void |
unsuspendQueues(java.lang.String[] queues,
boolean force)
Unsuspends the queues and any jobs which might be active. |
void |
unsuspendQueuesWithAnswer(java.lang.String[] queues,
boolean force,
java.util.List<JGDIAnswer> answers)
Unsuspends the queues and any jobs which might be active. |
void |
unsuspendWithAnswer(java.lang.String[] queues,
boolean force,
java.util.List<JGDIAnswer> answers)
Unsuspends the queues and any jobs which might be active. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.sun.grid.jgdi.JGDIBase |
---|
getRealExecHostList |
Constructor Detail |
---|
public JGDIBaseImpl()
Method Detail |
---|
public void init(java.lang.String url) throws JGDIException
JGDIException
public static void resetShutdown()
public static void closeAllConnections()
public void close() throws JGDIException
JGDIBase
JGDI
object. After calling this method
the JGDI
is not longer useable.
close
in interface JGDIBase
JGDIException
- on any error on the GDI layerpublic java.io.File getSGERoot() throws JGDIException
JGDIBase
getSGERoot
in interface JGDIBase
JGDIException
public java.lang.String getSGECell() throws JGDIException
JGDIBase
getSGECell
in interface JGDIBase
JGDIException
public java.lang.String getAdminUser() throws JGDIException
JGDIBase
getAdminUser
in interface JGDIBase
JGDIException
- on any error on the GDI layerpublic java.lang.String getActQMaster() throws JGDIException
JGDIBase
getActQMaster
in interface JGDIBase
JGDIException
- on any error on the GDI layerpublic int getSgeQmasterPort() throws JGDIException
JGDIBase
getSgeQmasterPort
in interface JGDIBase
JGDIException
- on any error on the GDI layerpublic int getSgeExecdPort() throws JGDIException
JGDIBase
getSgeExecdPort
in interface JGDIBase
JGDIException
- on any error on the GDI layerpublic java.lang.String getSchedulerHost() throws JGDIException
JGDIBase
Return the host where the SGE 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 JGDIBase
JGDIException
- JGDIException on any error on the GDI levelpublic QHostResult execQHost(QHostOptions options) throws JGDIException
JGDIBase
qhost
(see man qhost(1)).
execQHost
in interface JGDIBase
options
- host summary options
QHostResult
object with the host summary information
JGDIException
- on any error in the GDI layerpublic java.util.List<ClusterQueueSummary> getClusterQueueSummary(ClusterQueueSummaryOptions options) throws JGDIException
JGDIBase
qstat -g c
(see man qstat(1)).
getClusterQueueSummary
in interface JGDIBase
options
- options the cluster queue summary algorithm
JGDIException
- on any error in the GDI layerpublic QueueInstanceSummaryResult getQueueInstanceSummary(QueueInstanceSummaryOptions options) throws JGDIException
JGDIBase
qstat
(see man qstat(1)).
getQueueInstanceSummary
in interface JGDIBase
options
- Options for the queue instance summary algorithm
JGDIException
- on any error in the GDI layerpublic QQuotaResult getQQuota(QQuotaOptions options) throws JGDIException
JGDIBase
qquota
(see man qquota(1)).
getQQuota
in interface JGDIBase
options
- qquota summary options
QQuotaResult
object with the qquota summary information
JGDIException
- on any error in the GDI layerpublic void cleanQueuesWithAnswer(java.lang.String[] queues, java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
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 -cq
(see man qconf(1)).
cleanQueuesWithAnswer
in interface JGDIBase
queues
- a wild card queue listanswers
- the answer list
object
JGDIException
- on any error on the GDI layerpublic void cleanQueues(java.lang.String[] queues) throws JGDIException
JGDIBase
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 -cq
(see man qconf(1)).
cleanQueues
in interface JGDIBase
queues
- a wild card queue list
JGDIException
- on any error on the GDI layerpublic void unsuspendWithAnswer(java.lang.String[] queues, boolean force, java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
Unsuspends the queues and any jobs which might be active.
The CLI equivialent for this method is qmod -usq
(see man qmod(1)).
unsuspendWithAnswer
in interface JGDIBase
queues
- a wildcard queue listforce
- force the actionanswers
- the answer list
object
JGDIException
- JGDIException on any error on the GDI levelpublic void unsuspend(java.lang.String[] queues, boolean force) throws JGDIException
JGDIBase
Unsuspends the queues and any jobs which might be active.
The CLI equivialent for this method is qmod -usq
(see man qmod(1)).
unsuspend
in interface JGDIBase
queues
- a wildcard queue listforce
- force the action
JGDIException
- JGDIException on any error on the GDI levelpublic void unsuspendQueuesWithAnswer(java.lang.String[] queues, boolean force, java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
Unsuspends the queues and any jobs which might be active.
The CLI equivialent for this method is qmod -usq
(see man qmod(1)).
unsuspendQueuesWithAnswer
in interface JGDIBase
queues
- a wildcard queue listforce
- force the actionanswers
- the answer list
object
JGDIException
- JGDIException on any error on the GDI levelpublic void unsuspendQueues(java.lang.String[] queues, boolean force) throws JGDIException
JGDIBase
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 JGDIBase
queues
- a wildcard queue listforce
- force the action
JGDIException
- JGDIException on any error on the GDI levelpublic void unsuspendJobsWithAnswer(java.lang.String[] jobs, boolean force, java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
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)).
unsuspendJobsWithAnswer
in interface JGDIBase
jobs
- a wildcard queue listforce
- force the actionanswers
- the answer list
object
JGDIException
- JGDIException on any error on the GDI levelpublic void unsuspendJobs(java.lang.String[] jobs, boolean force) throws JGDIException
JGDIBase
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 JGDIBase
jobs
- a wildcard queue listforce
- force the action
JGDIException
- JGDIException on any error on the GDI levelpublic void suspendWithAnswer(java.lang.String[] queues, boolean force, java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
Suspend the queues and any jobs which might be active.
The CLI equivialent for this method is qmod -sq (see man qmod(1)).
suspendWithAnswer
in interface JGDIBase
queues
- a wildcard queue listforce
- force the actionanswers
- the answer list
object
JGDIException
- JGDIException on any error on the GDI levelpublic void suspend(java.lang.String[] queues, boolean force) throws JGDIException
JGDIBase
Suspend the queues and any jobs which might be active.
The CLI equivialent for this method is qmod -sq (see man qmod(1)).
suspend
in interface JGDIBase
queues
- a wildcard queue listforce
- force the action
JGDIException
- JGDIException on any error on the GDI levelpublic void suspendQueuesWithAnswer(java.lang.String[] queues, boolean force, java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
Suspend the queues and any jobs which might be active.
The CLI equivialent for this method is qmod -sq (see man qmod(1)).
suspendQueuesWithAnswer
in interface JGDIBase
queues
- a wildcard queue listforce
- force the actionanswers
- the answer list
object
JGDIException
- JGDIException on any error on the GDI levelpublic void suspendQueues(java.lang.String[] queues, boolean force) throws JGDIException
JGDIBase
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 JGDIBase
queues
- a wildcard queue listforce
- force the action
JGDIException
- JGDIException on any error on the GDI levelpublic void suspendJobsWithAnswer(java.lang.String[] jobs, boolean force, java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
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)).
suspendJobsWithAnswer
in interface JGDIBase
jobs
- a wildcard job listforce
- force the actionanswers
- the answer list
object
JGDIException
- JGDIException on any error on the GDI levelpublic void suspendJobs(java.lang.String[] jobs, boolean force) throws JGDIException
JGDIBase
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 JGDIBase
jobs
- a wildcard job listforce
- force the action
JGDIException
- JGDIException on any error on the GDI levelpublic void rescheduleJobsWithAnswer(java.lang.String[] jobs, boolean force, java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
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)).
rescheduleJobsWithAnswer
in interface JGDIBase
jobs
- a wildcard job range listforce
- force the modification action for the job(s)answers
- the answer list
object
JGDIException
- JGDIException on any error on the GDI levelpublic void rescheduleJobs(java.lang.String[] jobs, boolean force) throws JGDIException
JGDIBase
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 JGDIBase
jobs
- a wildcard job range listforce
- Force the modification action for the job(s)
JGDIException
- JGDIException on any error on the GDI levelpublic void rescheduleQueuesWithAnswer(java.lang.String[] queues, boolean force, java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
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)).
rescheduleQueuesWithAnswer
in interface JGDIBase
queues
- a wildcard queue listforce
- Force the modification action for the queue
despite the apparent current state of the queue.answers
- the answer list
object
JGDIException
- JGDIException on any error on the GDI levelpublic void rescheduleQueues(java.lang.String[] queues, boolean force) throws JGDIException
JGDIBase
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 JGDIBase
queues
- a wildcard queue listforce
- Force the modification action for the queue
despite the apparent current state of the queue.
JGDIException
- JGDIException on any error on the GDI levelpublic void rescheduleWithAnswer(java.lang.String[] queue_or_job, boolean force, java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
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)).
rescheduleWithAnswer
in interface JGDIBase
queue_or_job
- a wildcard queue or job listforce
- Force the modification action for the queue
despite the apparent current state of the queue.answers
- the answer list
object
JGDIException
- JGDIException on any error on the GDI levelpublic void reschedule(java.lang.String[] queue_or_job, boolean force) throws JGDIException
JGDIBase
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)).
reschedule
in interface JGDIBase
queue_or_job
- a wildcard queue or job listforce
- Force the modification action for the queue
despite the apparent current state of the queue.
JGDIException
- JGDIException on any error on the GDI levelpublic void clearJobsWithAnswer(java.lang.String[] jobs, boolean force, java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
Clears the error state of the specified jobs(s).
The CLI equivialent for this method is qmod -cj (see man qmod(1)).
clearJobsWithAnswer
in interface JGDIBase
jobs
- a wildcard job listforce
- Force the modification action for the job(s)answers
- the answer list
object
JGDIException
- JGDIException on any error on the GDI levelpublic void clearJobs(java.lang.String[] jobs, boolean force) throws JGDIException
JGDIBase
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 JGDIBase
jobs
- a wildcard job listforce
- Force the modification action for the job(s)
JGDIException
- JGDIException on any error on the GDI levelpublic void clearQueuesWithAnswer(java.lang.String[] queues, boolean force, java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
Clears the error state of the specified queues(s).
The CLI equivialent for this method is qmod -cq
(see man qmod(1)).
clearQueuesWithAnswer
in interface JGDIBase
queues
- a wildcard queue listforce
- Force the modification action for the queue despite the apparent current state of the queue.
answers
- the answer list
object
JGDIException
- JGDIException on any error on the GDI levelpublic void clearQueues(java.lang.String[] queues, boolean force) throws JGDIException
JGDIBase
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 JGDIBase
queues
- a wildcard queue listforce
- Force the modification action for the queue despite the apparent current state of the queue.
JGDIException
- JGDIException on any error on the GDI levelpublic void disableQueuesWithAnswer(java.lang.String[] queues, boolean force, java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
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)).
disableQueuesWithAnswer
in interface JGDIBase
queues
- a wildcard queue listforce
- force the actionanswers
- the answer list
object
JGDIException
- JGDIException on any error on the GDI levelpublic void disableQueues(java.lang.String[] queues, boolean force) throws JGDIException
JGDIBase
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 JGDIBase
queues
- a wildcard queue listforce
- force the action
JGDIException
- JGDIException on any error on the GDI levelpublic void enableQueuesWithAnswer(java.lang.String[] queues, boolean force, java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
Enable queue(s).
The CLI equivialent for this method is qmod -e
(see man qmod(1)).
enableQueuesWithAnswer
in interface JGDIBase
queues
- a wildcard queue listforce
- force the actionanswers
- the answer list
object
JGDIException
- JGDIException on any error on the GDI levelpublic void enableQueues(java.lang.String[] queues, boolean force) throws JGDIException
JGDIBase
Enable queue(s).
The CLI equivialent for this method is qmod -e
(see man qmod(1)).
enableQueues
in interface JGDIBase
queues
- a wildcard queue listforce
- force the action
JGDIException
- JGDIException on any error on the GDI levelpublic void killAllExecdsWithAnswer(boolean terminateJobs, java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
The CLI equivialent for this method is qconf -ke all
(see man qconf(1)).
killAllExecdsWithAnswer
in interface JGDIBase
terminateJobs
- if true, all jobs running on the execution hosts are
aborted prior to termination of the corresponding
sge_execd(8).answers
- the answer list
object
JGDIException
- on any error on the GDI layerpublic void killAllExecds(boolean terminateJobs) throws JGDIException
JGDIBase
The CLI equivialent for this method is qconf -ke all
(see man qconf(1)).
killAllExecds
in interface JGDIBase
terminateJobs
- if true, all jobs running on the execution hosts are
aborted prior to termination of the corresponding
sge_execd(8).
JGDIException
- on any error on the GDI layerpublic void killExecdWithAnswer(java.lang.String[] hosts, boolean terminateJobs, java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
The CLI equivialent for this method is qconf -ke
(see man qconf(1)).
killExecdWithAnswer
in interface JGDIBase
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).answers
- the answer list
object
JGDIException
- on any error on the GDI layerpublic void killExecd(java.lang.String[] hosts, boolean terminateJobs) throws JGDIException
JGDIBase
The CLI equivialent for this method is qconf -ke
(see man qconf(1)).
killExecd
in interface JGDIBase
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).
JGDIException
- on any error on the GDI layerpublic void killEventClientsWithAnswer(int[] ids, java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
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)).
killEventClientsWithAnswer
in interface JGDIBase
ids
- array with the ids of the event clients which should be killedanswers
- the answer list
object
JGDIException
- JGDIException on any error on the GDI levelpublic void killEventClients(int[] ids) throws JGDIException
JGDIBase
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 JGDIBase
ids
- array with the ids of the event clients which should be killed
JGDIException
- JGDIException on any error on the GDI levelpublic void triggerSchedulerMonitoringWithAnswer(java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
The N1 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)).
triggerSchedulerMonitoringWithAnswer
in interface JGDIBase
answers
- the answer list
object
JGDIException
- JGDIException on any error on the GDI levelpublic void triggerSchedulerMonitoring() throws JGDIException
JGDIBase
The SGE 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 JGDIBase
JGDIException
- JGDIException on any error on the GDI levelpublic void clearShareTreeUsageWithAnswer(java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
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)).
clearShareTreeUsageWithAnswer
in interface JGDIBase
answers
- the answer list
object
JGDIException
public void clearShareTreeUsage() throws JGDIException
JGDIBase
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 JGDIBase
JGDIException
public void killAllEventClientsWithAnswer(java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
Used to shutdown event clients all registered at qmaster(8).
killAllEventClientsWithAnswer
in interface JGDIBase
answers
- the answer list
object
JGDIException
- JGDIException on any error on the GDI levelpublic void killAllEventClients() throws JGDIException
JGDIBase
Used to shutdown event clients all registered at qmaster(8).
killAllEventClients
in interface JGDIBase
JGDIException
- JGDIException on any error on the GDI levelpublic void killMasterWithAnswer(java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
The CLI equivialent for this method is qconf -km
(see man qconf(1)).
killMasterWithAnswer
in interface JGDIBase
answers
- the answer list
object
JGDIException
- on any error on the GDI layerpublic void killMaster() throws JGDIException
JGDIBase
The CLI equivialent for this method is qconf -km
(see man qconf(1)).
killMaster
in interface JGDIBase
JGDIException
- on any error on the GDI layerpublic void killSchedulerWithAnswer(java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
The CLI equivialent for this method is qconf -ks
(see man qconf(1)).
killSchedulerWithAnswer
in interface JGDIBase
answers
- the answer list
object
JGDIException
- on any error on the GDI layerpublic void killScheduler() throws JGDIException
JGDIBase
The CLI equivialent for this method is qconf -ks
(see man qconf(1)).
killScheduler
in interface JGDIBase
JGDIException
- on any error on the GDI layerpublic void startSchedulerWithAnswer(java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
The CLI equivialent for this method is qconf -at scheduler
(see man qconf(1)).
startSchedulerWithAnswer
in interface JGDIBase
answers
- the answer list
object
JGDIException
- on any error on the GDI layerpublic void startScheduler() throws JGDIException
JGDIBase
The CLI equivialent for this method is qconf -at scheduler
(see man qconf(1)).
startScheduler
in interface JGDIBase
JGDIException
- on any error on the GDI layerpublic java.lang.String showDetachedSettingsWithAnswer(java.lang.String[] queues, java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIException
public java.lang.String showDetachedSettings(java.lang.String[] queues) throws JGDIException
JGDIBase
Show the detached settings of a cluster queue Requires root or manager privileges.
The CLI equivialent for this method is qconf -sds
(see man qconf(1)).
showDetachedSettings
in interface JGDIBase
queues
- a wildcard cluster queue list
java.lang.String
JGDIException
- JGDIException on any error on the GDI levelpublic java.lang.String showDetachedSettingsAllWithAnswer(java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIException
public java.lang.String showDetachedSettingsAll() throws JGDIException
JGDIBase
Show the detached settings of all cluster queues Requires root or manager privileges.
The CLI equivialent for this method is qconf -sds
(see man qconf(1)).
showDetachedSettingsAll
in interface JGDIBase
java.lang.String
JGDIException
public void deleteShareTree() throws JGDIException
JGDIBase
Delete the sharetree Requires root or manager privileges.
The CLI equivialent for this method is qconf -dstree
(see man qconf(1)).
deleteShareTree
in interface JGDIBase
JGDIException
- JGDIException on any error on the GDI levelpublic void deleteShareTreeWithAnswer(java.util.List<JGDIAnswer> answers) throws JGDIException
JGDIBase
Delete the sharetree Requires root or manager privileges.
The CLI equivialent for this method is qconf -dstree
(see man qconf(1)).
deleteShareTreeWithAnswer
in interface JGDIBase
answers
- the answer list
object
JGDIException
- JGDIException on any error on the GDI level
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |