Package org.netxms.client.objects
Class TrafficObserver
java.lang.Object
org.netxms.client.objects.AbstractObject
org.netxms.client.objects.GenericObject
org.netxms.client.objects.DataCollectionTarget
org.netxms.client.objects.TrafficObserver
- All Implemented Interfaces:
PollingTarget,ZoneMember
Traffic observer object - represents one external traffic analysis instance
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final intstatic final intstatic final intstatic final intFields inherited from class org.netxms.client.objects.DataCollectionTarget
DCF_DISABLE_CONF_POLL, DCF_DISABLE_DATA_COLLECT, DCF_DISABLE_STATUS_POLL, DCF_LOCATION_CHANGE_EVENT, DCSF_NETWORK_PATH_PROBLEM, DCSF_UNREACHABLE, geoAreas, geoLocationControlMode, numDataCollectionItems, overviewDciData, tooltipDciData, webServiceProxyIdFields inherited from class org.netxms.client.objects.AbstractObject
accessList, aiHint, alias, assetId, ASSETS, backupZoneProxyId, BUSINESSSERVICEROOT, CALCULATE_DEFAULT, CALCULATE_MOST_CRITICAL, CALCULATE_MULTIPLE_THRESHOLDS, CALCULATE_SINGLE_THRESHOLD, categoryId, children, comments, commentsSource, CONTEXT, creationTime, customAttributes, DASHBOARDROOT, dashboards, drillDownObjectId, fixedPropagatedStatus, flags, geolocation, guid, inheritAccessRights, inMaintenanceMode, isDeleted, isHidden, maintenanceInitiatorId, mapImage, MARKDOWN_COMMENTS_INDICATOR, moduleData, nameOnMap, NETWORK, NETWORKMAPROOT, OBJECT_ACCESSPOINT, OBJECT_ASSET, OBJECT_ASSETGROUP, OBJECT_ASSETROOT, OBJECT_BUSINESSSERVICE, OBJECT_BUSINESSSERVICEPROTOTYPE, OBJECT_BUSINESSSERVICEROOT, OBJECT_CHASSIS, OBJECT_CIRCUIT, OBJECT_CLOUDDOMAIN, OBJECT_CLUSTER, OBJECT_COLLECTOR, OBJECT_CONDITION, OBJECT_CONTAINER, OBJECT_CUSTOM, OBJECT_DASHBOARD, OBJECT_DASHBOARDGROUP, OBJECT_DASHBOARDROOT, OBJECT_DASHBOARDTEMPLATE, OBJECT_GENERIC, OBJECT_INTERFACE, OBJECT_MOBILEDEVICE, OBJECT_NETWORK, OBJECT_NETWORKMAP, OBJECT_NETWORKMAPGROUP, OBJECT_NETWORKMAPROOT, OBJECT_NETWORKSERVICE, OBJECT_NODE, OBJECT_OBSERVATIONPOINT, OBJECT_RACK, OBJECT_RESOURCE, OBJECT_SENSOR, OBJECT_SERVICEROOT, OBJECT_SUBNET, OBJECT_TEMPLATE, OBJECT_TEMPLATEGROUP, OBJECT_TEMPLATEROOT, OBJECT_TRAFFICOBSERVER, OBJECT_VPNCONNECTOR, OBJECT_WIRELESSDOMAIN, OBJECT_ZONE, objectClass, objectId, objectName, parents, partialObject, pollStates, portStopList, postalAddress, primaryZoneProxyId, PROPAGATE_DEFAULT, PROPAGATE_FIXED, PROPAGATE_RELATIVE, PROPAGATE_TRANSLATED, PROPAGATE_UNCHANGED, responsibleUsers, SERVICEROOT, session, status, statusCalculationMethod, statusPropagationMethod, statusShift, statusSingleThreshold, statusThresholds, statusTransformation, TEMPLATEROOT, trustedObjects, UNKNOWN, urls, ZONE0 -
Constructor Summary
ConstructorsConstructorDescriptionTrafficObserver(NXCPMessage msg, NXCSession session) Create from NXCP message. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIdentify if this object can have NetXMS agent.booleanIdentify if this object can have network interfaces.booleanIdentify if this object can have poller node property.booleanIdentify if this object can use EtherNet/IP for communications.booleanIdentify if this object can use Modbus for communications.Get agent cache mode.longintintgetFlags()Get object flags.intintGet ifXTable usage policy.intlongGet name of NetXMS object's class.longGet poller node ID.Get poll states.intGet all strings in objectintGet ID of the zone this object belongs toGet name of the zone this object belongs tobooleanhasCapability(long capability) Check if backend has given capability.booleanbooleanIf this method returns true object can have visible alarms.booleanIf this method returns true object is allowed to be on custom network map.Methods inherited from class org.netxms.client.objects.DataCollectionTarget
getGeoAreas, getGeoLocationControlMode, getNumDataCollectionItems, getOverviewDciData, getTooltipDciData, getWebServiceProxyId, isLocationChageEventGeneratedMethods inherited from class org.netxms.client.objects.AbstractObject
addString, areChildrenSynchronized, getAccessList, getAiHint, getAlias, getAllChildren, getAllChildren, getAllParents, getAllParents, getAssetId, getBackupZoneProxyId, getCategory, getCategoryId, getChildCount, getChildIdList, getChildren, getChildrenAsArray, getComments, getCommentsSource, getConfiguredNameOnMap, getCreationTime, getCustomAttribute, getCustomAttributes, getCustomAttributeValue, getCustomAttributeValueAsBoolean, getDashboardIdentifiers, getDashboards, getDrillDownObjectId, getEffectiveRights, getFixedPropagatedStatus, getGeolocation, getGuid, getIcon, getMaintenanceInitiatorId, getMapImage, getModuleData, getNameOnMap, getNameWithAlias, getNetworkMaps, getObjectClass, getObjectId, getObjectName, getObjectNameWithPath, getParentChain, getParentCount, getParentIdList, getParents, getParentsAsArray, getPortStopList, getPostalAddress, getPrimaryZoneProxyId, getResponsibleUsers, getStatus, getStatusCalculationMethod, getStatusPropagationMethod, getStatusShift, getStatusSingleThreshold, getStatusThresholds, getStatusTransformation, getTrustedObjects, getUrls, hasAccessibleChildren, hasAccessibleParents, hasAccessibleViewParents, hasChildren, hasCustomAttribute, hasDashboard, hashCode, hasNetworkMap, hasParents, hasUrls, isChildOf, isChildOf, isDefaultImage, isDeleted, isDirectChildOf, isDirectParentOf, isHidden, isInheritAccessRights, isInMaintenanceMode, isParentOf, isParentOf, isPartialObject, setSessionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.netxms.client.objects.interfaces.PollingTarget
getObjectId, getObjectName
-
Field Details
-
STATE_UNKNOWN
public static final int STATE_UNKNOWN- See Also:
-
STATE_CONNECTED
public static final int STATE_CONNECTED- See Also:
-
STATE_UNREACHABLE
public static final int STATE_UNREACHABLE- See Also:
-
STATE_AUTH_FAILURE
public static final int STATE_AUTH_FAILURE- See Also:
-
CAP_HOST_L7
public static final long CAP_HOST_L7- See Also:
-
CAP_HOST_PEERS
public static final long CAP_HOST_PEERS- See Also:
-
CAP_POINT_L7
public static final long CAP_POINT_L7- See Also:
-
CAP_POINT_TOP_TALKERS
public static final long CAP_POINT_TOP_TALKERS- See Also:
-
CAP_POINT_DSCP
public static final long CAP_POINT_DSCP- See Also:
-
CAP_HISTORICAL_TIMESERIES
public static final long CAP_HISTORICAL_TIMESERIES- See Also:
-
CAP_SYNC_HOST_ALIASES
public static final long CAP_SYNC_HOST_ALIASES- See Also:
-
CAP_HOST_SET_AUTHORITATIVE
public static final long CAP_HOST_SET_AUTHORITATIVE- See Also:
-
-
Constructor Details
-
TrafficObserver
Create from NXCP message.- Parameters:
msg- NXCP messagesession- owning client session
-
-
Method Details
-
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
- See Also:
-
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
- See Also:
-
getObjectClassName
Description copied from class:AbstractObjectGet name of NetXMS object's class.- Overrides:
getObjectClassNamein classAbstractObject- Returns:
- Name of NetXMS object's class
- See Also:
-
getStrings
Description copied from class:AbstractObjectGet all strings in object- Overrides:
getStringsin classAbstractObject- Returns:
- set of all strings in object
- See Also:
-
getConnectorName
- Returns:
- the connectorName
-
hasCredentials
public boolean hasCredentials()- Returns:
- true if connector credentials are set
-
getZoneId
public int getZoneId()Description copied from interface:ZoneMemberGet ID of the zone this object belongs to- Specified by:
getZoneIdin interfaceZoneMember- Returns:
- zone ID
- See Also:
-
getZoneName
Description copied from interface:ZoneMemberGet name of the zone this object belongs to- Specified by:
getZoneNamein interfaceZoneMember- Returns:
- zone name
- See Also:
-
getLinkedNodeId
public long getLinkedNodeId()- Returns:
- ID of the node representing the analyzer itself (0 = not linked)
-
getRemovalPolicy
public int getRemovalPolicy()- Returns:
- the removalPolicy
-
getGracePeriod
public int getGracePeriod()- Returns:
- the gracePeriod
-
getSyncConfig
- Returns:
- the syncConfig
-
getLastDiscoveryStatus
public int getLastDiscoveryStatus()- Returns:
- the lastDiscoveryStatus
-
getLastDiscoveryTime
- Returns:
- the lastDiscoveryTime
-
getLastDiscoveryMessage
- Returns:
- the lastDiscoveryMessage
-
getConnectionState
public int getConnectionState()- Returns:
- the connectionState
-
getBackendProduct
- Returns:
- the backendProduct
-
getBackendVersion
- Returns:
- the backendVersion
-
getBackendEdition
- Returns:
- the backendEdition
-
getCapabilities
public long getCapabilities()- Returns:
- the capabilities
-
hasCapability
public boolean hasCapability(long capability) Check if backend has given capability.- Parameters:
capability- capability bit to check- Returns:
- true if backend has given capability
-
getFlags
public int getFlags()Description copied from interface:PollingTargetGet object flags.- Specified by:
getFlagsin interfacePollingTarget- Returns:
- object flags
- See Also:
-
getIfXTablePolicy
public int getIfXTablePolicy()Description copied from interface:PollingTargetGet ifXTable usage policy.- Specified by:
getIfXTablePolicyin interfacePollingTarget- Returns:
- ifXTable usage policy
- See Also:
-
getAgentCacheMode
Description copied from interface:PollingTargetGet agent cache mode.- Specified by:
getAgentCacheModein interfacePollingTarget- Returns:
- agent cache mode
- See Also:
-
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:
-
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:
-
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:
-
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:
-
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:
-
canUseModbus
public boolean canUseModbus()Description copied from interface:PollingTargetIdentify if this object can use Modbus for communications.- Specified by:
canUseModbusin interfacePollingTarget- Returns:
- true if this object can use Modbus for communications
- See Also:
-
getPollStates
Description copied from interface:PollingTargetGet poll states.- Specified by:
getPollStatesin interfacePollingTarget- Returns:
- array of poll states or null if object doesn't have any
- See Also:
-