|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ucsb.nceas.metacat.replication.ReplicationServerList
public class ReplicationServerList
A class represent a replication server list in xml_replcation table
| Constructor Summary | |
|---|---|
ReplicationServerList()
constructor of ReplicationServerList It will build server list. |
|
| Method Summary | |
|---|---|
void |
addToServerListIfItIsNot(java.lang.String givenServerName)
To a given server name, to check if it is in the server list. |
boolean |
getDataReplicationValue(java.lang.String givenServerName)
To a given server name, try to get its data file replciation option If couldn't find the server in the server list, false will return |
boolean |
getHubValue(java.lang.String givenServerName)
To a given server name, try to get its hub option If couldn't find the server in the server list, false will return |
java.lang.String |
getLastCheckedDate(java.lang.String givenServerName)
To a given server name, try to get its lastcheck date. |
boolean |
getReplicationValue(java.lang.String givenServerName)
To a given server name, try to get its xml replciation option If couldn't find the server in the server list, false will return |
boolean |
isEmpty()
Method to determine the server list is empty or not |
boolean |
isGivenServerInList(java.lang.String givenServerName)
Method to determine if a given server in the replication server list |
ReplicationServer |
serverAt(int index)
Method to get a server object given a index number |
int |
size()
Method to get the size of serverList |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReplicationServerList()
| Method Detail |
|---|
public boolean isEmpty()
public int size()
public ReplicationServer serverAt(int index)
index, - the given index numberpublic boolean isGivenServerInList(java.lang.String givenServerName)
givenServerName, - a server name will be check.public java.lang.String getLastCheckedDate(java.lang.String givenServerName)
givenServerName, - the server's name which we want to get last checked
out datepublic boolean getReplicationValue(java.lang.String givenServerName)
givenServerName, - the server's name which we want to get replication
valuepublic boolean getDataReplicationValue(java.lang.String givenServerName)
givenServerName, - the server's name which we want to get data file
replication valuepublic boolean getHubValue(java.lang.String givenServerName)
givenServerName, - the server's name which we want to get hubpublic void addToServerListIfItIsNot(java.lang.String givenServerName)
givenServerName, - the server's name which want to check
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||