org.globus.exec.utils
Class FaultUtils

java.lang.Object
  extended byorg.globus.exec.utils.FaultUtils

public class FaultUtils
extends java.lang.Object

Utility class containing static methods for constructing GRAM faults.


Field Summary
private static org.globus.util.I18n i18n
           
private static org.apache.commons.logging.Log logger
           
 
Constructor Summary
FaultUtils()
           
 
Method Summary
private static void addFaultData(BaseFaultType fault)
           
static CredentialSerializationFaultType createCredentialSerializationFault(StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey)
           
static CredentialSerializationFaultType createCredentialSerializationFault(StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey, java.lang.Exception cause)
           
static ExecutionFailedFaultType createExecutionFailedFault(java.lang.String attribute, StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey)
           
static ExecutionFailedFaultType createExecutionFailedFault(java.lang.String attribute, StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey, java.lang.Exception cause)
           
static FaultType createFault(StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey)
           
static FaultType createFault(StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey, java.lang.Exception cause)
           
static FilePermissionsFaultType createFilePermissionsFault(java.lang.String path, java.lang.String attribute, StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey)
           
static FilePermissionsFaultType createFilePermissionsFault(java.lang.String path, java.lang.String attribute, StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey, java.lang.Exception cause)
           
static InsufficientCredentialsFaultType createInsufficientCredentialsFault(StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey)
           
static InsufficientCredentialsFaultType createInsufficientCredentialsFault(StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey, java.lang.Exception cause)
           
static InternalFaultType createInternalFault(StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey)
           
static InternalFaultType createInternalFault(StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey, java.lang.Exception cause)
           
static InvalidCredentialsFaultType createInvalidCredentialsFault(StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey)
           
static InvalidCredentialsFaultType createInvalidCredentialsFault(StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey, java.lang.Exception cause)
           
static InvalidPathFaultType createInvalidPathFault(java.lang.String path, java.lang.String attribute, StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey)
           
static InvalidPathFaultType createInvalidPathFault(java.lang.String path, java.lang.String attribute, StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey, java.lang.Exception cause)
           
static ServiceLevelAgreementFaultType createServiceLevelAgreementFault(java.lang.String attribute, StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey)
           
static ServiceLevelAgreementFaultType createServiceLevelAgreementFault(java.lang.String attribute, StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey, java.lang.Exception cause)
           
static StagingFaultType createStagingFault(java.lang.String source, java.lang.String destination, java.lang.String attribute, StateEnumeration jobState, java.lang.String command, ResourceKey resourceKey)
           
static StagingFaultType createStagingFault(java.lang.String source, java.lang.String destination, java.lang.String attribute, StateEnumeration jobState, java.lang.String command, ResourceKey resourceKey, java.lang.Exception cause)
           
static UnsupportedFeatureFaultType createUnsupportedFeatureFault(java.lang.String feature, java.lang.String attribute, StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey)
           
static UnsupportedFeatureFaultType createUnsupportedFeatureFault(java.lang.String feature, java.lang.String attribute, StateEnumeration jobState, java.lang.String command, int gt2ErrorCode, ResourceKey resourceKey, java.lang.Exception cause)
           
static java.lang.String faultToString(BaseFaultType fault)
          precondition fault != null
private static org.apache.axis.message.addressing.EndpointReferenceType getEndpointReference(ResourceKey resourceKey)
           
