|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.globus.ws.enumeration.ClientEnumeration
public class ClientEnumeration
Provides basic client-side API for managing enumeration lifetime and retrieving enumeration data.
| Field Summary | |
|---|---|
protected EnumerationContextType |
context
|
private static org.globus.util.I18n |
i18n
|
protected DataSource |
port
|
| Constructor Summary | |
|---|---|
ClientEnumeration(DataSource port,
EnumerationContextType context)
Creates ClientEnumeration with a given data source port and an enumeration context. |
|
ClientEnumeration(javax.xml.rpc.Stub stub,
EnumerationContextType context)
Creates ClientEnumeration with a given stub and an enumeration context. |
|
| Method Summary | |
|---|---|
private void |
checkContext()
|
static DataSource |
getAsDataSource(javax.xml.rpc.Stub stub)
Exposes the given stub as a data source interface. |
EnumerationContextType |
getContext()
Gets the current enumeration context. |
EnumExpiration |
getStatus()
Gets the expiration time/duration of the enumeration. |
IterationResult |
pull()
Retrieves the next set of elements of the enumeration. |
IterationResult |
pull(IterationConstraints constraints)
Retrieves the next set of elements of the enumeration. |
void |
release()
Releases the enumeration. |
EnumExpiration |
renew(EnumExpiration expiration)
Sets a new expiration time/duration of the enumeration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static org.globus.util.I18n i18n
protected DataSource port
protected EnumerationContextType context
| Constructor Detail |
|---|
public ClientEnumeration(DataSource port,
EnumerationContextType context)
port - the data source port.context - the enumeration context.
java.lang.IllegalArgumentException - if the port or context parameters are
null.
public ClientEnumeration(javax.xml.rpc.Stub stub,
EnumerationContextType context)
DataSource interface.
stub - the data source stub.context - the enumeration context.
java.lang.IllegalArgumentException - if stub or context parameters are null
or if the stub does not define all of the operations of the
DataSource interface.getAsDataSource(Stub)| Method Detail |
|---|
public static DataSource getAsDataSource(javax.xml.rpc.Stub stub)
stub - the stub to expose as a data source.
java.lang.IllegalArgumentException - if the stub cannot be exposed
as a data source interface (the stub does not define
any or all of the data source methods).public EnumerationContextType getContext()
renew or
pull operations are called or
it can become null after the release operation is
called.
public IterationResult pull()
throws java.rmi.RemoteException
IterationConstraints).
java.rmi.RemoteException
public IterationResult pull(IterationConstraints constraints)
throws java.rmi.RemoteException
constraints - the enumeration constraints. Can be null. If null
the default constraints are assumed (see
(IterationConstraints).
java.rmi.RemoteException
public void release()
throws java.rmi.RemoteException
java.rmi.RemoteException
public EnumExpiration renew(EnumExpiration expiration)
throws java.rmi.RemoteException
expiration - the suggested expiration time/duration of the
enumeration. Can be null to configure the enumeration without
an expiration time/duration (the enumeration will not expire).
java.rmi.RemoteException
public EnumExpiration getStatus()
throws java.rmi.RemoteException
java.rmi.RemoteException
private void checkContext()
throws java.rmi.RemoteException
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||