|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for Workspace objects. A Workspace object provides stateful context for each client of a WebLogic Server. Workspaces can persist after clients are disconnected.
Here's an example of how this interface is used:
T3Client t3 = new T3Client(host); t3.connect(); // Request a Workspace object called "MY_SPACE" WorkspaceDef ws = t3.services.workspace().getWorkspace("MY_SPACE"); // Store a value, FIDO, under the name "DOG" ws.store("DOG", "FIDO"); String dogName = (String) ws.fetch("DOG"); ws.store("CAT", "MORRIS");
T3ServicesDef
,
WorkspaceServicesDef
Field Summary | |
static int |
ATTACH
Constant for use when attaching to an existing Workspace. |
static int |
CREATE
Constant for use when creating a new Workspace. |
static java.lang.String |
name_separator
Internal use only. |
static int |
OPEN
Constant for use when creating a new Workspace, or attaching to an existing one, if a matching one exists. |
static java.lang.String |
primordial_name
Internal use only. |
static int |
SCOPE_CLIENT
Constant that indicates the scope for a client workspace. |
static int |
SCOPE_CLUSTER
Constant that indicates the scope of a cluster workspace. |
static int |
SCOPE_GROUP
Constant that indicates the scope for a group workspace. |
static int |
SCOPE_SERVER
Constant that indicates the scope for a server workspace. |
Method Summary | |
void |
addMonitor(Monitor monitor)
Adds a Monitor to a Workspace. |
void |
addMonitor(java.lang.String key,
Monitor monitor)
Adds a Monitor to a Workspace value. |
void |
destroy()
Destroys a Workspace. |
java.lang.Object |
fetch(java.lang.String key)
Fetches an Object by the specified key from the Workspace but does not remove it from the Workspace. |
java.lang.String |
getID()
Retrieves a fully-qualified Workspace identifier. |
java.lang.String |
getName()
Retrieves the name of the Workspace. |
WorkspaceDef |
getWorkspace(java.lang.String name)
Gets a Workspace object that is a child of this Workspace. |
WorkspaceDef |
getWorkspace(java.lang.String name,
int mode)
Returns a Workspace object that is a child of this Workspace. |
WorkspaceDef |
getWorkspace(java.lang.String name,
int mode,
int scope)
Returns the workspace object, if it exists, as a child of the scoped workspace. |
java.util.Enumeration |
keys()
Returns an Enumeration of all the keys of a Workspace. |
java.lang.Object |
remove(java.lang.String key)
Returns an Object by the specified key from the named Workspace and removes it from the Workspace. |
void |
removeMonitor(Monitor monitor)
Removes a Monitor from a workspace. |
void |
removeMonitor(java.lang.String key,
Monitor monitor)
Removes a Monitor from a Workspace value. |
void |
store(java.lang.String key,
java.lang.Object p)
Stores the specified Object with the specified key in the Workspace. |
java.util.Enumeration |
subspaces()
Returns an Enumeration of all the subspace names of this Workspace. |
Field Detail |
public static final int ATTACH
public static final int CREATE
public static final int OPEN
public static final int SCOPE_CLIENT
public static final int SCOPE_GROUP
public static final int SCOPE_SERVER
public static final int SCOPE_CLUSTER
public static final java.lang.String name_separator
public static final java.lang.String primordial_name
Method Detail |
public void store(java.lang.String key, java.lang.Object p) throws T3Exception
key
- Key by which the Object can be retrievedp
- Object to be storedpublic java.lang.Object fetch(java.lang.String key) throws T3Exception
key
- Key of the Object to fetchpublic java.lang.Object remove(java.lang.String key) throws T3Exception
key
- Key of object to removepublic java.util.Enumeration keys() throws T3Exception
public java.util.Enumeration subspaces() throws T3Exception
public void destroy() throws T3Exception
public WorkspaceDef getWorkspace(java.lang.String name) throws T3Exception
name
- Name of the Workspacepublic WorkspaceDef getWorkspace(java.lang.String name, int mode) throws T3Exception
name
- Name of the Workspacemode
- CREATE, ATTACH, OPENpublic WorkspaceDef getWorkspace(java.lang.String name, int mode, int scope) throws T3Exception
name
- Name of the workspacemode
- CREATE, ATTACH, OPENscope
- final static ints defined in this classpublic java.lang.String getID()
public java.lang.String getName()
public void addMonitor(java.lang.String key, Monitor monitor) throws T3Exception
key
- Key by which a Monitor can be identifiedmonitor
- Monitor for operating on Workspace valuespublic void removeMonitor(java.lang.String key, Monitor monitor) throws T3Exception
key
- Key by which a Monitor can be identifiedmonitor
- Monitor for operating on Workspace valuespublic void addMonitor(Monitor monitor) throws T3Exception
monitor
- Monitor for operating on Workspace valuespublic void removeMonitor(Monitor monitor) throws T3Exception
monitor
- Monitor for operating on Workspace values
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |