com.sap.scheduler.api

Class SchedulerTaskID

java.lang.Object
  extended by com.sap.scheduler.runtime.AbstractIdentifier
      extended by com.sap.scheduler.api.SchedulerTaskID
All Implemented Interfaces:
Serializable, Cloneable

public class SchedulerTaskID
extends AbstractIdentifier

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.sap.scheduler.runtime.AbstractIdentifier
AbstractIdentifier.ConcreteInstanceFactory
 
Field Summary
 
Fields inherited from class com.sap.scheduler.runtime.AbstractIdentifier
serialVersionUID
 
Method Summary
static SchedulerTaskID newID()
          Creates a new SchedulerTaskID instance that represent a new guid.
static SchedulerTaskID parseID(byte[] byteGUID)
          Reconstructs a SchedulerTaskID instance from a byte[] representation of a guid.
static SchedulerTaskID parseID(String stringGUID)
          Reconstructs a SchedulerTaskID instance from a string representation.
 
Methods inherited from class com.sap.scheduler.runtime.AbstractIdentifier
clone, equals, getBytes, hashCode, parseID, parseID, setBytes, setBytesNoCloneAndCheck, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

newID

public static SchedulerTaskID newID()
Creates a new SchedulerTaskID instance that represent a new guid.

Returns:
a new SchedulerTaskID instance
See Also:
GUID

parseID

public static SchedulerTaskID parseID(String stringGUID)
                               throws IllegalArgumentException
Reconstructs a SchedulerTaskID instance from a string representation. The supplied a String must be in a valid GUID hex-string format.

Parameters:
stringGUID - - a hex representation of a GUID. If this paramter is null then this method returns null.
Returns:
a SchedulerTaskID holding the identity specified by the given string representation of GUID. Null if stringGUID is null.
Throws:
IllegalArgumentException - - if the string is not a valid hex-string representation of a GUID.
See Also:
GUID.toHexString()

parseID

public static SchedulerTaskID parseID(byte[] byteGUID)
                               throws IllegalArgumentException
Reconstructs a SchedulerTaskID instance from a byte[] representation of a guid. The supplied byte[] must be in a valid GUID format.

Parameters:
byteGUID - - a byte[] representation of a guid. If this parameter is null then this method returns null.
Returns:
a SchedulerTaskID holding the identity specified by the given byte array representation of a GUID. Null if byteGUID is null.
Throws:
IllegalArgumentException - - thrown if the byteGUID argument is not a valid GUID byte representation
See Also:
GUID.toBytes()
Access Rights

This class can be accessed from:


SC DC
[sap.com] ENGFACADE [sap.com] tc/je/scheduler/api


Copyright 2010 SAP AG Complete Copyright Notice