Package org.netxms.client.objects
Class Sensor
- java.lang.Object
-
- org.netxms.client.objects.AbstractObject
-
- org.netxms.client.objects.GenericObject
-
- org.netxms.client.objects.DataCollectionTarget
-
- org.netxms.client.objects.Sensor
-
- All Implemented Interfaces:
PollingTarget
public class Sensor extends DataCollectionTarget implements PollingTarget
Mobile device object
-
-
Field Summary
Fields Modifier and Type Field Description static intCOMM_DLMSstatic intCOMM_LORAWANstatic String[]COMM_METHODstatic String[]DEV_CLASS_NAMESprotected org.netxms.base.MacAddressmacAddressstatic intSENSOR_ACTIVEstatic intSENSOR_CLASS_UNKNOWNSensor device classstatic intSENSOR_CONF_UPDATE_PENDINGstatic intSENSOR_ELECTR_METERstatic intSENSOR_PROTO_UNKNOWNSensor communication protocol typestatic intSENSOR_PROVISIONEDSensor flagsstatic intSENSOR_REGISTEREDstatic intSENSOR_UPSstatic intSENSOR_WATER_METER-
Fields inherited from class org.netxms.client.objects.DataCollectionTarget
DCF_DISABLE_CONF_POLL, DCF_DISABLE_DATA_COLLECT, DCF_DISABLE_STATUS_POLL, DCSF_NETWORK_PATH_PROBLEM, DCSF_UNREACHABLE, overviewDciData, tooltipDciData
-
Fields inherited from class org.netxms.client.objects.AbstractObject
accessList, backupZoneProxyId, BUSINESSSERVICEROOT, CALCULATE_DEFAULT, CALCULATE_MOST_CRITICAL, CALCULATE_MULTIPLE_THRESHOLDS, CALCULATE_SINGLE_THRESHOLD, children, comments, creationTime, customAttributes, DASHBOARDROOT, dashboards, drillDownObjectId, fixedPropagatedStatus, geolocation, guid, image, inheritAccessRights, inMaintenanceMode, isDeleted, moduleData, NETWORK, NETWORKMAPROOT, OBJECT_ACCESSPOINT, OBJECT_AGENTPOLICY, OBJECT_AGENTPOLICY_CONFIG, OBJECT_AGENTPOLICY_LOGPARSER, OBJECT_BUSINESSSERVICE, OBJECT_BUSINESSSERVICEROOT, OBJECT_CHASSIS, OBJECT_CLUSTER, OBJECT_CONDITION, OBJECT_CONTAINER, OBJECT_CUSTOM, OBJECT_DASHBOARD, OBJECT_DASHBOARDGROUP, OBJECT_DASHBOARDROOT, OBJECT_GENERIC, OBJECT_INTERFACE, OBJECT_MOBILEDEVICE, OBJECT_NETWORK, OBJECT_NETWORKMAP, OBJECT_NETWORKMAPGROUP, OBJECT_NETWORKMAPROOT, OBJECT_NETWORKSERVICE, OBJECT_NODE, OBJECT_NODELINK, OBJECT_POLICYGROUP, OBJECT_POLICYROOT, OBJECT_RACK, OBJECT_SENSOR, OBJECT_SERVICEROOT, OBJECT_SLMCHECK, OBJECT_SUBNET, OBJECT_TEMPLATE, OBJECT_TEMPLATEGROUP, OBJECT_TEMPLATEROOT, OBJECT_VPNCONNECTOR, OBJECT_ZONE, objectClass, objectId, objectName, parents, POLICYROOT, postalAddress, primaryZoneProxyId, PROPAGATE_DEFAULT, PROPAGATE_FIXED, PROPAGATE_RELATIVE, PROPAGATE_TRANSLATED, PROPAGATE_UNCHANGED, REPORTROOT, responsibleUsers, SERVICEROOT, session, status, statusCalculationMethod, statusPropagationMethod, statusShift, statusSingleThreshold, statusThresholds, statusTransformation, TEMPLATEROOT, trustedNodes, urls, ZONE0
-
-
Constructor Summary
Constructors Constructor Description Sensor(org.netxms.base.NXCPMessage msg, NXCSession session)Object constructor from message
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHaveAgent()Identify if this object can have NetXMS agent.booleancanHaveInterfaces()Identify if this object can have network interfaces.booleancanHavePollerNode()Identify if this object can have poller node property.booleancanUseEtherNetIP()Identify if this object can use EtherNet/IP for communications.AgentCacheModegetAgentCacheMode()Get agent cache mode.intgetCommProtocol()SensorConfiggetConfig()StringgetDescription()StringgetDeviceAddress()intgetDeviceClass()intgetFlags()Get object flags.intgetFrameCount()intgetFrequency()intgetIfXTablePolicy()Get ifXTable usage policy.DategetLastConnectionTime()org.netxms.base.MacAddressgetMacAddress()StringgetMetaType()StringgetObjectClassName()longgetPollerNodeId()Get poller node ID.longgetProxyId()SensorRegistrationConfiggetRegConfig()StringgetSerialNumber()intgetSignalNoise()intgetSignalStrenght()Set<String>getStrings()Get all strings in objectStringgetVendor()booleanisAlarmsVisible()If this method returns true object can have visible alarms.booleanisAllowedOnMap()If this method returns true object is allowed to be on custom network map.-
Methods inherited from class org.netxms.client.objects.DataCollectionTarget
getOverviewDciData, getTooltipDciData
-
Methods inherited from class org.netxms.client.objects.AbstractObject
addString, getAccessList, getAllChildren, getAllChildren, getAllParents, getAllParents, getBackupZoneProxyId, getChildIdList, getChildren, getChildrenAsArray, getComments, getCreationTime, getCustomAttribute, getCustomAttributes, getCustomAttributeValue, getDashboards, getDrillDownObjectId, getEffectiveRights, getFixedPropagatedStatus, getGeolocation, getGuid, getImage, getModuleData, getObjectClass, getObjectId, getObjectName, getParentCount, getParentIdList, getParents, getParentsAsArray, getPostalAddress, getPrimaryZoneProxyId, getResponsibleUsers, getStatus, getStatusCalculationMethod, getStatusPropagationMethod, getStatusShift, getStatusSingleThreshold, getStatusThresholds, getStatusTransformation, getTrustedNodes, getUrls, hasAccessibleChildren, hasChildren, hashCode, hasParents, hasUrls, isChildOf, isChildOf, isDefaultImage, isDeleted, isDirectChildOf, isDirectParentOf, isInheritAccessRights, isInMaintenanceMode, isParentOf, isParentOf, setSession
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.netxms.client.objects.PollingTarget
getObjectId, getObjectName
-
-
-
-
Field Detail
-
SENSOR_PROVISIONED
public static final int SENSOR_PROVISIONED
Sensor flags- See Also:
- Constant Field Values
-
SENSOR_REGISTERED
public static final int SENSOR_REGISTERED
- See Also:
- Constant Field Values
-
SENSOR_ACTIVE
public static final int SENSOR_ACTIVE
- See Also:
- Constant Field Values
-
SENSOR_CONF_UPDATE_PENDING
public static final int SENSOR_CONF_UPDATE_PENDING
- See Also:
- Constant Field Values
-
SENSOR_PROTO_UNKNOWN
public static final int SENSOR_PROTO_UNKNOWN
Sensor communication protocol type- See Also:
- Constant Field Values
-
COMM_LORAWAN
public static final int COMM_LORAWAN
- See Also:
- Constant Field Values
-
COMM_DLMS
public static final int COMM_DLMS
- See Also:
- Constant Field Values
-
COMM_METHOD
public static final String[] COMM_METHOD
-
SENSOR_CLASS_UNKNOWN
public static final int SENSOR_CLASS_UNKNOWN
Sensor device class- See Also:
- Constant Field Values
-
SENSOR_UPS
public static final int SENSOR_UPS
- See Also:
- Constant Field Values
-
SENSOR_WATER_METER
public static final int SENSOR_WATER_METER
- See Also:
- Constant Field Values
-
SENSOR_ELECTR_METER
public static final int SENSOR_ELECTR_METER
- See Also:
- Constant Field Values
-
DEV_CLASS_NAMES
public static final String[] DEV_CLASS_NAMES
-
macAddress
protected org.netxms.base.MacAddress macAddress
-
-
Constructor Detail
-
Sensor
public Sensor(org.netxms.base.NXCPMessage msg, NXCSession session)Object constructor from message- Parameters:
msg-session-
-
-
Method Detail
-
isAllowedOnMap
public boolean isAllowedOnMap()
Description copied from class:AbstractObjectIf this method returns true object is allowed to be on custom network map. Default implementation always returns false.- Overrides:
isAllowedOnMapin classAbstractObject- Returns:
- true if object is allowed to be on custom network map
-
isAlarmsVisible
public boolean isAlarmsVisible()
Description copied from class:AbstractObjectIf this method returns true object can have visible alarms. Default implementation always returns false.- Overrides:
isAlarmsVisiblein classAbstractObject- Returns:
- true if object can contain visible alarms
-
getObjectClassName
public String getObjectClassName()
- Overrides:
getObjectClassNamein classAbstractObject- Returns:
- Name of NetXMS object's class
-
getStrings
public Set<String> getStrings()
Description copied from class:AbstractObjectGet all strings in object- Overrides:
getStringsin classAbstractObject- Returns:
- set of all strings in object
-
getVendor
public final String getVendor()
- Returns:
- the vendor
-
getSerialNumber
public final String getSerialNumber()
- Returns:
- the serialNumber
-
getFlags
public int getFlags()
Description copied from interface:PollingTargetGet object flags.- Specified by:
getFlagsin interfacePollingTarget- Returns:
- the flags
-
getMacAddress
public org.netxms.base.MacAddress getMacAddress()
- Returns:
- the macAddress
-
getFrameCount
public int getFrameCount()
- Returns:
- the frameCount
-
getSignalStrenght
public int getSignalStrenght()
- Returns:
- the signalStrenght
-
getFrequency
public int getFrequency()
- Returns:
- the frequency
-
getDeviceClass
public int getDeviceClass()
- Returns:
- the deviceClass
-
getCommProtocol
public int getCommProtocol()
- Returns:
- the commProtocol
-
getDeviceAddress
public String getDeviceAddress()
- Returns:
- the deviceAddress
-
getMetaType
public String getMetaType()
- Returns:
- the metaType
-
getDescription
public String getDescription()
- Returns:
- the description
-
getLastConnectionTime
public Date getLastConnectionTime()
- Returns:
- the lastConnectionTime
-
getProxyId
public long getProxyId()
- Returns:
- the proxyId
-
getSignalNoise
public int getSignalNoise()
- Returns:
- the signalNoise
-
getRegConfig
public SensorRegistrationConfig getRegConfig()
- Returns:
- the regConfig
-
getConfig
public SensorConfig getConfig()
- Returns:
- the config
-
getIfXTablePolicy
public int getIfXTablePolicy()
Description copied from interface:PollingTargetGet ifXTable usage policy.- Specified by:
getIfXTablePolicyin interfacePollingTarget- Returns:
- ifXTable usage policy
-
getAgentCacheMode
public AgentCacheMode getAgentCacheMode()
Description copied from interface:PollingTargetGet agent cache mode.- Specified by:
getAgentCacheModein interfacePollingTarget- Returns:
- agent cache mode
- See Also:
PollingTarget.getAgentCacheMode()
-
getPollerNodeId
public long getPollerNodeId()
Description copied from interface:PollingTargetGet poller node ID.- Specified by:
getPollerNodeIdin interfacePollingTarget- Returns:
- poller node ID or 0 if object cannot have poler node
- See Also:
PollingTarget.getPollerNodeId()
-
canHaveAgent
public boolean canHaveAgent()
Description copied from interface:PollingTargetIdentify if this object can have NetXMS agent.- Specified by:
canHaveAgentin interfacePollingTarget- Returns:
- true if this object can have NetXMS agent
- See Also:
PollingTarget.canHaveAgent()
-
canHaveInterfaces
public boolean canHaveInterfaces()
Description copied from interface:PollingTargetIdentify if this object can have network interfaces.- Specified by:
canHaveInterfacesin interfacePollingTarget- Returns:
- true if this object can have network interfaces
- See Also:
PollingTarget.canHaveInterfaces()
-
canHavePollerNode
public boolean canHavePollerNode()
Description copied from interface:PollingTargetIdentify if this object can have poller node property.- Specified by:
canHavePollerNodein interfacePollingTarget- Returns:
- true if this object can have poller node property
- See Also:
PollingTarget.canHavePollerNode()
-
canUseEtherNetIP
public boolean canUseEtherNetIP()
Description copied from interface:PollingTargetIdentify if this object can use EtherNet/IP for communications.- Specified by:
canUseEtherNetIPin interfacePollingTarget- Returns:
- true if this object can use EtherNet/IP for communications
- See Also:
PollingTarget.canUseEtherNetIP()
-
-