Class AdvertisedServer
- java.lang.Object
-
- org.jboss.modcluster.advertise.impl.AdvertisedServer
-
public class AdvertisedServer extends Object
Advertised server instance- Author:
- Mladen Turk
-
-
Field Summary
Fields Modifier and Type Field Description static StringMANAGER_ADDRESSManager-Address header
-
Constructor Summary
Constructors Modifier Constructor Description protectedAdvertisedServer(String server)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetDate()Get Date of the last Advertise messageStringgetParameter(String name)Get Advertise parameterintgetStatusCode()Get Status code of the last Advertise messageStringgetStatusDescription()Get Status description of the last Advertise messageprotected voidsetDate(Date date)Set the Date of the last Advertise messageprotected voidsetParameter(String name, String value)Set the Headerprotected booleansetStatus(int status, String desc)StringtoString()
-
-
-
Field Detail
-
MANAGER_ADDRESS
public static final String MANAGER_ADDRESS
Manager-Address header- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AdvertisedServer
protected AdvertisedServer(String server)
-
-
Method Detail
-
setStatus
protected boolean setStatus(int status, String desc)
-
setDate
protected void setDate(Date date)
Set the Date of the last Advertise message
-
getDate
public Date getDate()
Get Date of the last Advertise message
-
getStatusCode
public int getStatusCode()
Get Status code of the last Advertise message
-
getStatusDescription
public String getStatusDescription()
Get Status description of the last Advertise message
-
-