SilverStream
Application Server 3.5

com.sssw.rts.adminapi
Interface AgiAdmThread


public interface AgiAdmThread

Implemented by objects that represent threads running within the server.

See Also:
AgiAdmServer, AgiAdmSession

Method Summary
 AgiAdmSession getAssociatedSession()
          Return the associated session, if any, and null otherwise.
 long getBusyTime()
          Get the number of milliseconds the thread has been "busy" since it started.
 String getName()
          Get the thread name.
 Date getStartDate()
          Get the date/time the thread was started.
 String getState()
          Get the current thread status.
 boolean hasAssociatedSession()
          Check if the thread is currently associated with a session.
 

Method Detail

getName

public String getName()
Get the thread name.
Example:
// Get the thread information.
 AgiAdmThread th = ...
 // Get the name of the thread.
 String name = th.getName();
 

getState

public String getState()
Get the current thread status.
Example:
// Get the thread information.
 AgiAdmThread th = ...
 // Get the state of the thread.
 String state = th.getState();
 

getStartDate

public Date getStartDate()
Get the date/time the thread was started.
Example:
// Get the thread information.
 AgiAdmThread th = ...
 // Get the start date.
 Date startDate = th.getStartDate();
 

getBusyTime

public long getBusyTime()
Get the number of milliseconds the thread has been "busy" since it started.
Example:
// Get the thread information.
 AgiAdmThread th = ...
 // Get the busy time.
 long busyTime = th.getBusyTime();
 

hasAssociatedSession

public boolean hasAssociatedSession()
Check if the thread is currently associated with a session. Return true if it is, false if not.
Example:
// Get the thread information.
 AgiAdmThread th = ...
 // See if the thread has a session associated with it.
 boolean hasSess = th.hasAssociatedSession();
 

getAssociatedSession

public AgiAdmSession getAssociatedSession()
Return the associated session, if any, and null otherwise.
Example:
// Get the thread information.
 AgiAdmThread th = ...
 // Get the information about the associated session.
 AgiAdmSession sess = th.getAssociatedSession();
 if (sess != null)
 	// ... process the session information...
 
See Also:
AgiAdmSession

SilverStream
Application Server 3.5