|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dist1.acb.common.database.CBL
CBL
Field Summary | |
static byte |
BIT_INSYSTEM
If a CBL is in system (is joined to the system), first bit of the corresponding state is 1 |
static byte |
BIT_PRIMARY
If a CBL is primary, second bit of the corresponding state is 1 |
static byte |
STATE_BACKUP
The CBL is backup (and online) |
static byte |
STATE_OFFLINE
The CBL is offline |
static byte |
STATE_PRIMARY
The CBL is primary (and online) |
Constructor Summary | |
CBL(java.lang.String name,
java.lang.String host,
int port,
byte state,
int clientport,
int adminport)
Creates a new CBL object. |
Method Summary | |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
boolean |
equals(java.lang.Object obj)
Compare names of CBL's |
int |
getAdminport()
Getter for property adminport. |
int |
getClientport()
Getter for property clientport. |
java.lang.String |
getHost()
Getter for property host. |
java.lang.String |
getName()
Getter for property name. |
int |
getPort()
Getter for property port. |
byte |
getState()
Getter for property state. |
boolean |
isInSystem()
Test the atribute state if the CBL in the system (is joined) |
boolean |
isPrimary()
Test the atribute state if it is primary CBL |
void |
setAdminport(int adminport)
Setter for property adminport. |
void |
setClientport(int clientport)
Setter for property clientport. |
void |
setHost(java.lang.String host)
Setter for property host. |
void |
setName(java.lang.String name)
Setter for property name. |
void |
setPort(int port)
Setter for property port. |
void |
setState(byte state)
Setter for property state. |
java.lang.String |
toString()
String representation of the object |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final byte BIT_INSYSTEM
public static final byte BIT_PRIMARY
public static final byte STATE_PRIMARY
public static final byte STATE_BACKUP
public static final byte STATE_OFFLINE
Constructor Detail |
public CBL(java.lang.String name, java.lang.String host, int port, byte state, int clientport, int adminport)
name
- Name of the CBLhost
- Address of the CBLport
- Port of the CBLstate
- State of the CBLclientport
- Port for ACBpoint's requestsadminport
- Port for CBLcc's requestsMethod Detail |
public void setAdminport(int adminport)
adminport
- New value of property adminport.public int getAdminport()
public void setClientport(int clientport)
clientport
- New value of property clientport.public int getClientport()
public void setHost(java.lang.String host)
host
- New value of property host.public java.lang.String getHost()
public boolean isInSystem()
public void setName(java.lang.String name)
name
- New value of property name.public java.lang.String getName()
public void setPort(int port)
port
- New value of property port.public int getPort()
public boolean isPrimary()
public void setState(byte state)
state
- New value of property state.public byte getState()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
- if the object's class does not
support the Cloneable interface. Subclasses that override the
clone method can also throw this exception to indicate that an
instance cannot be clonedpublic boolean equals(java.lang.Object obj)
obj
- A CBL
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |