|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.adapter.ResourceConnection
The base class for connections to Resource objects. This class is the base connection class used by the ResourceConnectionManager and ResourceConnectionPool classes.
Field Summary | |
protected java.util.HashMap |
_args
|
protected boolean |
_connected
|
protected boolean |
_pooled
|
protected long |
_timeIdled
|
protected static Trace |
_trace
|
static java.lang.String |
code_id
|
Constructor Summary | |
ResourceConnection()
|
|
ResourceConnection(java.util.HashMap args)
|
|
ResourceConnection(java.util.HashMap args,
boolean pooled)
|
Method Summary | |
abstract boolean |
argsEqual(java.util.HashMap args)
Tests if the attribute values in args matches with those set in the ResourceConnection object. |
void |
connect()
|
void |
disconnect()
|
java.lang.String |
getArgsType()
|
long |
getTimeIdled()
Returns the time the connection was last active. |
boolean |
isConnected()
Reports if the connection is connected. |
boolean |
isPooled()
Reports if the connection is pooled. |
void |
setArgs(java.util.HashMap args)
Tests for valid attribute values passed in through args. |
protected void |
setConnected(boolean connected)
Sets the connected attribute and the idle time to the current time. |
void |
setPooled(boolean pooled)
Sets the pooled attribute. |
protected void |
setTimeIdled()
Sets the idle time of the connection to the current time. |
abstract void |
testConnection(java.util.HashMap args)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
protected static Trace _trace
protected java.util.HashMap _args
protected boolean _pooled
protected boolean _connected
protected long _timeIdled
Constructor Detail |
public ResourceConnection()
public ResourceConnection(java.util.HashMap args) throws java.lang.IllegalArgumentException
public ResourceConnection(java.util.HashMap args, boolean pooled) throws java.lang.IllegalArgumentException
Method Detail |
public void setArgs(java.util.HashMap args) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public abstract boolean argsEqual(java.util.HashMap args)
public void connect() throws WavesetException
WavesetException
public void disconnect() throws WavesetException
WavesetException
public java.lang.String getArgsType()
public abstract void testConnection(java.util.HashMap args) throws WavesetException
WavesetException
public void setPooled(boolean pooled)
public boolean isPooled()
public boolean isConnected()
protected void setConnected(boolean connected)
protected void setTimeIdled()
public long getTimeIdled()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |