public class SessionManager extends tecgraf.openbus.opendreams.v2_0.IOpenDreamsPOA implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
UNSET
Default String.
|
static Integer |
UNSET_INTEGER
Default Integer.
|
static Long |
UNSET_LONG
Default Long.
|
| Constructor and Description |
|---|
SessionManager()
Constrói o objeto que implementa a interface
IOpenDreams. |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkUser(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(String sessionName,
String contact) |
void |
destroyJobSession(String sessionName) |
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.
|
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.
|
String[] |
getJobSessionNames() |
tecgraf.openbus.DRMAA.v2_0.JobSession |
openJobSession(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, _this_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_objectpublic static final String UNSET
public static final Integer UNSET_INTEGER
public static final Long UNSET_LONG
public SessionManager()
IOpenDreams.public 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 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(String sessionName, 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(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(String sessionName)
destroyJobSession in interface tecgraf.openbus.DRMAA.v2_0.SessionManagerOperationspublic 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(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.