***  This class provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.connection
Class ConnectionFactoryEvent

com.sas.services.connection.ConnectionFactoryEvent

public class ConnectionFactoryEvent

A class used to notify factory users of important events such as factory shutdown.


Field Summary
static int TYPE_DESTROYED
          Event type indicating factory destruction.
static int TYPE_FATAL_EXCEPTION
          Event type indicating a fatal error which renders the factory unusable.
static int TYPE_SHUTDOWN
          Event type indicating factory shutdown.
 
Constructor Summary
protected ConnectionFactoryEvent(int type)
           
protected ConnectionFactoryEvent(int type, java.lang.Object info)
           
 
Method Summary
 java.lang.Object getInfo()
          Get the event parameter (if any).
 int getType()
          Get the event type.
 

Field Detail

TYPE_SHUTDOWN

public static final int TYPE_SHUTDOWN
Event type indicating factory shutdown.

See Also:
getType(), Constant Field Values

TYPE_DESTROYED

public static final int TYPE_DESTROYED
Event type indicating factory destruction.

See Also:
getType(), Constant Field Values

TYPE_FATAL_EXCEPTION

public static final int TYPE_FATAL_EXCEPTION
Event type indicating a fatal error which renders the factory unusable.

See Also:
getType(), Constant Field Values
Constructor Detail

ConnectionFactoryEvent

protected ConnectionFactoryEvent(int type)

ConnectionFactoryEvent

protected ConnectionFactoryEvent(int type,
                                 java.lang.Object info)
Method Detail

getType

public int getType()
Get the event type.

Returns:
the event type
See Also:
TYPE_SHUTDOWN, TYPE_DESTROYED, TYPE_FATAL_EXCEPTION

getInfo

public java.lang.Object getInfo()
Get the event parameter (if any). Some event types encapsulate additional information. The following list contains details.

TYPE_SHUTDOWN
null
TYPE_DESTROYED
null
TYPE_FATAL_EXCEPTION
FatalConnectionFactoryException

Returns:
the event parameter or null

***  This class provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.