public class SessionManager
extends tecgraf.openbus.opendreams.v2_0.IOpenDreamsPOA
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
UNDEFINED
Default String.
|
static java.lang.Integer |
UNSET_INTEGER
Default String.
|
| Constructor and Description |
|---|
SessionManager()
Constrói o objeto que implementa a interface
IOpenDreams. |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkUser(java.lang.String userId)
Verifica se o usuário é cadastrado no CSBase.
|
void |
closeJobSession(tecgraf.openbus.DRMAA.v2_0.JobSession s) |
tecgraf.openbus.DRMAA.v2_0.JobSession |
createJobSession(java.lang.String sessionName,
java.lang.String contact) |
void |
destroyJobSession(java.lang.String sessionName) |
java.lang.String |
drmaaName()
This attribute contains a string identifying the vendor of the DRMAA
implementation.
|
tecgraf.openbus.DRMAA.v2_0.Version |
drmaaVersion()
This attribute provides the minor / major version number information for
the DRMAA implementation.
|
java.lang.String |
drmsName()
A read-only system identifier denoting the DRM system targeted by the
implementation, e.g., “LSF” or “GridWay”.
|
tecgraf.openbus.DRMAA.v2_0.Version |
drmsVersion()
This attribute provides the DRM-system specific version information.
|
java.lang.String[] |
getJobSessionNames() |
tecgraf.openbus.DRMAA.v2_0.JobSession |
openJobSession(java.lang.String sessionName)
The method is used to open a persisted JobSession or ReservationSession
instance that has previously been created under the given sessionName.
|
void |
registerEventNotification(tecgraf.openbus.DRMAA.v2_0.DrmaaCallback callback) |
boolean |
supports(tecgraf.openbus.DRMAA.v2_0.DrmaaCapability capability)
This method allows to test if the DRMAA implementation supports a feature
specified as optional.
|
_all_interfaces, _invoke, _this, _thispublic static final java.lang.String UNDEFINED
public static final java.lang.Integer UNSET_INTEGER
public SessionManager()
IOpenDreams.public java.lang.String drmsName()
drmsName in interface tecgraf.openbus.DRMAA.v2_0.SessionManagerOperationspublic tecgraf.openbus.DRMAA.v2_0.Version drmsVersion()
drmsVersion in interface tecgraf.openbus.DRMAA.v2_0.SessionManagerOperationspublic java.lang.String drmaaName()
drmaaName in interface tecgraf.openbus.DRMAA.v2_0.SessionManagerOperationspublic tecgraf.openbus.DRMAA.v2_0.Version drmaaVersion()
drmaaVersion in interface tecgraf.openbus.DRMAA.v2_0.SessionManagerOperationspublic boolean supports(tecgraf.openbus.DRMAA.v2_0.DrmaaCapability capability)
supports in interface tecgraf.openbus.DRMAA.v2_0.SessionManagerOperationspublic tecgraf.openbus.DRMAA.v2_0.JobSession createJobSession(java.lang.String sessionName,
java.lang.String contact)
throws tecgraf.openbus.DRMAA.v2_0.DeniedByDrmsException,
tecgraf.openbus.DRMAA.v2_0.InvalidArgumentException,
tecgraf.openbus.DRMAA.v2_0.InternalException
createJobSession in interface tecgraf.openbus.DRMAA.v2_0.SessionManagerOperationssessionName - Denotes a unique name to be used for the new session. If a
session with such a name already exists, the method MUST throw
an InvalidArgumentException. In all other cases, including if
the provided name has the value UNSET, a new session MUST be
created with a unique name generated by the implementationcontact - in some of the interface methods SHALL allow the application
to specify which DRM system instance to use. A contact string
represents a specific installation of a specific DRM system,
e.g., a Condor central manager machine at a given IP address,
or a Grid Engine ‘root’ and ‘cell’. Contact strings are always
implementation-specific and therefore opaque to the
application. If contact has the value UNSET, a default DRM
system SHOULD be contacted. The manual configuration or
automated detection of a default contact string is
implementation-specific.tecgraf.openbus.DRMAA.v2_0.DeniedByDrmsExceptiontecgraf.openbus.DRMAA.v2_0.InternalExceptiontecgraf.openbus.DRMAA.v2_0.InvalidArgumentExceptionpublic tecgraf.openbus.DRMAA.v2_0.JobSession openJobSession(java.lang.String sessionName)
throws tecgraf.openbus.DRMAA.v2_0.InvalidArgumentException,
tecgraf.openbus.DRMAA.v2_0.DeniedByDrmsException,
tecgraf.openbus.DRMAA.v2_0.InternalException
openJobSession in interface tecgraf.openbus.DRMAA.v2_0.SessionManagerOperationstecgraf.openbus.DRMAA.v2_0.InvalidArgumentExceptiontecgraf.openbus.DRMAA.v2_0.DeniedByDrmsExceptiontecgraf.openbus.DRMAA.v2_0.InternalExceptionpublic void closeJobSession(tecgraf.openbus.DRMAA.v2_0.JobSession s)
closeJobSession in interface tecgraf.openbus.DRMAA.v2_0.SessionManagerOperationspublic void destroyJobSession(java.lang.String sessionName)
destroyJobSession in interface tecgraf.openbus.DRMAA.v2_0.SessionManagerOperationspublic java.lang.String[] getJobSessionNames()
getJobSessionNames in interface tecgraf.openbus.DRMAA.v2_0.SessionManagerOperationspublic void registerEventNotification(tecgraf.openbus.DRMAA.v2_0.DrmaaCallback callback)
registerEventNotification in interface tecgraf.openbus.DRMAA.v2_0.SessionManagerOperationspublic static void checkUser(java.lang.String userId)
throws tecgraf.openbus.DRMAA.v2_0.DeniedByDrmsException
userId - identificador do usuáriotecgraf.openbus.DRMAA.v2_0.DeniedByDrmsException - caso não exista um usuário com o identificadorCopyright 2016. All Rights Reserved.