|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.server.UnicastRemoteObject | +--infosapient.server.InfoSapientServiceImpl
Creation date: (04/06/01 1:23:59 PM)
Field Summary | |
private static java.util.Properties |
CONNECTION
|
private static java.util.Properties |
KBASES
|
private static java.io.PrintWriter |
LOGFile
|
private static int |
MAXWORKERS
max # BlackMesaKnowledgeWorker threads |
private static int |
NWORKERS
default # BlackMesaKnowledgeWorker threads |
private static int |
PORT
port for listening |
private java.util.Hashtable |
registry
The registry of BlackMesaClients |
private static java.io.File |
root
The BlackMesaServer's root |
private static java.util.Properties |
SERVER_PROPERTIES
|
private static int |
timeout
Timeout on client connections |
private static java.util.Hashtable |
Worker_POOLS_Table
Dictionary of idle BlackMesaKnowledgeWorker threads -- the type of knowledgebase is the key to each worker thread pool. |
Fields inherited from class java.rmi.server.UnicastRemoteObject |
csf,
port,
portFactoryParamTypes,
portParamTypes,
serialVersionUID,
ssf |
Fields inherited from class java.rmi.server.RemoteServer |
log,
logname,
serialVersionUID |
Fields inherited from class java.rmi.server.RemoteObject |
ref,
serialVersionUID |
Constructor Summary | |
protected |
InfoSapientServiceImpl()
BlackMesaRulesServerImpl constructor comment. |
protected |
InfoSapientServiceImpl(int port)
BlackMesaRulesServerImpl constructor comment. |
protected |
InfoSapientServiceImpl(int port,
java.rmi.server.RMIClientSocketFactory csf,
java.rmi.server.RMIServerSocketFactory ssf)
BlackMesaRulesServerImpl constructor comment. |
Method Summary | |
boolean |
broadcast(java.rmi.server.ObjID from,
java.lang.String mtag,
java.lang.Object data)
Broadcast a message to all known clients. |
java.rmi.server.ObjID |
execute(InfoSapientClient interestedClient,
java.util.Properties goalProperties)
Used by a InfoSapientClient to initiate a knowledgebase session by starting a new thread. |
static java.util.Properties |
getCONNECTION()
Insert the method's description here. |
static java.util.Properties |
getKBASES()
return properties file of knowledgebases Creation date: (04/06/01 1:29:02 PM) |
static java.io.PrintWriter |
getLOGFile()
return the logfile stream Creation date: (04/06/01 1:29:02 PM) |
static int |
getMAXWORKERS()
return the maximum permitted number of threads within the worker pool. |
static int |
getNWORKERS()
Return actual number of workers. |
static int |
getPORT()
Insert the method's description here. |
protected java.util.Hashtable |
getRegistry()
Return the registry of BlackMesaClients (ObjID-->BlackMesaClient) Creation date: (04/07/01 7:35:41 PM) |
static java.io.File |
getRoot()
Insert the method's description here. |
static java.util.Properties |
getSERVER_PROPERTIES()
Insert the method's description here. |
static int |
getTimeout()
Insert the method's description here. |
static java.util.Hashtable |
getWorker_POOLS_Table()
Insert the method's description here. |
private static void |
Initialize()
|
private static void |
LoadServerProperties()
load SmoothRulesServer.properties from java.home |
static void |
main(java.lang.String[] args)
Assign a security manager, in the event that dynamic classes are loaded. |
static void |
p(java.lang.String p)
Log the message to output file Creation date: (04/06/01 1:39:44 PM) |
boolean |
register(java.rmi.server.ObjID i,
InfoSapientClient c)
Register this InfoSapientClient to recieve and transmit msgs. |
boolean |
remove(InfoSapientClient c)
Remove this InfoSapientClient from the registry. |
boolean |
send(java.rmi.server.ObjID to,
java.rmi.server.ObjID from,
java.lang.String mtag,
java.lang.Object data)
Send a message from a client, to another client. |
protected static void |
setCONNECTION(java.util.Properties newCONNECTION)
Insert the method's description here. |
private static void |
setKBASES(java.util.Properties newKBASES)
Insert the method's description here. |
private static void |
setLOGFile(java.io.PrintWriter newLOGFile)
Insert the method's description here. |
private static void |
setNWORKERS(int newNWORKERS)
Insert the method's description here. |
private static void |
setPORT(int newPORT)
Insert the method's description here. |
protected void |
setRegistry(java.util.Hashtable newRegistry)
Set a new Registry object Creation date: (04/07/01 7:35:41 PM) |
private static void |
setRoot(java.io.File newRoot)
Insert the method's description here. |
private static void |
setSERVER_PROPERTIES(java.util.Properties newSERVER_PROPERTIES)
Insert the method's description here. |
private static void |
setTimeout(int newTimeout)
Insert the method's description here. |
private static void |
setWorker_POOLS_Table(java.util.Hashtable newWorker_POOLS_Table)
Creation date: (04/06/01 1:29:02 PM) |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
|
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost,
getLog,
setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals,
getRef,
hashCode,
toString,
toStub,
writeObject |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
Field Detail |
private static java.io.PrintWriter LOGFile
private static java.util.Properties SERVER_PROPERTIES
private static java.util.Properties KBASES
private static java.util.Properties CONNECTION
private static java.io.File root
private java.util.Hashtable registry
private static int timeout
private static final int MAXWORKERS
private static int NWORKERS
private static int PORT
private static java.util.Hashtable Worker_POOLS_Table
Constructor Detail |
protected InfoSapientServiceImpl() throws java.rmi.RemoteException
protected InfoSapientServiceImpl(int port) throws java.rmi.RemoteException
port
- intprotected InfoSapientServiceImpl(int port, java.rmi.server.RMIClientSocketFactory csf, java.rmi.server.RMIServerSocketFactory ssf) throws java.rmi.RemoteException
port
- intcsf
- java.rmi.server.RMIClientSocketFactoryssf
- java.rmi.server.RMIServerSocketFactoryMethod Detail |
public boolean broadcast(java.rmi.server.ObjID from, java.lang.String mtag, java.lang.Object data) throws java.io.IOException, java.rmi.RemoteException
from
- - ObjID - unique identifier from whom the message is frommtag
- - String - arbitrary message identifier (implementation dependent)data
- - Object - message object.public java.rmi.server.ObjID execute(InfoSapientClient interestedClient, java.util.Properties goalProperties) throws java.rmi.RemoteException
infosapient.client.InfoSapientClient
- - the client requesting a kb sessionjava.util.Properties
- -
public static java.util.Properties getCONNECTION()
public static java.util.Properties getKBASES()
public static java.io.PrintWriter getLOGFile()
public static int getMAXWORKERS()
public static int getNWORKERS()
public static int getPORT()
protected java.util.Hashtable getRegistry()
public static java.io.File getRoot()
public static java.util.Properties getSERVER_PROPERTIES()
public static int getTimeout()
public static java.util.Hashtable getWorker_POOLS_Table()
private static void Initialize()
private static void LoadServerProperties() throws java.io.IOException
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- java.lang.String[]public static void p(java.lang.String p)
public boolean register(java.rmi.server.ObjID i, InfoSapientClient c) throws java.rmi.RemoteException
id
- - java.rmi.server.ObjID the identifierclient
- - infosapient.client.InfoSapientClient the client to be registered.public boolean remove(InfoSapientClient c) throws java.rmi.RemoteException
id
- - java.rmi.server.ObjID the id of the InfoSapientClient to be removed.public boolean send(java.rmi.server.ObjID to, java.rmi.server.ObjID from, java.lang.String mtag, java.lang.Object data) throws java.io.IOException, java.rmi.RemoteException
java.rmi.server.ObjID
- to - the recipient clientjava.rmi.server.ObjID
- from - the sending clientString
- - mtag - the arbitrary message tag.Object
- - data - the message object. (Implementations decide what that object is.)protected static void setCONNECTION(java.util.Properties newCONNECTION)
newCONNECTION
- java.util.Propertiesprivate static void setKBASES(java.util.Properties newKBASES)
newKBASES
- java.util.Propertiesprivate static void setLOGFile(java.io.PrintWriter newLOGFile)
newLOGFile
- java.io.PrintStreamprivate static void setNWORKERS(int newNWORKERS)
newNWORKERS
- intprivate static void setPORT(int newPORT)
newPORT
- intprotected void setRegistry(java.util.Hashtable newRegistry)
newRegistry
- java.util.Hashtableprivate static void setRoot(java.io.File newRoot)
newRoot
- java.io.Fileprivate static void setSERVER_PROPERTIES(java.util.Properties newSERVER_PROPERTIES)
newSERVER_PROPERTIES
- java.util.Propertiesprivate static void setTimeout(int newTimeout)
newTimeout
- intprivate static void setWorker_POOLS_Table(java.util.Hashtable newWorker_POOLS_Table)
newWorker_POOLS_Table
- java.util.Hashtable
|
License to use this program is provided under the TERMS OF THE COMMON PUBLIC LICENSE 0.5. ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |