public class NetricsServerInterface
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ConnectionPoolingCommon
Use a pool shared with other NetricsServerInterface objects.
|
static int |
ConnectionPoolingLocal
Use a separate pool for this NetricsServerInterface object.
|
static int |
ConnectionPoolingNone
Do not use connection pooling.
|
Constructor and Description |
---|
NetricsServerInterface(java.lang.String host,
int port)
Create an object for interacting with a Netrics Server.
|
NetricsServerInterface(java.lang.String host,
int port,
boolean debug)
Create an object for interacting with a Netrics Server.
|
NetricsServerInterface(java.lang.String host,
int port,
boolean debug,
boolean log4j)
Create an object for interacting with a Netrics Server.
|
Modifier and Type | Method and Description |
---|---|
NetricsTableStats |
addRecsFromFile(java.lang.String tblname,
boolean replaceNotAdd,
NetricsLock lock,
NetricsRecFile fileDef)
Add or replace records from a file.
|
NetricsTableStats |
addRecsFromFile(java.lang.String tblName,
java.lang.String encoding,
java.lang.String fileName,
boolean doMaxWork,
int[] fieldLengths,
boolean leadingKey,
int initialKey,
boolean fieldNamesFirst,
boolean replaceNotAdd)
Deprecated.
As of release 4.4.3. Use
addRecsFromFile(String,boolean,NetricsLock,NetricsRecFile) |
NetricsTableStats |
addRecsFromFile(java.lang.String tblName,
java.lang.String encoding,
java.lang.String fileName,
boolean doMaxWork,
int[] fieldLengths,
boolean leadingKey,
int initialKey,
boolean fieldNamesFirst,
boolean fieldTypesFirst,
boolean replaceNotAdd,
NetricsLock lock)
Deprecated.
As of release 4.4.3. Use
addRecsFromFile(String,boolean,NetricsLock,NetricsRecFile) |
NetricsTableStats |
addRecsFromFile(java.lang.String tblName,
java.lang.String encoding,
java.lang.String fileName,
boolean doMaxWork,
int[] fieldLengths,
boolean leadingKey,
int initialKey,
boolean fieldNamesFirst,
boolean replaceNotAdd,
NetricsLock lock)
Deprecated.
As of release 4.4.3. Use
addRecsFromFile(String,boolean,NetricsLock,NetricsRecFile) |
java.lang.String[] |
checkpoint(java.lang.String[] tblnames)
Checkpoint tables currenntly loaded in the Netrics Server.
|
void |
cmapcreate(NetricsCharmap cmap)
Create a character map in the remote server.
|
java.lang.String[] |
cmaplist()
Lists the character maps currently loaded in the Netrics Engine.
|
void |
cmdstats_reset(java.lang.String[] cmd_names,
double start_time)
Reset processing statistics for the specified commands.
|
NetricsCmdStats[] |
cmdstats(java.lang.String[] cmd_names)
Retrieve processing statistics for commands.
|
NetricsCmdStats[] |
cmdstats(java.lang.String[] cmd_names,
double duration)
Retrieve processing statistics for specified duration for commands.
|
NetricsCmdStats[] |
cmdstats(java.lang.String[] cmd_names,
double duration,
double end_time)
Retrieve processing statistics for specified time period.
|
void |
cthcreate(NetricsCombinedThesaurus cthes)
Create a combined thesaurus in the remote server.
|
void |
dbdelete(java.lang.String tblName)
Deprecated.
|
NetricsDb |
dbdump(java.lang.String tblName)
Deprecated.
use
tbldump(String) |
NetricsDb |
dbdump(java.lang.String tblName,
NetricsLock lock)
Deprecated.
|
NetricsDbStats[] |
dblist(java.lang.String[] tblnames)
Deprecated.
use
list(String[]) |
NetricsDbStats |
dbload(NetricsDb tbl)
Deprecated.
|
void |
dblock(java.lang.String tblName)
Deprecated.
use
tbllock(String) |
NetricsLock |
dblock(java.lang.String tblName,
boolean searchesOnly,
boolean recursive,
boolean exclusive,
boolean keyed)
Deprecated.
|
NetricsLock |
dblock(java.lang.String tblName,
boolean searchesOnly,
boolean recursive,
boolean exclusive,
boolean keyed,
NetricsLock lock)
Deprecated.
|
void |
dbmove(java.lang.String oldName,
java.lang.String newName)
This method is provided for reverse compatibilty.
|
NetricsDbStats |
dbrecadd(java.lang.String tblName,
NetricsRecord rec)
Deprecated.
|
NetricsDbStats |
dbrecadd(java.lang.String tblName,
NetricsRecSrc src,
boolean doMaxWork)
Deprecated.
|
NetricsDbStats |
dbrecadd(java.lang.String tblName,
NetricsRecSrc src,
boolean doMaxWork,
NetricsLock lock)
Deprecated.
|
NetricsDbStats |
dbrecdelete(java.lang.String tblName,
java.lang.String recKey)
Deprecated.
|
NetricsDbStats |
dbrecdelete(java.lang.String tblName,
java.lang.String[] recKeys,
boolean doMaxWork)
Deprecated.
|
NetricsDbStats |
dbrecdelete(java.lang.String tblName,
java.lang.String[] recKeys,
boolean doMaxWork,
NetricsLock lock)
Deprecated.
|
NetricsRecord |
dbrecget(java.lang.String tblName,
java.lang.String recKey)
Deprecated.
|
NetricsRecord[] |
dbrecget(java.lang.String tblName,
java.lang.String[] recKeys)
Deprecated.
|
NetricsRecord[] |
dbrecget(java.lang.String tblName,
java.lang.String[] recKeys,
NetricsLock lock)
Deprecated.
|
NetricsDbStats |
dbrecreplace(java.lang.String tblName,
NetricsRecord rec)
Deprecated.
|
NetricsDbStats |
dbrecreplace(java.lang.String tblName,
NetricsRecSrc src,
boolean doMaxWork)
Deprecated.
|
NetricsDbStats |
dbrecreplace(java.lang.String tblName,
NetricsRecSrc src,
boolean doMaxWork,
NetricsLock lock)
Deprecated.
|
NetricsSearchResponse |
dbsearch(NetricsDbSearchCfg[] tblCfgs,
NetricsSearchOpts opts)
Deprecated.
|
NetricsSearchResponse |
dbsearch(NetricsDbSearchCfg tblCfg,
NetricsSearchOpts opts)
Deprecated.
|
void |
dbunlock(java.lang.String tblName)
Deprecated.
|
void |
dbunlock(java.lang.String tblName,
boolean searchesOnly,
boolean recursive,
boolean exclusive,
boolean keyed)
Deprecated.
|
void |
dbunlock(java.lang.String tblName,
boolean searchesOnly,
boolean recursive,
boolean exclusive,
boolean keyed,
NetricsLock lock)
Deprecated.
|
boolean |
DebuggingOff()
Turn off debugging output.
|
boolean |
DebuggingOn()
Turn on debugging output.
|
int |
getConnectionPoolingPolicy()
Retrieve the connection pooling policy currently in use.
|
NetricsIdxStats[] |
idxlist(java.lang.String[] tblnames)
Lists statistics for partitioned indexes.
|
boolean |
isDecisionEngine()
Return true if the server indicates it is a Decision Engine.
|
boolean |
isGIPEnabled()
Return true if the server indicates the GIP prefilter is enabled.
|
boolean |
isPsiEnabled()
Return true if the server indicates the Psi prefilter is enabled.
|
boolean |
isSortEnabled()
Return true if the server indicates the Sort prefilter is enabled.
|
NetricsTableStats[] |
list(java.lang.String[] tblnames)
Lists statistics for tables currenntly loaded in the Netrics Server.
|
NetricsTableStats |
recadd(java.lang.String tblName,
NetricsRecord rec)
Add a single record to a table.
|
NetricsTableStats |
recadd(java.lang.String tblName,
NetricsRecSrc src,
boolean doMaxWork)
A version of recadd which does not require a lock key or est records.
|
NetricsTableStats |
recadd(java.lang.String tblName,
NetricsRecSrc src,
boolean doMaxWork,
int estNumRecs)
A version of recadd which does not require a lock key.
|
NetricsTableStats |
recadd(java.lang.String tblName,
NetricsRecSrc src,
boolean doMaxWork,
NetricsLock lock)
recadd with no estimated record count.
|
NetricsTableStats |
recadd(java.lang.String tblName,
NetricsRecSrc src,
boolean doMaxWork,
NetricsLock lock,
int estNumRecs)
Add multiple records to a table.
|
NetricsTableStats |
recdelete(java.lang.String tblName,
java.lang.String recKey)
Delete a single record from a table.
|
NetricsTableStats |
recdelete(java.lang.String tblName,
java.lang.String[] recKeys,
boolean doMaxWork)
A version of recdelete which does not require a lock key.
|
NetricsTableStats |
recdelete(java.lang.String tblName,
java.lang.String[] recKeys,
boolean doMaxWork,
NetricsLock lock)
Delete multiple records from a table.
|
NetricsRecord |
recget(java.lang.String tblName,
java.lang.String recKey)
Get a single record from a table.
|
NetricsRecord[] |
recget(java.lang.String tblName,
java.lang.String[] recKeys)
A version of recget which does not require a lock key.
|
NetricsRecord[] |
recget(java.lang.String tblName,
java.lang.String[] recKeys,
NetricsLock lock)
Get multiple records from a table.
|
NetricsTableStats |
recreplace(java.lang.String tblName,
NetricsRecord rec)
Replace a single existing record in a table.
|
NetricsTableStats |
recreplace(java.lang.String tblName,
NetricsRecSrc src,
boolean doMaxWork)
A version of recreplace which does not require a lock key.
|
NetricsTableStats |
recreplace(java.lang.String tblName,
NetricsRecSrc src,
boolean doMaxWork,
NetricsLock lock)
Replace a set of records in a table.
|
NetricsTableStats |
recupdate(java.lang.String tblName,
NetricsRecord rec)
Update a single existing record in a table.
|
NetricsTableStats |
recupdate(java.lang.String tblName,
NetricsRecSrc src,
boolean doMaxWork)
A version of recupdate which does not require a lock key.
|
NetricsTableStats |
recupdate(java.lang.String tblName,
NetricsRecSrc src,
boolean doMaxWork,
NetricsLock lock)
Update a set of records in a table.
|
java.lang.String[] |
restore(java.lang.String[] tblnames)
Restore tables previously checkpointed.
|
void |
rlcreate(java.lang.String rlModelName,
java.lang.String rlModelFile)
Use this function to load a Netrics Decision Engine model under
the given name.
|
void |
rldelete(java.lang.String[] modellist)
Delete one or more Netrics Decision Engine Models.
|
double |
rleval(java.lang.String rlModelName,
double[] featurevec)
Evaluate a Netrics Decision Engine model with the given vector of feature values.
|
NetricsModelStats[] |
rllist(java.lang.String[] modellist)
List information on Netrics Decision Engine models.
|
NetricsSearchResponse |
search(NetricsSearchCfg[] tblCfgs,
NetricsSearchOpts opts)
Perform a search on one or more tables.
|
NetricsSearchResponse |
search(NetricsSearchCfg tblCfg,
NetricsSearchOpts opts)
Perform a search on a single table.
|
void |
selectLayout(java.lang.String layout)
Set the current cluster layout.
|
NetricsServerStats |
server_info()
Retrieve the server version information.
|
void |
setCharset(java.lang.String charset)
Do not change this unless instructed to do so by your TIBCO representative.
|
void |
setConnectionPoolingPolicy(int policy)
Set the connection pooling policy for this object.
|
java.util.Locale |
setServerLocale(java.util.Locale locale)
Sets the locale used by the interface when formatting exchanges with the server.
|
void |
svrlogoff()
Turn off search logging (must be enabled when the server starts up).
|
void |
svrlogon()
Turn on search logging.
|
void |
svrnoop()
Perform a noop on the Netrics Server.
|
void |
svrshutdown()
Shutdown the Netrics Server.
|
java.lang.String |
svrversion()
Retrieve the version information of this interface.
|
void |
tbldelete(java.lang.String tblName)
Delete a table.
|
NetricsTable |
tbldump(java.lang.String tblName)
Version of tbldump which does not require a lock key.
|
NetricsTable |
tbldump(java.lang.String tblName,
NetricsLock lock)
Dump the records of the specified table.
|
NetricsTableStats |
tblload(NetricsTable tbl)
Used to load a NetricsTable into the server.
|
NetricsTableStats |
tblload(NetricsTable tbl,
boolean doMaxWork)
Used to load a NetricsTable into the server.
|
NetricsTableStats |
tblload(NetricsTable tbl,
NetricsRecFile fileDef)
Create and load a table from a server side CSV file.
|
void |
tbllock(java.lang.String tblName)
For compatibility with older versions.
|
NetricsLock |
tbllock(java.lang.String tblName,
boolean searchesOnly,
boolean recursive,
boolean exclusive,
boolean keyed)
Version of tbllock which does not require a NetricsLock object.
|
NetricsLock |
tbllock(java.lang.String tblName,
boolean searchesOnly,
boolean recursive,
boolean exclusive,
boolean keyed,
NetricsLock lock)
These commands block and unblock operations on a table.
|
void |
tblmove(java.lang.String oldName,
java.lang.String newName)
Rename a table.
|
void |
tblunlock(java.lang.String tblName)
For compatibility with 3.2.
|
void |
tblunlock(java.lang.String tblName,
boolean searchesOnly,
boolean recursive,
boolean exclusive,
boolean keyed)
Version of tblunlock which does not require a NetricsLock object.
|
void |
tblunlock(java.lang.String tblName,
boolean searchesOnly,
boolean recursive,
boolean exclusive,
boolean keyed,
NetricsLock lock)
Unlock a locked table.
|
void |
thcreate(NetricsThesaurus thes)
Create a thesaurus in the remote server.
|
void |
thdelete(java.lang.String[] theslist)
Delete one or more thesauri currently loaded on the server.
|
NetricsThesStats[] |
thes_stats(java.lang.String[] thes_names)
Lists statistics on thesauri currently loaded on the server.
|
java.lang.String[] |
thlist()
Lists the thesauri currently loaded in the Netrics Server.
|
NetricsTableStats |
updRecsFromFile(java.lang.String tblname,
NetricsLock lock,
NetricsRecFile fileDef)
Update records from a file.
|
java.lang.String |
version()
Retreive the Netrics Server Interface version information.
|
void |
wdcreate(NetricsWeightedDictionary wdict)
Create a weighted dictionary in the remote server.
|
public static final int ConnectionPoolingNone
public static final int ConnectionPoolingLocal
public static final int ConnectionPoolingCommon
public NetricsServerInterface(java.lang.String host, int port)
host
- The hostname or IP address of the machine on which the
Netrics Server is running.port
- The port number which the Netrics Server is listening onpublic NetricsServerInterface(java.lang.String host, int port, boolean debug)
host
- The hostname or IP address of the machine on which the
Netrics Server is running.port
- The port number which the Netrics Server is listening ondebug
- If true output to stderr detailed information on all
interactions with the server.public NetricsServerInterface(java.lang.String host, int port, boolean debug, boolean log4j)
host
- The hostname or IP address of the machine on which the
Netrics Server is running.port
- The port number which the Netrics Server is listening ondebug
- If true output detailed information on all
interactions with the server.log4j
- Dump output to log4j logger.public boolean DebuggingOn()
public boolean DebuggingOff()
public void selectLayout(java.lang.String layout)
public int getConnectionPoolingPolicy()
public void setConnectionPoolingPolicy(int policy) throws NetricsException
NetricsException
public void setCharset(java.lang.String charset)
public NetricsDbStats dbload(NetricsDb tbl) throws java.io.IOException, NetricsException
tblload(NetricsTable)
java.io.IOException
NetricsException
public NetricsTableStats tblload(NetricsTable tbl) throws java.io.IOException, NetricsException
tbl
- The table to be loadedNetricsException
- If the server indicates that
an error has occured (Possible errors - ARRAYLEN, TBLEXISTS, TBLPARAM, RECEXISTS, CHARMAP, DUPFIELDNAMES, EXPECTTBLDESC, EXPECTLIST, EXPECTRECORD, FEATURESET, FIELDLENSUM, NOTBLDESC, NORECKEY, NOSRCHTXT, NUMFIELDS, PARAMCONFLICT, PARAMVAL, SHUTDOWN)java.io.IOException
- If an I/O error occursNetricsTable
public NetricsTableStats tblload(NetricsTable tbl, boolean doMaxWork) throws java.io.IOException, NetricsException
tbl
- The table to be loadeddoMaxWork
- process as many records as possible, ignoring those with errors.NetricsException
- If the server indicates that
an error has occured (Possible errors - ARRAYLEN, TBLEXISTS, TBLPARAM, RECEXISTS, CHARMAP, DUPFIELDNAMES, EXPECTTBLDESC, EXPECTLIST, EXPECTRECORD, FEATURESET, FIELDLENSUM, NOTBLDESC, NORECKEY, NOSRCHTXT, NUMFIELDS, PARAMCONFLICT, PARAMVAL, SHUTDOWN)java.io.IOException
- If an I/O error occursNetricsTable
public NetricsTableStats tblload(NetricsTable tbl, NetricsRecFile fileDef) throws NetricsException, java.io.IOException
tbl
- Defines table to be loaded. Record source is ignored.fileDef
- Defines the name and format of the file containing
the records.NetricsException
- If the server indicates that an error
has occured (Possible errors - ARRAYLEN, TBLEXISTS,
TBLPARAM, RECEXISTS, CHARMAP, DUPFIELDNAMES,
EXPECTTBLDESC, EXPECTLIST, EXPECTRECORD, FEATURESET,
FIELDLENSUM, NOTBLDESC, NORECKEY, NOSRCHTXT, NUMFIELDS,
PARAMCONFLICT, PARAMVAL, SHUTDOWN)java.io.IOException
- If an I/O error occursNetricsTable
,
NetricsRecFile
public NetricsTableStats addRecsFromFile(java.lang.String tblname, boolean replaceNotAdd, NetricsLock lock, NetricsRecFile fileDef) throws NetricsException, java.io.IOException
tblname
- Defines table to be loaded.replaceNotAdd
- if true this replaces existing records, if false
it adds new records.lock
- A lock key for the table. May be null.fileDef
- Defines the name and format of the file containing
the records.NetricsException
- If the server indicates that an error
has occured (Possible errors - ARRAYLEN, TBLEXISTS,
TBLPARAM, RECEXISTS, CHARMAP, DUPFIELDNAMES,
EXPECTTBLDESC, EXPECTLIST, EXPECTRECORD, FEATURESET,
FIELDLENSUM, NOTBLDESC, NORECKEY, NOSRCHTXT, NUMFIELDS,
PARAMCONFLICT, PARAMVAL, SHUTDOWN)java.io.IOException
- If an I/O error occursNetricsRecFile
public NetricsTableStats updRecsFromFile(java.lang.String tblname, NetricsLock lock, NetricsRecFile fileDef) throws NetricsException, java.io.IOException
tblname
- Defines table to be loaded.lock
- A lock key for the table. May be null.fileDef
- Defines the name and format of the file containing
the records.NetricsException
- If the server indicates that an error
has occured (Possible errors - ARRAYLEN, TBLEXISTS,
TBLPARAM, RECEXISTS, CHARMAP, DUPFIELDNAMES,
EXPECTTBLDESC, EXPECTLIST, EXPECTRECORD, FEATURESET,
FIELDLENSUM, NOTBLDESC, NORECKEY, NOSRCHTXT, NUMFIELDS,
PARAMCONFLICT, PARAMVAL, SHUTDOWN)java.io.IOException
- If an I/O error occursNetricsRecFile
public NetricsTableStats addRecsFromFile(java.lang.String tblName, java.lang.String encoding, java.lang.String fileName, boolean doMaxWork, int[] fieldLengths, boolean leadingKey, int initialKey, boolean fieldNamesFirst, boolean fieldTypesFirst, boolean replaceNotAdd, NetricsLock lock) throws NetricsException, java.io.IOException
addRecsFromFile(String,boolean,NetricsLock,NetricsRecFile)
NetricsException
java.io.IOException
public NetricsTableStats addRecsFromFile(java.lang.String tblName, java.lang.String encoding, java.lang.String fileName, boolean doMaxWork, int[] fieldLengths, boolean leadingKey, int initialKey, boolean fieldNamesFirst, boolean replaceNotAdd) throws NetricsException, java.io.IOException
addRecsFromFile(String,boolean,NetricsLock,NetricsRecFile)
NetricsException
java.io.IOException
public NetricsTableStats addRecsFromFile(java.lang.String tblName, java.lang.String encoding, java.lang.String fileName, boolean doMaxWork, int[] fieldLengths, boolean leadingKey, int initialKey, boolean fieldNamesFirst, boolean replaceNotAdd, NetricsLock lock) throws NetricsException, java.io.IOException
addRecsFromFile(String,boolean,NetricsLock,NetricsRecFile)
NetricsException
java.io.IOException
public void thcreate(NetricsThesaurus thes) throws java.io.IOException, NetricsException
thes
- The NetricsThesaurus object to create on the remote server. The name and synonyms of the thesaurus are defined by using the thesaurus object's methods.NetricsException
- If the server indicates that
an error has occured (Possible errors - ARRAYLEN, CHARMAP, EXPECTTHESNAME, EXPECTLIST, FEATURESET, IOERROR, PARAMVAL, PARAMMISSING)java.io.IOException
public void cthcreate(NetricsCombinedThesaurus cthes) throws java.io.IOException, NetricsException
cthes
- The NetricsCombinedThesaurus object to create on the
remote server. The name and synonyms of the thesaurus are defined
by using the thesaurus object's methods.NetricsException
- If the server indicates that
an error has occured (Possible errors - ARRAYLEN, CHARMAP,
EXPECTTHESNAME, EXPECTLIST, FEATURESET, IOERROR, PARAMVAL,
PARAMMISSING)java.io.IOException
public void cmapcreate(NetricsCharmap cmap) throws java.io.IOException, NetricsException
cmap
- The character map to add.java.io.IOException
NetricsException
public void wdcreate(NetricsWeightedDictionary wdict) throws java.io.IOException, NetricsException
wdict
- The NetricsWeightedDictionary object to create on the remote server. The name and synonyms of the thesaurus are defined by using the thesaurus object's methods.NetricsException
- If the server indicates that
an error has occured (Possible errors - ARRAYLEN, CHARMAP, EXPECTTHESNAME, EXPECTLIST, FEATURESET, IOERROR, PARAMVAL, PARAMMISSING)java.io.IOException
public void rlcreate(java.lang.String rlModelName, java.lang.String rlModelFile) throws java.io.IOException, NetricsException
rlModelName
- The name the model will be loaded under.rlModelFile
- The location of the model file on disk. The model will
be provided to you by your Netrics representative.java.io.IOException
NetricsException
NetricsSearchOpts.setRlModelName(java.lang.String)
public NetricsModelStats[] rllist(java.lang.String[] modellist) throws java.io.IOException, NetricsException
modellist
- The names of the models to be listed.
Pass null to list all models on the server.
NetricsException
- If the server indicates that
an error has occured (Possible errors - NODBDESC,
RLINKMODELNOTFOUND, EXPECTLIST, FEATURESET, PARAMVAL, INTERNAL,
NOSYSINIT)java.io.IOException
- If an I/O error occursNetricsModelStats
public void rldelete(java.lang.String[] modellist) throws java.io.IOException, NetricsException
modellist
- The names of the models to be deleted.
Pass null to delete all models on the server.
NetricsException
- If the server indicates that
an error has occured (Possible errors - NODBDESC,
RLINKMODELNOTFOUND, EXPECTLIST, FEATURESET, PARAMVAL, INTERNAL,
NOSYSINIT)java.io.IOException
- If an I/O error occurspublic double rleval(java.lang.String rlModelName, double[] featurevec) throws java.io.IOException, NetricsException
rlModelName
- The name of the model to use in the evaluation.featurevec
- An array of double feature values (from 0.0 to 1.0)
which will be evaluated by the model. The number of features in this
array must be the same as the model was created and trained with.NetricsException
- If the server indicates that
an error has occured (Possible errors - NORLINKMODEL, RLINKMODELNOTFOUND, NOFEATUREVEC, NUMFEATURESMISMATCH, FEATURESET, IOERROR, PARAMVAL)java.io.IOException
public NetricsSearchResponse dbsearch(NetricsDbSearchCfg tblCfg, NetricsSearchOpts opts) throws java.io.IOException, NetricsException
search(NetricsSearchCfg,NetricsSearchOpts)
java.io.IOException
NetricsException
public NetricsSearchResponse search(NetricsSearchCfg tblCfg, NetricsSearchOpts opts) throws java.io.IOException, NetricsException
java.io.IOException
NetricsException
search(NetricsSearchCfg[],NetricsSearchOpts)
public NetricsSearchResponse dbsearch(NetricsDbSearchCfg[] tblCfgs, NetricsSearchOpts opts) throws java.io.IOException, NetricsException
search(NetricsSearchCfg[],NetricsSearchOpts)
java.io.IOException
NetricsException
public NetricsSearchResponse search(NetricsSearchCfg[] tblCfgs, NetricsSearchOpts opts) throws java.io.IOException, NetricsException
tblCfgs
- One NetricsSearchCfg per table which will be searched (can be specified in any order)opts
- The configuration object for the overall search - allows a number of options for searchingNetricsException
- If the server indicates that
an error has occured (Possible errors - ARRAYLEN, TBLLOCKED, TBLNOTFOUND, EXPECTTBLDESC, EXPECTRTBLDESC, EXPECTLIST, EXPECTQUERY, FEATUREOFF, FEATURESET, LISTLEN, LOOKUP, NOTBLDESC, NOQUERY, NSFIELD, NUMFIELDS, PARAMCONFLICT, PARAMMISSING, PARAMVAL, PARTIAL, PREDTYPE, SRCHPARAM, THESNOTFOUND, UNKFIELD)java.io.IOException
- If an I/O error occursNetricsSearchCfg
,
NetricsSearchOpts
public NetricsDbStats[] dblist(java.lang.String[] tblnames) throws java.io.IOException, NetricsException
list(String[])
java.io.IOException
NetricsException
public NetricsTableStats[] list(java.lang.String[] tblnames) throws java.io.IOException, NetricsException
tblnames
- The names of the tables for which to recieve statistics. Pass null to recieve a NetricsTableStats object for every table currently loaded
NetricsException
- If the server indicates that
an error has occured (Possible errors - TBLNOTFOUND, EXPECTTBLDESC, EXPECTLIST, FEATURESET, NOTBLDESC, NOSYSINIT)java.io.IOException
- If an I/O error occursNetricsTableStats
public java.lang.String[] checkpoint(java.lang.String[] tblnames) throws java.io.IOException, NetricsException
tblnames
- The names of the tables to be checkpointed.
Pass null to checkpoint all tables currently in the server.
NetricsException
- If the server indicates that
an error has occured (Possible errors - DBPARAM, NODBDESC,
EXPECTDBDESC, DUPDBDESCS, FEATURESET, DBNOTFOUND, PARTIALCHPT,
CHPTFAILED, INTERNAL, NOSYSINIT)java.io.IOException
- If an I/O error occurspublic java.lang.String[] restore(java.lang.String[] tblnames) throws java.io.IOException, NetricsException
tblnames
- The names of the tables to be restored.
Pass null to restore all tables that were previously
checkpointed.
NetricsException
- If the server indicates that
an error has occured (Possible errors - DBPARAM, NODBDESC,
EXPECTDBDESC, DUPDBDESCS, FEATURESET, PARTIALRESTORE,
RESTOREFAILED, INTERNAL, NOSYSINIT, SHUTDOWN)java.io.IOException
- If an I/O error occurspublic NetricsIdxStats[] idxlist(java.lang.String[] tblnames) throws java.io.IOException, NetricsException
tblnames
- The names of the tables for which to recieve statistics. Pass null to recieve information for indexes of all tables.
NetricsException
- If the server indicates that
an error has occured (Possible errors - TBLNOTFOUND, EXPECTTBLDESC, EXPECTLIST, FEATURESET, NOTBLDESC, NOSYSINIT)java.io.IOException
- If an I/O error occursNetricsIdxStats
public void thdelete(java.lang.String[] theslist) throws java.io.IOException, NetricsException
theslist
- The names of the thesauri to be deleted.
Pass null to delete all thesauri on the server.
NetricsException
- If the server indicates that
an error has occured (Possible errors - NODBDESC, THESNOTFOUND,
EXPECTLIST, FEATURESET, PARAMVAL, INTERNAL, NOSYSINIT)java.io.IOException
- If an I/O error occurspublic java.lang.String[] thlist() throws java.io.IOException, NetricsException
NetricsException
- If the server indicates that
an error has occured (Possible errors - THESNOTFOUND, EXPECTLIST, PARAMVAL, NOTBLDESC, NOSYSINIT)java.io.IOException
- If an I/O error occurspublic NetricsThesStats[] thes_stats(java.lang.String[] thes_names) throws java.io.IOException, NetricsException
thes_names
- A list of the thesaurus names who's statistics
should be returned. If null statistics on all thesauri
is returned.NetricsException
- If the server indicates that
an error has occured (Possible errors - THESNOTFOUND, EXPECTLIST, PARAMVAL, NOTBLDESC, NOSYSINIT)java.io.IOException
- If an I/O error occursNetricsThesStats
public java.lang.String[] cmaplist() throws java.io.IOException, NetricsException
NetricsException
- If the server indicates that
an error has occured (Possible errors - THESNOTFOUND, EXPECTLIST, PARAMVAL, NOTBLDESC, NOSYSINIT)java.io.IOException
- If an I/O error occurspublic void dbmove(java.lang.String oldName, java.lang.String newName) throws java.io.IOException, NetricsException
java.io.IOException
NetricsException
public void tblmove(java.lang.String oldName, java.lang.String newName) throws java.io.IOException, NetricsException
newName
already exists, it will be deleted, and replaced by the
table that you are renaming.
oldName
- The name of the table that will be renamednewName
- The new name of the tableNetricsException
- If the server indicates that
an error has occured (Possible errors - TBLMOVESAME, TBLNOTFOUND, EXPECTTBLDESC, FEATURESET, NOTBLDESC, NOSYSINIT)java.io.IOException
- If an I/O error occurspublic void dbdelete(java.lang.String tblName) throws java.io.IOException, NetricsException
tbldelete(String)
java.io.IOException
NetricsException
public void tbldelete(java.lang.String tblName) throws java.io.IOException, NetricsException
tblName
- The name of the table to be deletedNetricsException
- If the server indicates that
an error has occured (Possible errors - TBLNOTFOUND, EXPECTTBLDESC, NOTBLDESC, NOSYSINIT)java.io.IOException
- If an I/O error occurspublic NetricsDb dbdump(java.lang.String tblName, NetricsLock lock) throws java.io.IOException, NetricsException
tbldump(String,NetricsLock)
java.io.IOException
NetricsException
public NetricsTable tbldump(java.lang.String tblName, NetricsLock lock) throws java.io.IOException, NetricsException
tblName
- The name of the table to dumplock
- A NetricsLock object which will pass the lock key to the table. If the
table is locked with a lock key and this parameter is not passed with the matchine key,
the operation will fail.NetricsException
- If the server indicates that
an error has occured (Possible errors - TBLLOCKED, TBLNOTFOUND, EXPECTTBLDESC, NOTBLDESC, PARAMVAL, SHUTDOWN)java.io.IOException
- If an I/O error occurstblload(com.netrics.likeit.NetricsTable)
public NetricsDb dbdump(java.lang.String tblName) throws java.io.IOException, NetricsException
tbldump(String)
java.io.IOException
NetricsException
public NetricsTable tbldump(java.lang.String tblName) throws java.io.IOException, NetricsException
java.io.IOException
NetricsException
public NetricsLock dblock(java.lang.String tblName, boolean searchesOnly, boolean recursive, boolean exclusive, boolean keyed, NetricsLock lock) throws java.io.IOException, NetricsException
tbllock(String,boolean,boolean,boolean,boolean,NetricsLock)
java.io.IOException
NetricsException
public NetricsLock tbllock(java.lang.String tblName, boolean searchesOnly, boolean recursive, boolean exclusive, boolean keyed, NetricsLock lock) throws java.io.IOException, NetricsException
tblName
- The name of the table to locksearchesOnly
- If this parameter is true, the lock blocks only
searches, and all updates may proceed unaffected by the lock.recursive
- If this parameter is true, the lock is a counting lock.exclusive
- If this parameter is true, the lock will fail on a
locked table unless the lock is also recursive and keyed.keyed
- If this parameter is true, a key will be generated which
can be used to perform operations on tables even though they are locked.lock
- A NetricsLock object which will pass the lock key to the table. If the
table is locked with a lock key and this parameter is not passed with the matchine key,
the operation will fail.NetricsException
- If the server indicates that
an error has occured (Possible errors - EXPECTTBLDESC, NOTBLDESC, TBLNOTFOUND, TBLLOCKED, TBLUNLOCKED, PARAMVAL)java.io.IOException
- If an I/O error occurstblunlock(java.lang.String, boolean, boolean, boolean, boolean, com.netrics.likeit.NetricsLock)
public NetricsLock dblock(java.lang.String tblName, boolean searchesOnly, boolean recursive, boolean exclusive, boolean keyed) throws java.io.IOException, NetricsException
tbllock(String,boolean,boolean,boolean,boolean)
java.io.IOException
NetricsException
public NetricsLock tbllock(java.lang.String tblName, boolean searchesOnly, boolean recursive, boolean exclusive, boolean keyed) throws java.io.IOException, NetricsException
java.io.IOException
NetricsException
public void dblock(java.lang.String tblName) throws java.io.IOException, NetricsException
tbllock(String)
java.io.IOException
NetricsException
public void tbllock(java.lang.String tblName) throws java.io.IOException, NetricsException
java.io.IOException
NetricsException
public void dbunlock(java.lang.String tblName, boolean searchesOnly, boolean recursive, boolean exclusive, boolean keyed, NetricsLock lock) throws java.io.IOException, NetricsException
tblunlock(String,boolean,boolean,boolean,boolean,NetricsLock)
java.io.IOException
NetricsException
public void tblunlock(java.lang.String tblName, boolean searchesOnly, boolean recursive, boolean exclusive, boolean keyed, NetricsLock lock) throws java.io.IOException, NetricsException
NetricsException
- If the server indicates that
an error has occured (Possible errors - same as tbllock)java.io.IOException
- If an I/O error occurstbllock(java.lang.String, boolean, boolean, boolean, boolean, com.netrics.likeit.NetricsLock)
public void dbunlock(java.lang.String tblName, boolean searchesOnly, boolean recursive, boolean exclusive, boolean keyed) throws java.io.IOException, NetricsException
tblunlock(String,boolean,boolean,boolean,boolean)
java.io.IOException
NetricsException
public void tblunlock(java.lang.String tblName, boolean searchesOnly, boolean recursive, boolean exclusive, boolean keyed) throws java.io.IOException, NetricsException
java.io.IOException
NetricsException
public void dbunlock(java.lang.String tblName) throws java.io.IOException, NetricsException
tblunlock(String)
java.io.IOException
NetricsException
public void tblunlock(java.lang.String tblName) throws java.io.IOException, NetricsException
java.io.IOException
NetricsException
public NetricsRecord[] dbrecget(java.lang.String tblName, java.lang.String[] recKeys, NetricsLock lock) throws java.io.IOException, NetricsException
recget(String,String[],NetricsLock)
java.io.IOException
NetricsException
public NetricsRecord[] recget(java.lang.String tblName, java.lang.String[] recKeys, NetricsLock lock) throws java.io.IOException, NetricsException
tblName
- The name of the table to get the records fromrecKeys
- The record keys of the records to getlock
- A NetricsLock object which will pass the lock key to the table. If the
table is locked with a lock key and this parameter is not passed with the matchine key,
the operation will fail.NetricsException
- If the server indicates that
an error has occured (Possible errors - TBLLOCKED, TBLNOTFOUND, DUPRECKEYS, EXPECTTBLDESC, EXPECTLIST, EXPECTRECKEY, NOTBLDESC, NORECKEY, RECNOTFOUND, UPDPARAM)java.io.IOException
- If an I/O error occursNetricsRecord
public NetricsRecord[] dbrecget(java.lang.String tblName, java.lang.String[] recKeys) throws java.io.IOException, NetricsException
recget(String,String[])
java.io.IOException
NetricsException
public NetricsRecord[] recget(java.lang.String tblName, java.lang.String[] recKeys) throws java.io.IOException, NetricsException
java.io.IOException
NetricsException
public NetricsRecord dbrecget(java.lang.String tblName, java.lang.String recKey) throws java.io.IOException, NetricsException
recget(String,String)
java.io.IOException
NetricsException
public NetricsRecord recget(java.lang.String tblName, java.lang.String recKey) throws java.io.IOException, NetricsException
tblName
- The name of the table to get the record fromrecKey
- The record key of the recordNetricsException
- If the server indicates that
an error has occuredjava.io.IOException
- If an I/O error occursNetricsTableStats
public NetricsDbStats dbrecadd(java.lang.String tblName, NetricsRecSrc src, boolean doMaxWork, NetricsLock lock) throws java.io.IOException, NetricsException
recadd(String,NetricsRecSrc,boolean,NetricsLock,int)
java.io.IOException
NetricsException
public NetricsTableStats recadd(java.lang.String tblName, NetricsRecSrc src, boolean doMaxWork, NetricsLock lock, int estNumRecs) throws java.io.IOException, NetricsException
tblName
- The name of the table to which the records will be added.src
- The record source for those records which will be added.doMaxWork
- Continue on error - adds those records which do not already exist.lock
- A NetricsLock object which will pass the lock key to
the table. If the table is locked with a lock key and
this parameter is not passed with the matchine key,
the operation will fail.estNumRecs
- The estimated number of records in the record
source. This is used by the server to determine
the most efficient loading method. It need not
be exact or even close.NetricsException
- If the server indicates that
an error has occured (Possible errors - TBLLOCKED, TBLNOTFOUND, EXPECTTBLDESC, EXPECTLIST, EXPECTRECORD, FIELDLENSUM, NOTBLDESC, NORECKEY, NOSRCHTXT, NUMFIELDS, RECEXISTS, UPDPARAM, SHUTDOWN)java.io.IOException
- If an I/O error occursNetricsTableStats
public NetricsDbStats dbrecadd(java.lang.String tblName, NetricsRecSrc src, boolean doMaxWork) throws java.io.IOException, NetricsException
recadd(String,NetricsRecSrc,boolean)
java.io.IOException
NetricsException
public NetricsTableStats recadd(java.lang.String tblName, NetricsRecSrc src, boolean doMaxWork, NetricsLock lock) throws java.io.IOException, NetricsException
java.io.IOException
NetricsException
public NetricsTableStats recadd(java.lang.String tblName, NetricsRecSrc src, boolean doMaxWork, int estNumRecs) throws java.io.IOException, NetricsException
java.io.IOException
NetricsException
public NetricsTableStats recadd(java.lang.String tblName, NetricsRecSrc src, boolean doMaxWork) throws java.io.IOException, NetricsException
java.io.IOException
NetricsException
public NetricsDbStats dbrecadd(java.lang.String tblName, NetricsRecord rec) throws java.io.IOException, NetricsException
recadd(String,NetricsRecord)
java.io.IOException
NetricsException
public NetricsTableStats recadd(java.lang.String tblName, NetricsRecord rec) throws java.io.IOException, NetricsException
tblName
- The name of the table that the record
will be added torec
- The record which will be addedNetricsException
- If the server indicates that
an error has occuredjava.io.IOException
- If an I/O error occursNetricsTableStats
public NetricsDbStats dbrecdelete(java.lang.String tblName, java.lang.String[] recKeys, boolean doMaxWork, NetricsLock lock) throws java.io.IOException, NetricsException
recdelete(String,String[],boolean,NetricsLock)
java.io.IOException
NetricsException
public NetricsTableStats recdelete(java.lang.String tblName, java.lang.String[] recKeys, boolean doMaxWork, NetricsLock lock) throws java.io.IOException, NetricsException
tblName
- The name of the table from which the records will be
deletedrecKeys
- The record keys of the records to be deleteddoMaxWork
- Continue on error - deletes those records which do existlock
- A NetricsLock object which will pass the lock key to the table. If the
table is locked with a lock key and this parameter is not passed with the matchine key,
the operation will fail.NetricsException
- If the server indicates that
an error has occured (Possible errors - TBLLOCKED, TBLNOTFOUND, DUPRECKEYS, EXPECTTBLDESC, EXPECTLIST, EXPECTRECKEY, NOTBLDESC, NORECKEY, RECNOTFOUND, UPDPARAM)java.io.IOException
- If an I/O error occursNetricsTableStats
public NetricsDbStats dbrecdelete(java.lang.String tblName, java.lang.String[] recKeys, boolean doMaxWork) throws java.io.IOException, NetricsException
recdelete(String,String[],boolean)
java.io.IOException
NetricsException
public NetricsTableStats recdelete(java.lang.String tblName, java.lang.String[] recKeys, boolean doMaxWork) throws java.io.IOException, NetricsException
java.io.IOException
NetricsException
public NetricsDbStats dbrecdelete(java.lang.String tblName, java.lang.String recKey) throws java.io.IOException, NetricsException
recdelete(String,String)
java.io.IOException
NetricsException
public NetricsTableStats recdelete(java.lang.String tblName, java.lang.String recKey) throws java.io.IOException, NetricsException
tblName
- The name of the table from which the record will be
deletedrecKey
- The record key of the record to be deletedNetricsException
- If the server indicates that
an error has occuredjava.io.IOException
- If an I/O error occursNetricsTableStats
public NetricsDbStats dbrecreplace(java.lang.String tblName, NetricsRecSrc src, boolean doMaxWork, NetricsLock lock) throws java.io.IOException, NetricsException
recreplace(String,NetricsRecSrc,boolean,NetricsLock)
java.io.IOException
NetricsException
public NetricsTableStats recreplace(java.lang.String tblName, NetricsRecSrc src, boolean doMaxWork, NetricsLock lock) throws java.io.IOException, NetricsException
tblName
- The name of the table containing the records
being replacedsrc
- The record source for those records which will be replaceddoMaxWork
- Continue on error - replaces those records which do existlock
- A NetricsLock object which will pass the lock key to the table. If the
table is locked with a lock key and this parameter is not passed with the matchine key,
the operation will fail.NetricsException
- If the server indicates that
an error has occured (Possilbe errors - TBLLOCKED, TBLNOTFOUND, DUPRECKEYS, EXPECTTBLDESC, EXPECTLIST, EXPECTRECORD, FIELDLENSUM, NOTBLDESC, NORECKEY, NOSRCHTXT, NUMFIELDS, RECNOTFOUND, UPDPARAM, SHUTDOWN)java.io.IOException
- If an I/O error occursNetricsTableStats
public NetricsDbStats dbrecreplace(java.lang.String tblName, NetricsRecSrc src, boolean doMaxWork) throws java.io.IOException, NetricsException
recreplace(String,NetricsRecSrc,boolean)
java.io.IOException
NetricsException
public NetricsTableStats recreplace(java.lang.String tblName, NetricsRecSrc src, boolean doMaxWork) throws java.io.IOException, NetricsException
java.io.IOException
NetricsException
public NetricsDbStats dbrecreplace(java.lang.String tblName, NetricsRecord rec) throws java.io.IOException, NetricsException
recreplace(String,NetricsRecord)
java.io.IOException
NetricsException
public NetricsTableStats recreplace(java.lang.String tblName, NetricsRecord rec) throws java.io.IOException, NetricsException
tblName
- The name of the table containing the record
being replacedrec
- The new record. The value of its record key should be the record key of the record being replacedNetricsException
- If the server indicates that
an error has occuredjava.io.IOException
- If an I/O error occursNetricsTableStats
public NetricsTableStats recupdate(java.lang.String tblName, NetricsRecSrc src, boolean doMaxWork, NetricsLock lock) throws java.io.IOException, NetricsException
tblName
- The name of the table containing the records
being updatedsrc
- The record source for those records which will be updateddoMaxWork
- Continue on error - update as man records as
possible, ignoring records with errors.lock
- A NetricsLock object which will pass the lock key to
the table. If the table is locked with a lock key and
this parameter is not passed with the matchine key,
the operation will fail.NetricsException
- If the server indicates that
an error has occured (Possilbe errors - TBLLOCKED, TBLNOTFOUND,
DUPRECKEYS, EXPECTTBLDESC, EXPECTLIST, EXPECTRECORD, FIELDLENSUM,
NOTBLDESC, NORECKEY, NOSRCHTXT, NUMFIELDS, RECNOTFOUND, UPDPARAM,
SHUTDOWN)java.io.IOException
- If an I/O error occursNetricsTableStats
public NetricsTableStats recupdate(java.lang.String tblName, NetricsRecSrc src, boolean doMaxWork) throws java.io.IOException, NetricsException
java.io.IOException
NetricsException
public NetricsTableStats recupdate(java.lang.String tblName, NetricsRecord rec) throws java.io.IOException, NetricsException
tblName
- The name of the table containing the record
being udpated.rec
- The new version of the record.NetricsException
- If the server indicates that
an error has occuredjava.io.IOException
- If an I/O error occursNetricsTableStats
public NetricsCmdStats[] cmdstats(java.lang.String[] cmd_names) throws java.io.IOException, NetricsException
cmd_names
- The names of the commands to be included in the
report. The class NetricsCmdStats has defines of all command names.NetricsException
- If the server indicates that an error
has occured (Possible errors - PARAMVAL, EXPECTLIST, INTERNAL)java.io.IOException
- If an I/O error occursNetricsCmdStats
public NetricsCmdStats[] cmdstats(java.lang.String[] cmd_names, double duration) throws java.io.IOException, NetricsException
cmd_names
- The names of the commands to be included in the
report. The class NetricsCmdStats has defines of all command names.duration
- The time period in seconds to be covered by this
report.NetricsException
- If the server indicates that an error
has occured (Possible errors - PARAMVAL, PARAMCONFLICT,
EXPECTLIST, INTERNAL)java.io.IOException
- If an I/O error occursNetricsCmdStats
public NetricsCmdStats[] cmdstats(java.lang.String[] cmd_names, double duration, double end_time) throws java.io.IOException, NetricsException
String [] cmd_list = new { NetricsCmdStats.CMD_ALL };
NetricsCmdStats []report_5 ;
NetricsCmdStats []report_10 ;
NetricsCmdStats []report_15 ;
NetricsCmdStats []report_forever ;
report_5 = si.cmdstats(cmd_list,60.0*5.0);
double end_time = report_5[0].end_time();
report_10 = si.cmdstats(cmd_list,60.0*10.0,end_time);
report_15 = si.cmdstats(cmd_list,60.0*15.0,end_time);
report_forever = si.cmdstats(cmd_list,-1.0,end_time);
cmd_names
- The names of the commands to be included in the
report. The class NetricsCmdStats has defines of all command names.duration
- The time period in seconds to be covered by this
report. -1.0 can be used to indicate "forever".end_time
- The ending time for a report.NetricsException
- If the server indicates that an error
has occured (Possible errors - PARAMVAL, PARAMCONFLICT,
EXPECTLIST, INTERNAL)java.io.IOException
- If an I/O error occursNetricsCmdStats
public void cmdstats_reset(java.lang.String[] cmd_names, double start_time) throws java.io.IOException, NetricsException
cmd_names
- The names of the commands to be included in the
report. The class NetricsCmdStats has defines of all command names.start_time
- Data for commands before this point is deleted.NetricsException
- If the server indicates that an error
has occured (Possible errors - PARAMVAL, PARAMCONFLICT,
EXPECTLIST, INTERNAL)java.io.IOException
- If an I/O error occurspublic void svrlogon() throws java.io.IOException, NetricsException
NetricsException
- If the server indicates that
an error has occured (Possible errors - LOGFILE, IPCERR, IPCTIMEOUT, IPCEOF, HANDSHAKE)java.io.IOException
- If an I/O error occurspublic void svrlogoff() throws java.io.IOException, NetricsException
NetricsException
- If the server indicates that
an error has occured (Possible errors - EXPECTRTBLDESC, IPCERR, IPCTIMEOUT, IPCEOF, HANDSHAKE)java.io.IOException
- If an I/O error occurspublic NetricsServerStats server_info() throws java.io.IOException, NetricsException
NetricsException
- If the server indicates that
an error has occuredjava.io.IOException
- If an I/O error occursNetricsServerStats
public java.lang.String svrversion() throws java.io.IOException, NetricsException
NetricsException
- If the server indicates that
an error has occuredjava.io.IOException
- If an I/O error occursserver_info()
,
NetricsServerStats
public boolean isDecisionEngine() throws java.io.IOException, NetricsException
NetricsException
- If the server indicates that
an error has occuredjava.io.IOException
- If an I/O error occurspublic boolean isGIPEnabled() throws java.io.IOException, NetricsException
NetricsException
- If the server indicates that
an error has occuredjava.io.IOException
- If an I/O error occurspublic boolean isSortEnabled() throws java.io.IOException, NetricsException
NetricsException
- If the server indicates that
an error has occuredjava.io.IOException
- If an I/O error occurspublic boolean isPsiEnabled() throws java.io.IOException, NetricsException
NetricsException
- If the server indicates that
an error has occuredjava.io.IOException
- If an I/O error occurspublic java.lang.String version()
public void svrshutdown() throws java.io.IOException, NetricsException
NetricsException
- If the server indicates that
an error has occuredjava.io.IOException
- If an I/O error occurspublic void svrnoop() throws java.io.IOException, NetricsException
NetricsException
- If the server indicates that
an error has occuredjava.io.IOException
- If an I/O error occurspublic java.util.Locale setServerLocale(java.util.Locale locale)
locale
- the local to use, null resets to the default locale.