|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
edu.ucsb.cs.jicos.services.external.services.Collector
public abstract class Collector
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
protected java.lang.String |
host
Name of this host. |
protected edu.ucsb.cs.jicos.services.ClientToHsp |
hsp
Host Service Provider for this collector to use. |
protected int |
port
Port that this collector is listening. |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
Collector()
Default, no argument, constructor. |
|
Collector(edu.ucsb.cs.jicos.services.ClientToHsp hsp)
Create a collector associated with a particular HSP. |
|
Collector(edu.ucsb.cs.jicos.services.ClientToHsp hsp,
int port)
Create a collector associated with a particular HSP and port. |
|
| Method Summary | |
|---|---|
java.lang.String |
getHost()
Return the name of this host. |
java.lang.String |
getHostPort()
Return a useful combination of hostname and port. |
edu.ucsb.cs.jicos.services.ClientToHsp |
getHsp()
Get the HSP this collector is associated with. |
int |
getPort()
Get the port being listened on by this collector. |
abstract void |
run()
Force sub-classes to implement this method. |
void |
setHost(java.lang.String host)
Set the name of this host (for the purposes of the collector). |
void |
setHsp(edu.ucsb.cs.jicos.services.ClientToHsp hsp)
Set the HSP to associate with. |
void |
setPort(int port)
Set the port to listen to. |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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 |
|---|
protected edu.ucsb.cs.jicos.services.ClientToHsp hsp
protected int port
protected java.lang.String host
| Constructor Detail |
|---|
public Collector()
public Collector(edu.ucsb.cs.jicos.services.ClientToHsp hsp)
hsp - The specific HSP to use to send external requests.
public Collector(edu.ucsb.cs.jicos.services.ClientToHsp hsp,
int port)
hsp - The specific HSP to use to send external requests.port - The TCP/UDP port being listened on.| Method Detail |
|---|
public edu.ucsb.cs.jicos.services.ClientToHsp getHsp()
public int getPort()
public java.lang.String getHost()
public java.lang.String getHostPort()
public void setHsp(edu.ucsb.cs.jicos.services.ClientToHsp hsp)
hsp - The HSP.public void setPort(int port)
port - The port.public void setHost(java.lang.String host)
host - Host name.public abstract void run()
run in interface java.lang.Runnablerun in class java.lang.Thread
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||