public abstract class TAbstractSchemaDefinitionAccessor extends TAbstractAccessor
canBeCancelled, clientRequests, requestCounter, SGUAI
Constructor and Description |
---|
TAbstractSchemaDefinitionAccessor(TStreamAccessor streamAccessor,
TResponseBuilder responseBuilder)
Special Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
cancelRequests()
Cancels all requests issued using current accessor.
|
TResponse |
define(TXMLObject schemaObject)
Defines a schema represented by the given schema within the specified collection.
|
protected TAccessFailureVerifier |
getAccessFailureVerifier()
Provides direct access to the access failure verifier.
|
protected TResponseBuilder |
getResponseBuilder()
Provides direct access to the response builder.
|
protected TStreamAccessor |
getStreamAccessor()
Provides direct access to the stream accessor.
|
void |
setAccessLocation(TAccessLocation accessLocation)
Sets the accessor's properties.
|
void |
setCanBeCancelled(boolean canBeCancelled)
Sets whether request can be canBeCancelled.
|
void |
setMaximumRequestDuration(long maximumRequestDuration)
Sets the maximum request duration in seconds.
|
TResponse |
undefine(java.lang.String collection,
java.lang.String schema)
Undefines a schema represented by the given schema within the specified collection.
|
TResponse |
undefine(TUndefineItem[] undefineItems)
In order to undefine a schema cluster, it is possible to specify a list of objects in an
_UNDEFINE command:
_UNDEFINE=undefineList
where-
undefineList -> undefineItem[, undefineItem]*
undefineItem -> collection[/schema[/doctype]]
|
getAccessCollection, getAccessLocation, getApplicationName, getCanBeCancelled, getDatabaseUri, getInvocation, getLocale, getLockMode, getLockwaitMode, getMaximumRequestDuration, invalidate, invoke, invoke, invoke, setApplicationName, setInvocation, setLockMode, setLockwaitMode
public TAbstractSchemaDefinitionAccessor(TStreamAccessor streamAccessor, TResponseBuilder responseBuilder)
streamAccessor,
- internally needed for core stream access.responseBuilder,
- needed for building high level response objects.public TResponse define(TXMLObject schemaObject) throws TDefineException
schemaObject
- containing the schema that has to be defined on Tamino.TDefineException
- due to any problems that might occur when defining the schema.public TResponse undefine(java.lang.String collection, java.lang.String schema) throws TUndefineException
collection
- schema
- TUndefineException
- due to any problems that might occur when undefining the schema.public TResponse undefine(TUndefineItem[] undefineItems) throws TUndefineException
undefineItems
- Array of undefineItems.TUndefineException
- signals an error while attempting the undefine operation.TUndefineItem
public void setAccessLocation(TAccessLocation accessLocation)
setAccessLocation
in interface TAccessor
setAccessLocation
in class TAbstractAccessor
accessLocation
- the TAccessLocation instance to be used by the accessor.protected final TStreamAccessor getStreamAccessor()
protected final TResponseBuilder getResponseBuilder()
protected final TAccessFailureVerifier getAccessFailureVerifier()
public void setCanBeCancelled(boolean canBeCancelled) throws TAdminException
setCanBeCancelled
in interface TAccessor
setCanBeCancelled
in class TAbstractAccessor
TAdminException
public void cancelRequests() throws TAdminException
cancelRequests
in interface TAccessor
cancelRequests
in class TAbstractAccessor
TAdminException
public void setMaximumRequestDuration(long maximumRequestDuration)
setMaximumRequestDuration
in interface TAccessor
setMaximumRequestDuration
in class TAbstractAccessor
maximumRequestDuration
- the maximum request duration in seconds in seconds be set, TConnection.DEFAULT_TIMEOUT for Tamino default.Copyright (c) 2017 Software AG. All Rights Reserved.