public class AscendActiveSessionBean extends SNMPRunBean implements java.util.Observer
This bean is written for the Ascend Router from Lucent Technologies, Inc. The Ascend Enterprise MIBs can be downloaded from ByteSphere.
This bean collects information about the active session on an Ascend router.
The properties in the parent classes should be set, before calling the action() method. Via a PropertyChangeEvent the application/applet will be notified.
SNMPBean.setHost(java.lang.String)
,
SNMPBean.setPort(int)
,
SNMPBean.setCommunityName(java.lang.String)
,
SNMPRunBean.setUpdateInterval(int)
,
SNMPBean.addPropertyChangeListener(java.beans.PropertyChangeListener)
,
SNMPBean.action()
,
GetNextPdu_vec
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ssnActiveCallReferenceNum
A unique number identifying this active session.
|
static java.lang.String |
ssnActiveCurrentService
The current service provided to the remote user.
|
static java.lang.String |
ssnActiveUserIPAddress
The IP address of the remote user.
|
static java.lang.String |
ssnActiveUserName
The name of the remote user.
|
static java.lang.String |
ssnActiveUserSubnetMask
The subnet mask of the remote user.
|
interval, me, running
bindAddr, community, context, host, message, port, propertyChangeListener, socketType
Constructor and Description |
---|
AscendActiveSessionBean()
The default constructor.
|
AscendActiveSessionBean(java.lang.String h,
int p)
The constructor that will set the host and the port no.
|
AscendActiveSessionBean(java.lang.String h,
int p,
java.lang.String b)
The constructor that will set the host, the port no and the local
bind address.
|
Modifier and Type | Method and Description |
---|---|
void |
action()
This method starts the action of the bean.
|
java.lang.String |
getCurrentService()
Returns the current service provided to the remote user of the Ascend
active session.
|
java.util.Date |
getLastUpdateDate()
Returns the date of the moment when this bean was last updated.
|
java.lang.String |
getUserIPAddress()
Returns the IP address of the remote user of the Ascend active
session.
|
java.lang.String |
getUserName()
Returns the name of the remote user of the Ascend active session.
|
java.lang.String |
getUserSubnetMask()
Returns the subnet mask of the remote user of the Ascend active
session.
|
void |
run()
Implements the running of the bean.
|
void |
update(java.util.Observable obs,
java.lang.Object ov)
This method is called when the Pdu response is received.
|
getUpdateInterval, isRunning, setRunning, setUpdateInterval, setUpdateInterval
addPropertyChangeListener, firePropertyChange, getBindAddress, getCommunityName, getHost, getMessage, getPort, getSocketType, isHostPortReachable, removePropertyChangeListener, setBindAddress, setCommunityName, setHost, setMessage, setPort, setPort, setSocketType
public static final java.lang.String ssnActiveCallReferenceNum
public static final java.lang.String ssnActiveUserName
public static final java.lang.String ssnActiveUserIPAddress
public static final java.lang.String ssnActiveUserSubnetMask
public static final java.lang.String ssnActiveCurrentService
public AscendActiveSessionBean()
public AscendActiveSessionBean(java.lang.String h, int p)
h
- the hostnamep
- the port noSNMPBean.setHost(java.lang.String)
,
SNMPBean.setPort(int)
public AscendActiveSessionBean(java.lang.String h, int p, java.lang.String b)
h
- the hostnamep
- the port nob
- the local bind addressSNMPBean.setHost(java.lang.String)
,
SNMPBean.setPort(int)
,
SNMPBean.setBindAddress(java.lang.String)
public java.util.Date getLastUpdateDate()
public java.lang.String getUserName()
public java.lang.String getUserIPAddress()
public java.lang.String getUserSubnetMask()
public java.lang.String getCurrentService()
public void action()
public void run()
run
in interface java.lang.Runnable
run
in class SNMPRunBean
SNMPRunBean.isRunning()
public void update(java.util.Observable obs, java.lang.Object ov)
update
in interface java.util.Observer
SNMPBean.addPropertyChangeListener(java.beans.PropertyChangeListener)