|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.EventObject
util.rmi.RmiEvent
stella.MessageEvent
stella.ErrorEvent
stella.error.TcpNoFreeConnections
public class TcpNoFreeConnections
An error event signaling a problems connecting to the telescope. Access will be denied in case of mismatching network/netmasks. Because it indicates network failures it is considered a severe error (level 7) and will always lead to a shut-down of the telescope.
| Field Summary | |
|---|---|
private static String |
FOLLOWUP
The follow-up (shutdown). |
private static boolean |
PIPING
The pipe flag (false). |
private int |
port
The port at which the client tried to connect to the ATIS server. |
private static int |
SEVERENESS
The severness level (fatal error). |
private InetAddress |
violate
The host address that was denied. |
| Fields inherited from class stella.ErrorEvent |
|---|
ABORT_EXPOSURE, ABORT_TARGET, ALARM_OFF, ALARM_ON, BAD_SEEING, BAD_WEATHER, CLEAR_TEL, CLOSE_COVER, CLOSE_ROOF, CLOSE_SHUTTER, CONT_TIME, ERROR_TOKEN, ERRORCOMBINE, ERRORPACKAGE, GOOD_WEATHER, HIGH_WIND, MAIL_HOME, MAIL_LOCAL, MOVE_HOME, MOVE_PARK, NONE, OPEN_COVER, OPEN_SHUTTER, PIPE, REACQUIRE, REPOSITION, RESEND_COMMAND, RESET_ADAPTER, RESET_CALIBRATION, RESET_CCD, RESET_ENV, RESET_ERRORS, RESET_SPEC, RESET_TEL, SHUT_DOWN, STATUS_TOKEN, STOP_TIME |
| Fields inherited from class stella.MessageEvent |
|---|
SEPCHAR |
| Fields inherited from class util.rmi.RmiEvent |
|---|
localHost, sourceName |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
TcpNoFreeConnections(Object src)
Constructs a software error. |
|
| Method Summary | |
|---|---|
String |
getHuman()
Returns the human-readable part of the string. |
String[] |
getLine()
Returns the command lines as an string array. |
int |
getPort()
Returns the error-reasons as an integer. |
InetAddress |
getViolate()
Returns the inet-addres of the access violator. |
boolean |
parseLine(String[] all)
Parses the host that was not granted access and the port out of the second command line. |
void |
setPort(int cause)
Sets the reason. |
void |
setViolate(InetAddress offend)
Sets the inet-address of the access violator. |
| Methods inherited from class stella.ErrorEvent |
|---|
consume, createError, createError, createError, createError, createError, createStatus, createStatus, createStatus, extractClassName, extractFollowUp, extractPipe, getErrorClass, getFollowUp, getSevereness, isConsumed, isPipe, isStatus, parseClassName, parseHeader, setFollowUp, setHuman, setHuman, setPipe |
| Methods inherited from class stella.MessageEvent |
|---|
checkType, equals, equalTime, equalTime, fromAscii, getAllCommandLines, getExecuteGroupKey, getHead, getNr, getTime, getType, hashCode, isValid, parseFromSingleString, readFromBufferedStream, setNr, setTime, setType, setValid, toString |
| Methods inherited from class util.rmi.RmiEvent |
|---|
getHost, getSourceName, setSourceName |
| Methods inherited from class java.util.EventObject |
|---|
getSource |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final int SEVERENESS
private static final String FOLLOWUP
private static final boolean PIPING
private InetAddress violate
private int port
| Constructor Detail |
|---|
public TcpNoFreeConnections(Object src)
SEVERENESS level,
has a FOLLOWUP as a recovery strategy an does not pipe.
| Method Detail |
|---|
public boolean parseLine(String[] all)
parseLine in class ErrorEventpublic String[] getLine()
getLine in class ErrorEventpublic String getHuman()
getHuman in class ErrorEventpublic int getPort()
public void setPort(int cause)
public InetAddress getViolate()
public void setViolate(InetAddress offend)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||