|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--pl.edu.pjwstk.yaod.system.processes.SVRP
Obiekty tej klasy reprezentuja klienta po stronie serwera. Jeden obiekt klasy ServerProcess tworzony dla jednego nadchodzącego polaczenia od klienta.
Field Summary | |
static int |
HTTP
|
static int |
YNET
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
SVRP(DatabaseManager manager,
java.net.Socket socket,
int protocol)
Tworzy nowy proces uslugowy: tworzy komunikator, pobiera liste oslon oslon, inicjalizuje menedzera obiektow i parser yaql. |
Method Summary | |
static java.util.Vector |
execute(Interpreter qproc,
java.lang.String cmd)
Wykonuje instrukcje yaql. |
Interpreter |
getInterpreter()
Zwraca obiekt reprezentujacy interpreter wykorzystywany przez ten proces uslugowy. |
ObjectManager |
getObjectManager()
Zwraca menedzera obiektow wykorzystywanego przez ten proces. |
Wrappable |
getStoreByID(int id)
Zwraca oslone skladu o podanym identyfikatorze. |
java.util.Enumeration |
getStores()
Zwraca oslony wszystkich skladow. |
void |
run()
Uruchamia watek realizujacy zadania procesu uslugowego: nasluchiwanie na zadania klientow, wykonywanie i wysylanie odpowiedzi. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int YNET
public static final int HTTP
Constructor Detail |
public SVRP(DatabaseManager manager, java.net.Socket socket, int protocol) throws java.io.IOException
manager
- menedzer bazy danych, ktory uruchomil ten proces.socket
- gniazdko reprezentujace polaczenie z klientem.java.io.IOException
- nie mozna stworzyc komunikatora.Method Detail |
public Interpreter getInterpreter()
public Wrappable getStoreByID(int id)
id
- identyfikator skladu.public java.util.Enumeration getStores()
public ObjectManager getObjectManager()
public void run()
run
in class java.lang.Thread
public static java.util.Vector execute(Interpreter qproc, java.lang.String cmd) throws SBQLException
qproc
- obiekt interpretera, ktory ma wykonac dany program yaql.SBQLException
- blad wykonania programu.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |