public class Server extends Object
Modifier and Type | Field and Description |
---|---|
long |
nextConn |
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
equalsTo(String server,
int port) |
void |
initialize(long time,
String name,
int rank)
Sets this object as a fresh and new with lastModif=0 and nextConn=time.
|
void |
load(DataInput in) |
boolean |
open(long currentTime)
Open and load a cursor which must be before max(currentTime, this
server's
Item.nextConn ). |
void |
push(String localURI,
long id) |
void |
store(DataOutput out) |
String |
toString() |
StringBuilder |
toStringBuilder(StringBuilder sb) |
public boolean equalsTo(String server, int port)
public void store(DataOutput out) throws IOException
IOException
public void load(DataInput in) throws IOException
IOException
public boolean open(long currentTime) throws IOException
Item.nextConn
).
This method is called just before the server goes onto our grill.IOException
public void close()
public void push(String localURI, long id) throws IOException
IOException
public void initialize(long time, String name, int rank)
public StringBuilder toStringBuilder(StringBuilder sb)
Copyright © 2016 Egothor. All Rights Reserved.