static FaultType makeFault(java.lang.Class faultClass, ResourceKey resourceKey, java.lang.String description, java.lang.Exception cause, StateEnumeration stateWhenFailureOccurred, java.lang.String command, int gt2ErrorCode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static org.apache.commons.logging.Log logger

i18n

private static org.globus.util.I18n i18n
Constructor Detail

FaultUtils

public FaultUtils()
Method Detail

createServiceLevelAgreementFault

public static ServiceLevelAgreementFaultType createServiceLevelAgreementFault(java.lang.String attribute,
                                                                              StateEnumeration jobState,
                                                                              java.lang.String command,
                                                                              int gt2ErrorCode,
                                                                              ResourceKey resourceKey,
                                                                              java.lang.Exception cause)

createServiceLevelAgreementFault

public static ServiceLevelAgreementFaultType createServiceLevelAgreementFault(java.lang.String attribute,
                                                                              StateEnumeration jobState,
                                                                              java.lang.String command,
                                                                              int gt2ErrorCode,
                                                                              ResourceKey resourceKey)

createInvalidPathFault

public static InvalidPathFaultType createInvalidPathFault(java.lang.String path,
                                                          java.lang.String attribute,
                                                          StateEnumeration jobState,
                                                          java.lang.String command,
                                                          int gt2ErrorCode,
                                                          ResourceKey resourceKey,
                                                          java.lang.Exception cause)

createInvalidPathFault

public static InvalidPathFaultType createInvalidPathFault(java.lang.String path,
                                                          java.lang.String attribute,
                                                          StateEnumeration jobState,
                                                          java.lang.String command,
                                                          int gt2ErrorCode,
                                                          ResourceKey resourceKey)

createFilePermissionsFault

public static FilePermissionsFaultType createFilePermissionsFault(java.lang.String path,
                                                                  java.lang.String attribute,
                                                                  StateEnumeration jobState,
                                                                  java.lang.String command,
                                                                  int gt2ErrorCode,
                                                                  ResourceKey resourceKey,
                                                                  java.lang.Exception cause)

createFilePermissionsFault

public static FilePermissionsFaultType createFilePermissionsFault(java.lang.String path,
                                                                  java.lang.String attribute,
                                                                  StateEnumeration jobState,
                                                                  java.lang.String command,
                                                                  int gt2ErrorCode,
                                                                  ResourceKey resourceKey)

createUnsupportedFeatureFault

public static UnsupportedFeatureFaultType createUnsupportedFeatureFault(java.lang.String feature,
                                                                        java.lang.String attribute,
                                                                        StateEnumeration jobState,
                                                                        java.lang.String command,
                                                                        int gt2ErrorCode,
                                                                        ResourceKey resourceKey,
                                                                        java.lang.Exception cause)

createUnsupportedFeatureFault

public static UnsupportedFeatureFaultType createUnsupportedFeatureFault(java.lang.String feature,
                                                                        java.lang.String attribute,
                                                                        StateEnumeration jobState,
                                                                        java.lang.String command,
                                                                        int gt2ErrorCode,
                                                                        ResourceKey resourceKey)

createCredentialSerializationFault

public static CredentialSerializationFaultType createCredentialSerializationFault(StateEnumeration jobState,
                                                                                  java.lang.String command,
                                                                                  int gt2ErrorCode,
                                                                                  ResourceKey resourceKey,
                                                                                  java.lang.Exception cause)

createCredentialSerializationFault

public static CredentialSerializationFaultType createCredentialSerializationFault(StateEnumeration jobState,
                                                                                  java.lang.String command,
                                                                                  int gt2ErrorCode,
                                                                                  ResourceKey resourceKey)

createInsufficientCredentialsFault

public static InsufficientCredentialsFaultType createInsufficientCredentialsFault(StateEnumeration jobState,
                                                                                  java.lang.String command,
                                                                                  int gt2ErrorCode,
                                                                                  ResourceKey resourceKey,
                                                                                  java.lang.Exception cause)

createInsufficientCredentialsFault

public static InsufficientCredentialsFaultType createInsufficientCredentialsFault(StateEnumeration jobState,
                                                                                  java.lang.String command,
                                                                                  int gt2ErrorCode,
                                                                                  ResourceKey resourceKey)

createInvalidCredentialsFault

public static InvalidCredentialsFaultType createInvalidCredentialsFault(StateEnumeration jobState,
                                                                        java.lang.String command,
                                                                        int gt2ErrorCode,
                                                                        ResourceKey resourceKey,
                                                                        java.lang.Exception cause)

createInvalidCredentialsFault

public static InvalidCredentialsFaultType createInvalidCredentialsFault(StateEnumeration jobState,
                                                                        java.lang.String command,
                                                                        int gt2ErrorCode,
                                                                        ResourceKey resourceKey)

createInternalFault

public static InternalFaultType createInternalFault(StateEnumeration jobState,
                                                    java.lang.String command,
                                                    int gt2ErrorCode,
                                                    ResourceKey resourceKey,
                                                    java.lang.Exception cause)

createInternalFault

public static InternalFaultType createInternalFault(StateEnumeration jobState,
                                                    java.lang.String command,
                                                    int gt2ErrorCode,
                                                    ResourceKey resourceKey)

createStagingFault

public static StagingFaultType createStagingFault(java.lang.String source,
                                                  java.lang.String destination,
                                                  java.lang.String attribute,
                                                  StateEnumeration jobState,
                                                  java.lang.String command,
                                                  ResourceKey resourceKey,
                                                  java.lang.Exception cause)

createStagingFault

public static StagingFaultType createStagingFault(java.lang.String source,
                                                  java.lang.String destination,
                                                  java.lang.String attribute,
                                                  StateEnumeration jobState,
                                                  java.lang.String command,
                                                  ResourceKey resourceKey)

createExecutionFailedFault

public static ExecutionFailedFaultType createExecutionFailedFault(java.lang.String attribute,
                                                                  StateEnumeration jobState,
                                                                  java.lang.String command,
                                                                  int gt2ErrorCode,
                                                                  ResourceKey resourceKey,
                                                                  java.lang.Exception cause)

createExecutionFailedFault

public static ExecutionFailedFaultType createExecutionFailedFault(java.lang.String attribute,
                                                                  StateEnumeration jobState,
                                                                  java.lang.String command,
                                                                  int gt2ErrorCode,
                                                                  ResourceKey resourceKey)

createFault

public static FaultType createFault(StateEnumeration jobState,
                                    java.lang.String command,
                                    int gt2ErrorCode,
                                    ResourceKey resourceKey,
                                    java.lang.Exception cause)

createFault

public static FaultType createFault(StateEnumeration jobState,
                                    java.lang.String command,
                                    int gt2ErrorCode,
                                    ResourceKey resourceKey)

makeFault

public static FaultType makeFault(java.lang.Class faultClass,
                                  ResourceKey resourceKey,
                                  java.lang.String description,
                                  java.lang.Exception cause,
                                  StateEnumeration stateWhenFailureOccurred,
                                  java.lang.String command,
                                  int gt2ErrorCode)

addFaultData

private static void addFaultData(BaseFaultType fault)

getEndpointReference

private static org.apache.axis.message.addressing.EndpointReferenceType getEndpointReference(ResourceKey resourceKey)

faultToString

public static java.lang.String faultToString(BaseFaultType fault)
precondition fault != null

Returns:
String