Java Doc for JoRemoteSessionContext.java in » Web-Server » jo » com » tagtraum » jobalancer » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Java Source Code / Java Documentation
1.
6.0 JDK Core
2.
6.0 JDK Modules
3.
6.0 JDK Modules com.sun
4.
6.0 JDK Modules com.sun.java
5.
6.0 JDK Modules sun
6.
6.0 JDK Platform
7.
Ajax
8.
Apache Harmony Java SE
9.
Aspect oriented
10.
Authentication Authorization
11.
Blogger System
12.
Build
13.
Byte Code
14.
Cache
15.
Chart
16.
Chat
17.
Code Analyzer
18.
Collaboration
19.
Content Management System
20.
Database Client
21.
Database DBMS
22.
Database JDBC Connection Pool
23.
Database ORM
24.
Development
25.
EJB Server geronimo
26.
EJB Server GlassFish
27.
EJB Server JBoss 4.2.1
28.
EJB Server resin 3.1.5
29.
ERP CRM Financial
30.
ESB
31.
Forum
32.
GIS
33.
Graphic Library
34.
Groupware
35.
HTML Parser
36.
IDE
37.
IDE Eclipse
38.
IDE Netbeans
39.
Installer
40.
Internationalization Localization
41.
Inversion of Control
42.
Issue Tracking
43.
J2EE
44.
JBoss
45.
JMS
46.
JMX
47.
Library
48.
Mail Clients
49.
Net
50.
Parser
51.
PDF
52.
Portal
53.
Profiler
54.
Project Management
55.
Report
56.
RSS RDF
57.
Rule Engine
58.
Science
59.
Scripting
60.
Search Engine
61.
Security
62.
Sevlet Container
63.
Source Control
64.
Swing Library
65.
Template Engine
66.
Test Coverage
67.
Testing
68.
UML
69.
Web Crawler
70.
Web Framework
71.
Web Mail
72.
Web Server
73.
Web Services
74.
Web Services apache cxf 2.0.1
75.
Web Services AXIS2
76.
Wiki Engine
77.
Workflow Engines
78.
XML
79.
XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation
»
Web Server
»
jo
»
com.tagtraum.jobalancer
Source Cross Reference
Class Diagram
Java Document (Java Doc)
java.rmi.server
.UnicastRemoteObject
com.tagtraum.jobalancer
.JoRemoteSessionContext
JoRemoteSessionContext
public
class JoRemoteSessionContext extends
UnicastRemoteObject
implements
I_BasicService
,
I_JoRemoteSessionContext
,
Runnable
,
C_JoBalancer
(Code)
author:
Hendrik Schreiber
version:
1.1beta1 $Id: JoRemoteSessionContext.java,v 1.6 2005/03/15 20:09:44 hendriks73 Exp $
Field Summary
protected
int
checkCount
protected
int
gcEveryXChecks
protected
Hashtable
myAttributes
Attributes of this service.
protected
int
myDefaultMaxInactiveInterval
protected
int
myIDExtension
IDExtension.
protected
long
myInvalidationIntervall
protected
String
myName
Name of this service.
protected
HashSet
myRegisteredClients
Number of registered clients.
protected
long
myRunningSince
protected
Hashtable
mySessions
protected
Thread
myThread
Watchdog thread.
protected
boolean
running
public
static
String
vcid
Constructor Summary
public
JoRemoteSessionContext
()
Constructor.
Method Summary
public
void
addSession
(
I_JoRemoteSession
aSession)
protected
void
checkSessions
()
Checks all sessions.
public
Object
getAttribute
(
String
key)
Returns an attribute.
public
Enumeration
getAttributeNames
()
Enumeration of all attribute keys.
public
int
getDefaultMaxInactiveInterval
()
Returns the MaxInactiveInterval all sessions are initialized with.
public
String
getName
()
Returns the name of this
Service
.
public
String
getNewId
()
Returns a unique new sessionid.
public
I_JoRemoteSession
getSession
(
String
sessionId)
Returns the session with the specified id.
public
void
invalidateAllSessions
()
Invalidates all sessions.
public
synchronized boolean
isAlive
()
Indicates whether this
Service
is alive or not.
public
static void
main
(
String
args)
Method.
public
I_JoRemoteSession
newSession
()
Creates a new session.
public
void
register
(
String
joName)
Registers a wrapper at a RemoteSessionContext.
public
void
removeSession
(
String
anID)
Removes a session.
public
synchronized void
restart
()
Restarts this
Service
.
public
void
run
()
Überprüft regelmäßig alle Sessions auf ihre Gültigkeit.
public
long
runningSince
()
public
void
setAttribute
(
String
key,
Object
value)
Sets an attribute.
public
void
setDefaultMaxInactiveInterval
(int interval)
public
void
setName
(
String
name)
Sets the name of this
Service
.
public
void
start
()
Initialisiert den Kontext.
public
synchronized void
stop
()
Stops the context.
public
void
unregister
(
String
joName)
Unregisters this client from the RemoteSessionContext.
Field Detail
checkCount
protected
int checkCount
(Code)
gcEveryXChecks
protected
int gcEveryXChecks
(Code)
myAttributes
protected
Hashtable
myAttributes
(Code)
Attributes of this service.
myDefaultMaxInactiveInterval
protected
int myDefaultMaxInactiveInterval
(Code)
InvalidationTime in s
myIDExtension
protected
int myIDExtension
(Code)
IDExtension.
myInvalidationIntervall
protected
long myInvalidationIntervall
(Code)
InvalidationIntervall in ms
myName
protected
String
myName
(Code)
Name of this service.
myRegisteredClients
protected
HashSet
myRegisteredClients
(Code)
Number of registered clients.
myRunningSince
protected
long myRunningSince
(Code)
Running since
mySessions
protected
Hashtable
mySessions
(Code)
Datenstruktur, in der die Sessions gehalten werden
myThread
protected
Thread
myThread
(Code)
Watchdog thread.
running
protected
boolean running
(Code)
Flag, ob der Kontext läuft
vcid
public
static
String
vcid
(Code)
Source-Version
Constructor Detail
JoRemoteSessionContext
public
JoRemoteSessionContext() throws
RemoteException
(Code)
Constructor.
Method Detail
addSession
public
void addSession(
I_JoRemoteSession
aSession) throws
RemoteException
(Code)
Adds a session to the RemoteSessionContext
Parameters:
aSession - a session
checkSessions
protected
void checkSessions() throws
RemoteException
(Code)
Checks all sessions.
getAttribute
public
Object
getAttribute(
String
key)
(Code)
Returns an attribute. the attribute or
null
, if it doesn't exist.
Parameters:
key - the attribute's key
getAttributeNames
public
Enumeration
getAttributeNames()
(Code)
Enumeration of all attribute keys. an Enumeration of all attribute keys
getDefaultMaxInactiveInterval
public
int getDefaultMaxInactiveInterval() throws
RemoteException
(Code)
Returns the MaxInactiveInterval all sessions are initialized with. MaxInactiveInterval in seconds
getName
public
String
getName()
(Code)
Returns the name of this
Service
. the name of this
Service
getNewId
public
String
getNewId() throws
RemoteException
(Code)
Returns a unique new sessionid. new session ID
getSession
public
I_JoRemoteSession
getSession(
String
sessionId) throws
RemoteException
(Code)
Returns the session with the specified id.
Parameters:
sessionID - the id the sesseion or
null
invalidateAllSessions
public
void invalidateAllSessions() throws
RemoteException
(Code)
Invalidates all sessions.
isAlive
public
synchronized boolean isAlive()
(Code)
Indicates whether this
Service
is alive or not.
true
or
false
main
public
static void main(
String
args) throws
Exception
(Code)
Method.
Parameters:
args -
throws:
Exception
-
newSession
public
I_JoRemoteSession
newSession() throws
RemoteException
(Code)
Creates a new session. Session or
null
register
public
void register(
String
joName) throws
RemoteException
(Code)
Registers a wrapper at a RemoteSessionContext.
removeSession
public
void removeSession(
String
anID) throws
RemoteException
(Code)
Removes a session.
Parameters:
anID - a sessionID
restart
public
synchronized void restart() throws
com.tagtraum.framework.server.ServerException
(Code)
Restarts this
Service
.
exception:
com.tagtraum.framework.server.ServerException
- if it is not possible toeither start or stop this
Service
run
public
void run()
(Code)
Überprüft regelmäßig alle Sessions auf ihre Gültigkeit.
runningSince
public
long runningSince()
(Code)
Returns the time when the service was started the time when the service was started
setAttribute
public
void setAttribute(
String
key,
Object
value)
(Code)
Sets an attribute.
Parameters:
key - key of this attribute
Parameters:
value - value of this attribute
setDefaultMaxInactiveInterval
public
void setDefaultMaxInactiveInterval(int interval) throws
RemoteException
(Code)
Sets the MaxInactiveInterval, all sessions are initialized with
Parameters:
interval - MaxInactiveInterval in seconds
setName
public
void setName(
String
name)
(Code)
Sets the name of this
Service
.
Parameters:
name - name of this
Service
start
public
void start() throws
com.tagtraum.framework.server.ServerException
(Code)
Initialisiert den Kontext.
stop
public
synchronized void stop() throws
com.tagtraum.framework.server.ServerException
(Code)
Stops the context.
See Also:
JoRemoteSessionContext.invalidateAllSessions()
unregister
public
void unregister(
String
joName) throws
RemoteException
(Code)
Unregisters this client from the RemoteSessionContext.
Methods inherited from
java.rmi.server.UnicastRemoteObject
public
Object
clone() throws
CloneNotSupportedException
(Code)
(Java Doc)
public
static
RemoteStub
exportObject(
Remote
obj) throws
RemoteException
(Code)
(Java Doc)
public
static
Remote
exportObject(
Remote
obj, int port) throws
RemoteException
(Code)
(Java Doc)
public
static
Remote
exportObject(
Remote
obj, int port,
RMIClientSocketFactory
csf,
RMIServerSocketFactory
ssf) throws
RemoteException
(Code)
(Java Doc)
public
static boolean unexportObject(
Remote
obj, boolean force) throws
java.rmi.NoSuchObjectException
(Code)
(Java Doc)
www.java2java.com
|
Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.