|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.genesyslab.platform.applicationblocks.com.CfgQuery<TT>
com.genesyslab.platform.applicationblocks.com.CfgFilterBasedQuery<CfgHost>
com.genesyslab.platform.applicationblocks.com.queries.CfgHostQuery
public class CfgHostQuery
Class designed to construct queries to the Configuration Service for reading CfgHost object(s).
ConfService
,
CfgHost
Constructor Summary | |
---|---|
CfgHostQuery()
Create query object with default filter value for configuration objects of CfgHost type. |
|
CfgHostQuery(IConfService service)
Create query object with default filter value for configuration objects of CfgHost type. |
|
CfgHostQuery(int dbid)
Create query object with filter initialized for the object DBID. |
|
CfgHostQuery(java.lang.String name)
Create query object with filter initialized for object name value. |
Method Summary | |
---|---|
AsyncRequestResult<CfgHost> |
beginExecute(Action<AsyncRequestResult<CfgHost>> callback,
java.lang.Object state)
Begins the asynchronous execution of the current query. |
java.util.Collection<CfgHost> |
execute()
Executes the query and returns a list of CfgHost objects. |
CfgHost |
executeSingleResult()
Executes a query the result of which is a single object. |
int |
getDbid()
A unique identifier of a host. |
CfgHostType |
getHostType()
Type of the host (see
CfgHostType
). |
java.lang.String |
getName()
Name of a host. |
CfgOSType |
getOsType()
Type of the operating system (see
CfgOSType
). |
int |
getScsDbid()
A unique identifier of SCS. |
CfgObjectState |
getState()
Current state of a host (see
CfgObjectState
). |
void |
setDbid(int value)
A unique identifier of a host. |
void |
setHostType(CfgHostType value)
Type of the host (see
CfgHostType
). |
void |
setName(java.lang.String value)
Name of a host. |
void |
setOsType(CfgOSType value)
Type of the operating system (see
CfgOSType
). |
void |
setScsDbid(int value)
A unique identifier of SCS. |
void |
setState(CfgObjectState value)
Current state of a host (see
CfgObjectState
). |
Methods inherited from class com.genesyslab.platform.applicationblocks.com.CfgFilterBasedQuery |
---|
equals, getCfgObjectClass, getCfgObjectType, getDoRequestFolderId, getDoRequestObjectPath, getExtraFilter, getFilter, getInt, getProperty, getQueryObjectClass, getString, hashCode, setDoRequestFolderId, setDoRequestObjectPath, setObjectClass, setProperty, toString |
Methods inherited from class com.genesyslab.platform.applicationblocks.com.CfgQuery |
---|
beginExecute, endExecute, execute, executeSingleResult |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.genesyslab.platform.applicationblocks.com.ICfgQuery |
---|
beginExecute, endExecute, execute, executeSingleResult |
Constructor Detail |
---|
public CfgHostQuery()
public CfgHostQuery(IConfService service)
service
- The configuration service to use when executing this querypublic CfgHostQuery(int dbid)
dbid
- value for filter on object dbidsetDbid(int)
public CfgHostQuery(java.lang.String name)
name
- value for filter on object namesetName(String)
Method Detail |
---|
public CfgHost executeSingleResult() throws ConfigException
executeSingleResult
in class CfgQuery<CfgHost>
ConfigException
public java.util.Collection<CfgHost> execute() throws ConfigException, java.lang.InterruptedException
execute
in class CfgQuery<CfgHost>
ConfigException
java.lang.InterruptedException
public AsyncRequestResult<CfgHost> beginExecute(Action<AsyncRequestResult<CfgHost>> callback, java.lang.Object state) throws ConfigException
callback
- The method to be called when query results are availablestate
- a user-defined object that qualifies or contains information about an asynchronous operation
ConfigException
public final void setOsType(CfgOSType value)
CfgOSType
). If specified, Configuration Server
will return information only about the hosts that use operating
systems of this type.
value
- filter value on field "os_type".public final CfgOSType getOsType()
CfgOSType
). If specified, Configuration Server
will return information only about the hosts that use operating
systems of this type.
setOsType(CfgOSType)
public final void setHostType(CfgHostType value)
CfgHostType
).
If specified, Configuration Server will return information only
about the hosts of this type.
value
- filter value on field "host_type".public final CfgHostType getHostType()
CfgHostType
).
If specified, Configuration Server will return information only
about the hosts of this type.
setHostType(CfgHostType)
public final void setState(CfgObjectState value)
CfgObjectState
).
If specified, Configuration Server will return information only
about hosts that are currently in this state.
value
- filter value on field "state".public final CfgObjectState getState()
CfgObjectState
).
If specified, Configuration Server will return information only
about hosts that are currently in this state.
setState(CfgObjectState)
public final void setName(java.lang.String value)
value
- filter value on field "name".public final java.lang.String getName()
setName(String)
public final void setDbid(int value)
value
- filter value on field "dbid".public final int getDbid()
setDbid(int)
public final void setScsDbid(int value)
value
- filter value on field "scs_dbid".public final int getScsDbid()
setScsDbid(int)
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |