|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EnumerableResource
An abstract representation of a WS Management resource that focuses on WS-Enumeration.
TransferableResource
Field Summary |
---|
Fields inherited from interface com.sun.ws.management.client.TransferableResource |
---|
managementFactory |
Method Summary | |
---|---|
EnumerationCtx |
enumerate(java.lang.Object filter,
java.util.Map<java.lang.String,java.lang.String> namespaces,
java.lang.String dialect,
boolean getEpr,
boolean getResource)
Initiates an enumeration transaction by obtaining an enumeration context. |
EnumerationCtx |
enumerate(java.lang.Object filter,
java.util.Map<java.lang.String,java.lang.String> namespaces,
java.lang.String dialect,
boolean getEpr,
boolean getResource,
boolean getItemCount,
boolean optimized,
long timeout,
long maxElements)
Initiates an enumeration transaction by obtaining an enumeration context. |
EnumerationCtx |
enumerate(java.lang.Object filter,
java.util.Map<java.lang.String,java.lang.String> namespaces,
java.lang.String dialect,
boolean getEpr,
boolean getResource,
boolean getItemCount,
boolean optimized,
long timeout,
long maxElements,
java.lang.Object... params)
Initiates an enumeration transaction by obtaining an enumeration context. |
java.util.List<com.sun.ws.management.server.EnumerationItem> |
getEnumerationItems()
Get the list of the EnumerationItem objects returned from the last successful optimized enumerate or pull. |
java.lang.Long |
getItemCount()
Get the total estimated item count, if available. |
boolean |
isEndOfSequence()
Indicate if the end of sequence has been reached for this EnumerableResource. |
ResourceState |
pull(EnumerationCtx enumerationContext,
int maxTime,
int maxElements,
int maxCharacters)
Requests a list of eprs or objects. |
java.util.List<com.sun.ws.management.server.EnumerationItem> |
pullItems(EnumerationCtx enumerationContext,
int timeout,
int maxElements,
int maxEnvelopeSize,
boolean getItemCount)
Requests a list of EnumerationItem objects. |
Resource[] |
pullResources(EnumerationCtx enumerationContext,
int maxTime,
int maxElements,
int maxCharacters,
java.lang.String endpointUrl)
Assumes getEpr was set to true in the original enumerate(Object, Map, String, boolean, boolean) call. |
void |
release(EnumerationCtx enumerationContext)
Releases a context for enumeration. |
void |
renew(EnumerationCtx enumerationContext)
Renew a context for enumeration. |
Methods inherited from interface com.sun.ws.management.client.TransferableResource |
---|
addOption, addOption, addOption, addOption, delete, delete, delete, get, get, get, getBinding, getDestination, getMaxEnvelopeSize, getMessageTimeout, getOptionSet, getReplyTo, getResourceUri, getSelectorSet, put, put, put, put, resetOptionSet, setBinding, setDestination, setMaxEnvelopeSize, setMessageTimeout, setReplyTo, setResourceUri |
Method Detail |
---|
EnumerationCtx enumerate(java.lang.Object filter, java.util.Map<java.lang.String,java.lang.String> namespaces, java.lang.String dialect, boolean getEpr, boolean getResource) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException, java.io.IOException, FaultException, javax.xml.datatype.DatatypeConfigurationException
filter
- a filter expression to be applied against the enumeration.
For Resource.XPATH_DIALECT
this should be a string
containing the XPath expression. For other dialects this must be an
object recognized by the marshaller.namespaces
- prefix and namespace map for namespaces used in the filter
expression.dialect
- the dialect to be used in filter expressions.
Resource.XPATH_DIALECT
can be used for XPath expressions.getEpr
- indicates that the EndpointReference (EPR) for each item is to
returned in the pull.getResource
- indicates that the individual items are to be returned in
the pull.
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
java.io.IOException
FaultException
javax.xml.datatype.DatatypeConfigurationException
EnumerationCtx enumerate(java.lang.Object filter, java.util.Map<java.lang.String,java.lang.String> namespaces, java.lang.String dialect, boolean getEpr, boolean getResource, boolean getItemCount, boolean optimized, long timeout, long maxElements) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException, java.io.IOException, FaultException, javax.xml.datatype.DatatypeConfigurationException
filter
- a filter expression to be applied against the enumeration.
For Resource.XPATH_DIALECT
this should be a string
containing the XPath expression. For other dialects this must be an
object recognized by the marshaller.namespaces
- prefix and namespace map for namespaces used in the filter
expression.dialect
- the dialect to be used in filter expressions.
Resource.XPATH_DIALECT
can be used for XPath expressions.getEpr
- indicates that the EndpointReference (EPR) for each item is to
returned in the pull.getResource
- indicates that the individual items are to be returned in
the pull.getItemCount
- if true indicates that the estimated item count should be returnedoptimized
- if true the EnumerationItems will be requested to be returned
in the enumerate call. Call getEnumerationItems()
to get the
list of resources returned in this call.timeout
- the OperationTimeout
. This is the
maximum amount of time in milliseconds the client is willing
to wait for the operation to complete.
If <= 0 this parameter is ignored.maxElements
- the maximum number of elements which should be returned.
Ignored if optimized is false.
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
java.io.IOException
FaultException
javax.xml.datatype.DatatypeConfigurationException
EnumerationCtx enumerate(java.lang.Object filter, java.util.Map<java.lang.String,java.lang.String> namespaces, java.lang.String dialect, boolean getEpr, boolean getResource, boolean getItemCount, boolean optimized, long timeout, long maxElements, java.lang.Object... params) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException, java.io.IOException, FaultException, javax.xml.datatype.DatatypeConfigurationException
filter
- a filter expression to be applied against the enumeration.
For Resource.XPATH_DIALECT
this should be a string
containing the XPath expression. For other dialects this must be an
object recognized by the marshaller.namespaces
- prefix and namespace map for namespaces used in the filter
expression.dialect
- the dialect to be used in filter expressions.
Resource.XPATH_DIALECT
can be used for XPath expressions.getEpr
- indicates that the EndpointReference (EPR) for each item is to
returned in the pull.getResource
- indicates that the individual items are to be returned in
the pull.getItemCount
- if true indicates that the estimated item count should be returnedoptimized
- if true the EnumerationItems will be requested to be returned
in the enumerate call. Call getEnumerationItems()
to get the
list of resources returned in this call.timeout
- the OperationTimeout
. This is the
maximum amount of time in milliseconds the client is willing
to wait for the operation to complete.
If <= 0 this parameter is ignored.maxElements
- the maximum number of elements which should be returned.
Ignored if optimized is false.params
- additional parameters to be marshalled into the Enumerate
element in the Body of the request.
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
java.io.IOException
FaultException
javax.xml.datatype.DatatypeConfigurationException
Resource[] pullResources(EnumerationCtx enumerationContext, int maxTime, int maxElements, int maxCharacters, java.lang.String endpointUrl) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException, java.io.IOException, FaultException, javax.xml.datatype.DatatypeConfigurationException, javax.xml.xpath.XPathExpressionException, NoMatchFoundException
enumerate(Object, Map, String, boolean, boolean)
call.
Each EPR that is found in the
returned resource state will be converted into its own Resource implementation.
This is very useful when the response is a collection of EPR's such as when
the getEpr parameter is set in the enumerate()
call.
enumerationContext
- the context created in your call to enumeratemaxTime
- the maxium timeout you are willing to wait for a responsemaxElements
- the maximum number of elements which should be returnedmaxCharacters
- the total number of the characters to be contained in
the returned message. If <= 0 this parameter is ignored.
NOTE: Not all servers support this feature.endpointUrl
- URL address of the service.
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
java.io.IOException
FaultException
javax.xml.datatype.DatatypeConfigurationException
javax.xml.xpath.XPathExpressionException
NoMatchFoundException
ResourceState pull(EnumerationCtx enumerationContext, int maxTime, int maxElements, int maxCharacters) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException, java.io.IOException, FaultException, javax.xml.datatype.DatatypeConfigurationException
enumerationContext
- the context created in your call to enumeratemaxTime
- the maxium timeout you are willing to wait for a responsemaxElements
- the maximum number of elements which should be returnedmaxCharacters
- the total number of the characters to be contained in
the returned message. If <= 0 this parameter is ignored.
NOTE: Not all servers support this feature.
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
java.io.IOException
FaultException
javax.xml.datatype.DatatypeConfigurationException
java.util.List<com.sun.ws.management.server.EnumerationItem> pullItems(EnumerationCtx enumerationContext, int timeout, int maxElements, int maxEnvelopeSize, boolean getItemCount) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException, java.io.IOException, FaultException, javax.xml.datatype.DatatypeConfigurationException
enumerate(Object, Map, String, boolean, boolean)
call this may return the resource, its EPR or both.
enumerationContext
- The context created from a previous enumerate call.timeout
- the OperationTimeout
. This is the
maximum amount of time in milliseconds the client is willing
to wait for the operation to complete.
If <= 0 this parameter is ignored.maxElements
- the maximum number of elements which should be returnedmaxEnvelopeSize
- the desired maximum envelope size for the returned SOAP
envelope. If <= 0 this parameter is ignored.getItemCount
- if true indicates that the estimated item count should be returned
javax.xml.soap.SOAPException
javax.xml.bind.JAXBException
java.io.IOException
FaultException
javax.xml.datatype.DatatypeConfigurationException
void release(EnumerationCtx enumerationContext) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException, java.io.IOException, FaultException, javax.xml.datatype.DatatypeConfigurationException
enumerationContext
- ID of the context to release
javax.xml.datatype.DatatypeConfigurationException
FaultException
java.io.IOException
javax.xml.bind.JAXBException
javax.xml.soap.SOAPException
void renew(EnumerationCtx enumerationContext) throws javax.xml.soap.SOAPException, javax.xml.bind.JAXBException, java.io.IOException, FaultException, javax.xml.datatype.DatatypeConfigurationException
enumerationContext
- ID of the context to renew
javax.xml.datatype.DatatypeConfigurationException
FaultException
java.io.IOException
javax.xml.bind.JAXBException
javax.xml.soap.SOAPException
java.lang.Long getItemCount()
java.util.List<com.sun.ws.management.server.EnumerationItem> getEnumerationItems()
boolean isEndOfSequence()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |