public interface ServiceSessionInfo
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccountingId()
Get the user accounting ID.
|
java.lang.String |
getCallingStationId()
Get Calling-Station-Id associated with the primary interface
|
CommandChannel |
getCommandChannel()
Returns the CommandChannel this service session attached to.
|
LogWriter |
getCriticalLog()
Returns a LogWriter object that can be used to print messages
to the CRITICAL log.
|
LogWriter |
getDebugLog()
Returns a LogWriter object that can be used to print messages
to the DEBUG log.
|
byte[] |
getDhcpPacket()
Get DHCP options returned for DHCP users.
|
int |
getDownStreamBandwidth()
Get the service down stream bandwidth.
|
LogWriter |
getErrorLog()
Returns a LogWriter object that can be used to print messages
to the ERROR log.
|
java.lang.String |
getHostName()
Get the host name.
|
java.lang.String |
getIfRadiusClass()
Deprecated.
use getIfRadiusClassList() instead.
|
java.util.List |
getIfRadiusClassList()
Get all values of interface-radius class.
|
LogWriter |
getInfoLog()
Returns a LogWriter object that can be used to print messages
to the INFO log.
|
java.lang.String |
getInterfaceAlias()
Get the interface alias, i.e. alternative description of
managed interface.
|
java.lang.String |
getInterfaceDescr()
Get the interface description, i.e. a textual description of
the managed interface.
|
java.lang.String |
getInterfaceName()
Get the interface name.
|
long |
getInterfaceSpeed()
Get the interface speed
|
java.util.Map |
getLocalQosProfiles() |
java.net.InetAddress |
getLocalTunnelInetAddress()
InetAddress of the local end of an L2TP tunnel.
|
java.lang.String |
getLoginName()
Get the user's login name.
|
java.net.InetAddress |
getNasInetAddress()
Get the IP address the virtual router uses for accounting purposes.
|
int |
getNasPort()
Get NAS-Port, i.e. a numerical index that identifies the
layer 2 interface.
|
LogWriter |
getNoticeLog()
Returns a LogWriter object that can be used to print messages
to the NOTICE log.
|
java.util.Map |
getParameterSubstitutions(java.util.List names)
Get the requested parameter substitutions from the acquisition path.
|
java.lang.String |
getPortId()
Get NAS-Port-ID, i.e. a name of the interface including layer 2
access information.
|
java.lang.String |
getPrimaryUserName()
Get the primary user name.
|
java.net.InetAddress |
getRemoteTunnelInetAddress()
InetAddress of the far end of an L2TP tunnel.
|
java.net.InetAddress |
getRouterDynRadiusAddr() |
java.lang.String |
getRouterName()
Get the router name.
|
long |
getScheduledStartTime()
Get the actual scheduled start time of an service.
|
java.lang.Object |
getServiceAttribute(java.lang.String attributeName)
Get the value for the named attribute of the service.
|
java.lang.String[] |
getServiceAttributeNames()
Get the names of the attributes of the service.
|
java.lang.String |
getServiceBundle()
Get ServiceBundle string associated with authenticated lifecyle
handle.
|
javax.naming.directory.DirContext |
getServiceDirectory()
Returns a
javax.naming.DirContext object that can be used to access the
directory that stores SAE's service definitions, as specified by the following
SAE configuration parameters:
Service repository address (i.e. |
java.lang.String |
getServiceName()
Get the service name.
|
java.lang.String |
getServiceSessionName()
Get the session name.
|
java.util.Map |
getServiceSessionPropertyMap()
Gets a map of service session properties.
|
java.lang.String |
getServiceSessionTag()
Get the service session tag.
|
java.lang.String |
getSessionId()
Get the session id.
|
java.lang.String |
getSessionVolumeQuota()
Get the session volume quota.
|
long |
getStartTime()
Get the start time.
|
java.util.Map |
getSubscriberPropertyMap()
Gets a map of subscriber properties.
|
java.lang.String |
getSubscriptionName()
Get the subscription name.
|
java.lang.String[] |
getSubstitutions()
Get the substitutions.
|
int |
getTerminateCause()
Gets the reason the service session was stopped
|
int |
getUpStreamBandwidth()
Get the service up stream bandwidth.
|
javax.naming.directory.DirContext |
getUserDirectory()
Returns a
javax.naming.DirContext object that can be used to access the
directory that stores SAE's user profiles, as specified by the following
SAE configuration parameters:
User repository address (i.e. |
java.lang.String |
getUserDn()
Get the LDAP distinguished name of the loaded user profile
assigned to the user.
|
java.net.InetAddress |
getUserInetAddress()
Get the InetAddress associated with PPP or DHCP user.
|
java.lang.String |
getUserMacAddress()
Get MAC address of DHCP user.
|
java.lang.String[] |
getUserRadiusClass()
Get radius class.
|
java.lang.String |
getUserSessionId()
Get the user session ID.
|
java.lang.String |
getUserType()
Get the user type.
|
LogWriter |
getWarningLog()
Returns a LogWriter object that can be used to print messages
to the WARNING log.
|
boolean |
isBeingRemoved()
Returns true if this service session is being removed
if true - the script service must be cleaned up
there will be no furthur attempts to collect accounting
|
boolean |
isLoggingIn()
Returns true if this user session is in the process
of activating the automatically on login services
|
boolean |
isLoggingOut()
Returns true if this user session is in the process of
or has previously been logged out
|
boolean |
isModifyServiceSession() |
RadiusResponse |
sendDynamicRadius(java.net.InetSocketAddress dynRadiusServer,
byte code,
int action,
java.util.Map attrs,
java.lang.String config,
java.net.InetSocketAddress dynRadiusClient,
java.lang.String shareSecret,
int retry)
Send dynamic authorization request to radius client
|
void |
stopService(int terminateReason)
Deactivate the service session.
|
java.lang.String getHostName()
long getScheduledStartTime()
java.lang.String getServiceName()
java.lang.String getServiceSessionName()
java.lang.String getServiceSessionTag()
java.lang.String getSubscriptionName()
long getStartTime()
java.lang.String getSessionId()
java.lang.String[] getSubstitutions()
java.util.Map getParameterSubstitutions(java.util.List names) throws ScriptServiceException
names
- - list of parameter substitution names to get their values from
the acquisition path (List of String). If names is null or empty, returns all
the substitutions from the acquisition path.ScriptServiceException
- If an exception was thrown during acquiring
the parameters or if one of the parameters had no acquired value.int getUpStreamBandwidth()
int getDownStreamBandwidth()
java.lang.String getSessionVolumeQuota()
int getTerminateCause()
java.util.Map getServiceSessionPropertyMap()
java.lang.String[] getServiceAttributeNames()
java.lang.Object getServiceAttribute(java.lang.String attributeName)
Object
must be cast to the appropriate type.
If the attribute is multi-valued, the returned Object
must be cast to an array of the appropriate type.attributeName
- java.lang.String getRouterName()
java.lang.String getInterfaceName()
java.lang.String getInterfaceAlias()
java.lang.String getInterfaceDescr()
long getInterfaceSpeed()
java.lang.String getPortId()
int getNasPort()
java.lang.String getIfRadiusClass()
java.util.List getIfRadiusClassList()
java.net.InetAddress getNasInetAddress()
java.lang.String getLoginName()
java.lang.String getPrimaryUserName()
java.lang.String getServiceBundle()
java.lang.String getCallingStationId()
java.net.InetAddress getUserInetAddress()
java.lang.String getUserType()
java.lang.String getUserMacAddress()
byte[] getDhcpPacket()
java.lang.String getAccountingId()
java.lang.String getUserDn()
java.lang.String[] getUserRadiusClass()
java.lang.String getUserSessionId()
boolean isLoggingOut()
boolean isLoggingIn()
boolean isBeingRemoved()
java.util.Map getSubscriberPropertyMap()
javax.naming.directory.DirContext getServiceDirectory()
javax.naming.DirContext
object that can be used to access the
directory that stores SAE's service definitions, as specified by the following
SAE configuration parameters:
DirContext
object must not be modified. Modifying the returned DirContext
object may affect the stability of the SAE server.javax.naming.directory.DirContext getUserDirectory()
javax.naming.DirContext
object that can be used to access the
directory that stores SAE's user profiles, as specified by the following
SAE configuration parameters:
DirContext
object must not be modified. Modifying the returned DirContext
object may affect the stability of the SAE server.LogWriter getDebugLog()
LogWriter getInfoLog()
LogWriter getErrorLog()
LogWriter getWarningLog()
LogWriter getNoticeLog()
LogWriter getCriticalLog()
void stopService(int terminateReason) throws ScriptServiceException
terminateReason
- for the Radius attribute Acct-Terminate-Cause.ScriptServiceException
CommandChannel getCommandChannel()
RadiusResponse sendDynamicRadius(java.net.InetSocketAddress dynRadiusServer, byte code, int action, java.util.Map attrs, java.lang.String config, java.net.InetSocketAddress dynRadiusClient, java.lang.String shareSecret, int retry) throws ScriptServiceException
dynRadiusServer
- Dynamic radius source IP and port
If not provided, SAE uses configuration attributes
AccountingMgr.local.address and AccountingMgr.local.port
insteadcode
- the radius packet code field.
e.g. 40 - Disconnect-Request
43 - CoA-Requestaction
- customized action used by SAE generating dynamic radius packet
see customer documentation for detailsattrs
- customer specific radius attributes appending to radius packet
key: radius attribute name
e.g.
value: valueconfig
- flexible radius plug-in like configuration for
configuring the radius packet content, the format is:
action.radiusAttributeName = pluginEventAttribute
see SDX customer documentation for available plug-in event attribute
e.g.
1.User-Name = accountingId\n1.vendor-specific.WISPr.Location-ID = interfaceAlias
see customer documentation for detailsdynRadiusClient
- Dynamic radius client IP and portshareSecret
- dynamic radius share secret,retry
- number of retry for sending dynamic radius packet by underlying library in case of no radius response being received
the retry interval is 3 seconds.ScriptServiceException
- when no response is received or there is connection error with radius client.java.net.InetAddress getRouterDynRadiusAddr()
java.util.Map getLocalQosProfiles()
java.net.InetAddress getRemoteTunnelInetAddress()
java.net.InetAddress getLocalTunnelInetAddress()
boolean isModifyServiceSession()