|
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<CfgPhysicalSwitch>
com.genesyslab.platform.applicationblocks.com.queries.CfgPhysicalSwitchQuery
public class CfgPhysicalSwitchQuery
Class designed to construct queries to the Configuration Service for reading CfgPhysicalSwitch object(s).
ConfService
,
CfgPhysicalSwitch
Constructor Summary | |
---|---|
CfgPhysicalSwitchQuery()
Create query object with default filter value for configuration objects of CfgPhysicalSwitch type. |
|
CfgPhysicalSwitchQuery(IConfService service)
Create query object with default filter value for configuration objects of CfgPhysicalSwitch type. |
|
CfgPhysicalSwitchQuery(int dbid)
Create query object with filter initialized for the object DBID. |
|
CfgPhysicalSwitchQuery(java.lang.String name)
Create query object with filter initialized for object name value. |
Method Summary | |
---|---|
AsyncRequestResult<CfgPhysicalSwitch> |
beginExecute(Action<AsyncRequestResult<CfgPhysicalSwitch>> callback,
java.lang.Object state)
Begins the asynchronous execution of the current query. |
java.util.Collection<CfgPhysicalSwitch> |
execute()
Executes the query and returns a list of CfgPhysicalSwitch objects. |
CfgPhysicalSwitch |
executeSingleResult()
Executes a query the result of which is a single object. |
int |
getDbid()
A unique identifier of a physical switch. |
int |
getFolderDbid()
A unique identifier of a folder. |
java.lang.String |
getName()
Name of a physical switch. |
CfgObjectState |
getState()
Current state of a physical switch (see
CfgObjectState
). |
void |
setDbid(int value)
A unique identifier of a physical switch. |
void |
setFolderDbid(int value)
A unique identifier of a folder. |
void |
setName(java.lang.String value)
Name of a physical switch. |
void |
setState(CfgObjectState value)
Current state of a physical switch (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 CfgPhysicalSwitchQuery()
public CfgPhysicalSwitchQuery(IConfService service)
service
- The configuration service to use when executing this querypublic CfgPhysicalSwitchQuery(int dbid)
dbid
- value for filter on object dbidsetDbid(int)
public CfgPhysicalSwitchQuery(java.lang.String name)
name
- value for filter on object namesetName(String)
Method Detail |
---|
public CfgPhysicalSwitch executeSingleResult() throws ConfigException
executeSingleResult
in class CfgQuery<CfgPhysicalSwitch>
ConfigException
public java.util.Collection<CfgPhysicalSwitch> execute() throws ConfigException, java.lang.InterruptedException
execute
in class CfgQuery<CfgPhysicalSwitch>
ConfigException
java.lang.InterruptedException
public AsyncRequestResult<CfgPhysicalSwitch> beginExecute(Action<AsyncRequestResult<CfgPhysicalSwitch>> 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 setDbid(int value)
value
- filter value on field "dbid".public final int getDbid()
setDbid(int)
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 setState(CfgObjectState value)
CfgObjectState
).
If specified, Configuration Server will return information only about physical switches 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 physical switches that
are currently in this state.
setState(CfgObjectState)
public final void setFolderDbid(int value)
value
- filter value on field "folder_dbid".public final int getFolderDbid()
setFolderDbid(int)
|
Platform SDK Java 8.5 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |