Package de.julielab.java.utilities.cache
Class CacheServer
- java.lang.Object
-
- de.julielab.java.utilities.cache.CacheServer
-
public class CacheServer extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringMETHOD_GETstatic StringMETHOD_PUTstatic StringRESPONSE_FAILUREstatic StringRESPONSE_OK
-
Constructor Summary
Constructors Constructor Description CacheServer(File cacheDir, String host, int port)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)voidrun()voidrunInBackground()voidshutdown()
-
-
-
Field Detail
-
METHOD_GET
public static final String METHOD_GET
- See Also:
- Constant Field Values
-
METHOD_PUT
public static final String METHOD_PUT
- See Also:
- Constant Field Values
-
RESPONSE_OK
public static final String RESPONSE_OK
- See Also:
- Constant Field Values
-
RESPONSE_FAILURE
public static final String RESPONSE_FAILURE
- See Also:
- Constant Field Values
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException
- Throws:
IOException
-
run
public void run() throws IOException- Throws:
IOException
-
runInBackground
public void runInBackground()
-
shutdown
public void shutdown()
-
-