public class DataCollectionConfiguration extends Object
Constructor and Description |
---|
DataCollectionConfiguration(NXCSession session,
long nodeId)
Create empty data collection configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCollectedData(long itemId)
Clear collected data for given DCI.
|
void |
close()
Close data collection configuration.
|
void |
copyObjects(long destNodeId,
long[] items)
Copy data collection objects.
|
long |
createItem()
Create new data collection item.
|
long |
createTable()
Create new data collection table.
|
void |
deleteObject(long itemId)
Delete data collection object.
|
protected void |
finalize() |
DataCollectionObject |
findItem(long id)
Find data collection object by ID.
|
DataCollectionObject |
findItem(long id,
Class<? extends DataCollectionObject> classFilter)
Find data collection object by ID.
|
DataCollectionObject[] |
getItems()
Get list of data collection items
|
long |
getNodeId() |
protected NXCSession |
getSession() |
Object |
getUserData() |
void |
modifyObject(DataCollectionObject dco)
Modify data collection object.
|
void |
modifyObject(long dcObjectId)
Modify data collection object.
|
void |
moveObjects(long destNodeId,
long[] items)
Move data collection objects.
|
void |
open()
Open data collection configuration.
|
void |
setObjectStatus(long[] items,
int status)
Set status of data collection objects.
|
void |
setUserData(Object userData) |
public DataCollectionConfiguration(NXCSession session, long nodeId)
nodeId
- public void open() throws IOException, NXCException
IOException
- if socket I/O error occursNXCException
- if NetXMS server returns an error or operation was timed outpublic void close() throws IOException, NXCException
IOException
- if socket I/O error occursNXCException
- if NetXMS server returns an error or operation was timed outpublic DataCollectionObject[] getItems()
public DataCollectionObject findItem(long id)
id
- DCI IDpublic DataCollectionObject findItem(long id, Class<? extends DataCollectionObject> classFilter)
id
- data collection object IDclassFilter
- class filter for found objectpublic long createItem() throws IOException, NXCException
IOException
- if socket I/O error occursNXCException
- if NetXMS server returns an error or operation was timed outpublic long createTable() throws IOException, NXCException
IOException
- if socket I/O error occursNXCException
- if NetXMS server returns an error or operation was timed outpublic void modifyObject(long dcObjectId) throws IOException, NXCException
dcObjectId
- Data collection object identifierIOException
- if socket I/O error occursNXCException
- if NetXMS server returns an error or operation was timed outpublic void modifyObject(DataCollectionObject dco) throws IOException, NXCException
dco
- Data collection objectIOException
- if socket I/O error occursNXCException
- if NetXMS server returns an error or operation was timed outpublic void copyObjects(long destNodeId, long[] items) throws IOException, NXCException
destNodeId
- Destination node IDitems
- List of data collection items to copyIOException
- if socket I/O error occursNXCException
- if NetXMS server returns an error or operation was timed outpublic void moveObjects(long destNodeId, long[] items) throws IOException, NXCException
destNodeId
- Destination node IDitems
- List of data collection items to moveIOException
- if socket I/O error occursNXCException
- if NetXMS server returns an error or operation was timed outpublic void clearCollectedData(long itemId) throws IOException, NXCException
itemId
- Data collection item IDIOException
- if socket I/O error occursNXCException
- if NetXMS server returns an error or operation was timed outpublic void setObjectStatus(long[] items, int status) throws IOException, NXCException
items
- Data collection items' identifiersstatus
- New statusIOException
- if socket I/O error occursNXCException
- if NetXMS server returns an error or operation was timed outpublic void deleteObject(long itemId) throws IOException, NXCException
itemId
- Data collection item identifierIOException
- if socket I/O error occursNXCException
- if NetXMS server returns an error or operation was timed outprotected void finalize() throws Throwable
public long getNodeId()
public Object getUserData()
public void setUserData(Object userData)
userData
- the userData to setprotected final NXCSession getSession()
Copyright © 2014. All rights reserved.