public class FakeMaster extends Object implements MasterProxyIF
| Constructor and Description |
|---|
FakeMaster() |
| Modifier and Type | Method and Description |
|---|---|
ClientVmRecord |
bounceUnitTestVm(int pid)
For internal hydra use only.
|
void |
configureNetworkConnection(String source,
String target,
int op,
int way)
For internal hydra use only.
|
List<List<String>> |
getClientMapping()
Called remotely by client processes to get the client mapping as a list
of lists, where each sublist is the threadgroup plus the thread name.
|
Vector |
getClientVmids()
For internal hydra use only.
|
Map |
getClientVms()
For internal hydra use only.
|
DerbyServerHelper.Endpoint |
getDerbyServerEndpoint()
For internal hydra use only.
|
Object |
getGlobalNext(Long key)
For internal hydra use only.
|
HostAgentIF |
getHostAgent(String host)
For internal hydra use only.
|
TestConfig |
getHostAgentTestConfig() |
int |
getJMXAgentRmiPort(String name) |
int |
getMulticastPort() |
Map |
getNetworkConnectionState()
For internal hydra use only.
|
Vector |
getOtherClientVmids(int vmid)
For internal hydra use only.
|
int |
getPid(int vmid)
For internal hydra use only.
|
TestConfig |
getTestConfig() |
Integer |
getVmid(String host,
int pid)
Called remotely by client processes to get the VM ID corresponding to host
and PID.
|
void |
invoke(String classname,
String methodname,
Class[] types,
Object[] args) |
void |
lockToSynchronizeJavaGroupsForBug30341()
Workaround for bug 30341.
|
void |
printClientProcessStacks() |
void |
reboot(String srcName,
int srcVmid,
int actionId,
String reason,
RebootInfo target)
For internal hydra use only.
|
void |
recordAgent(AgentHelper.Endpoint endpoint) |
void |
recordDir(HostDescription hd,
String name,
String dir) |
void |
recordHadoop(HadoopDescription hdd,
HadoopDescription.NodeDescription nd,
int pid,
boolean secure) |
void |
recordHDFSPIDNoDumps(HostDescription hd,
int pid,
boolean secure) |
void |
recordLocator(DistributedSystemHelper.Endpoint endpoint)
For internal hydra use only.
|
void |
recordPID(HostDescription hd,
int pid) |
void |
recordPIDNoDumps(HostDescription hd,
int pid) |
void |
recordRootCommand(HostDescription hd,
String cmd,
String dir) |
HydraThreadGroupInfo |
registerClient(int vmid,
int tid,
RemoteTestModuleIF mod)
For internal hydra use only.
|
void |
registerClientDisconnect(int vmid)
For internal hydra use only.
|
void |
registerGemFireLocatorAgent(GemFireLocatorAgentRecord lar)
For internal hydra use only.
|
void |
registerHostAgent(HostAgentRecord har)
For internal hydra use only.
|
void |
removeDir(HostDescription hd,
String dir) |
void |
removeHadoop(HadoopDescription hdd,
HadoopDescription.NodeDescription nd,
int pid,
boolean secure) |
void |
removeHDFSPIDNoDumps(HostDescription hd,
int pid,
boolean secure) |
void |
removePID(HostDescription hd,
int pid) |
void |
removePIDNoDumps(HostDescription hd,
int pid) |
void |
reportResult(int tsid,
int vmid,
int tid,
TestTaskResult result)
For internal hydra use only.
|
void |
reportStatMonitorError(Throwable t)
For internal hydra use only.
|
ClientVmInfo |
reserveClientVmForStart(String srcName,
int srcVmid,
ClientVmInfo target)
For internal hydra use only.
|
ClientVmInfo |
reserveClientVmForStop(String srcName,
int srcVmid,
int syncMode,
int stopMode,
ClientVmInfo target)
For internal hydra use only.
|
RebootInfo |
reserveForReboot(String srcName,
int srcVmid,
String target,
boolean liveOnly)
For internal hydra use only.
|
boolean |
reservePort(String host,
int port)
For internal hydra use only.
|
void |
showNetworkConnectionState()
For internal hydra use only.
|
void |
startClientVm(String srcName,
int srcVmid,
int actionId,
String reason,
int syncMode,
ClientVmInfo target)
For internal hydra use only.
|
void |
stopClientVm(String srcName,
int srcVmid,
int actionId,
String reason,
int syncMode,
int stopMode,
int startMode,
ClientVmInfo target)
For internal hydra use only.
|
void |
unlockToSynchronizeJavaGroupsForBug30341() |
public ClientVmRecord bounceUnitTestVm(int pid) throws RemoteException
MasterProxyIFbounceUnitTestVm in interface MasterProxyIFRemoteExceptionpublic void configureNetworkConnection(String source, String target, int op, int way) throws RemoteException
MasterProxyIFconfigureNetworkConnection in interface MasterProxyIFRemoteExceptionpublic Vector getClientVmids() throws RemoteException
MasterProxyIFgetClientVmids in interface MasterProxyIFRemoteExceptionpublic Map getClientVms() throws RemoteException
MasterProxyIFgetClientVms in interface MasterProxyIFRemoteExceptionpublic List<List<String>> getClientMapping() throws RemoteException
MasterProxyIFgetClientMapping in interface MasterProxyIFRemoteExceptionpublic Object getGlobalNext(Long key) throws RemoteException
MasterProxyIFgetGlobalNext in interface MasterProxyIFRemoteExceptionpublic boolean reservePort(String host, int port) throws RemoteException
MasterProxyIFreservePort in interface MasterProxyIFRemoteExceptionpublic int getJMXAgentRmiPort(String name) throws RemoteException
RemoteExceptionpublic int getMulticastPort()
throws RemoteException
RemoteExceptionpublic Map getNetworkConnectionState() throws RemoteException
MasterProxyIFgetNetworkConnectionState in interface MasterProxyIFRemoteExceptionpublic Vector getOtherClientVmids(int vmid) throws RemoteException
MasterProxyIFgetOtherClientVmids in interface MasterProxyIFRemoteExceptionpublic RebootInfo reserveForReboot(String srcName, int srcVmid, String target, boolean liveOnly) throws RemoteException, RebootHostNotFoundException
MasterProxyIFreserveForReboot in interface MasterProxyIFRemoteExceptionRebootHostNotFoundExceptionpublic void reboot(String srcName, int srcVmid, int actionId, String reason, RebootInfo target) throws RemoteException
MasterProxyIFreboot in interface MasterProxyIFRemoteExceptionpublic int getPid(int vmid)
throws RemoteException
MasterProxyIFgetPid in interface MasterProxyIFRemoteExceptionpublic TestConfig getTestConfig() throws RemoteException
getTestConfig in interface MasterProxyIFRemoteExceptionpublic TestConfig getHostAgentTestConfig() throws RemoteException
getHostAgentTestConfig in interface MasterProxyIFRemoteExceptionpublic Integer getVmid(String host, int pid) throws RemoteException
MasterProxyIFIf host is an IPv6 host name, hydra attempts to match it to the IPv4 host name known by hydra. This only succeeds if the IPv6 host name is the same as the IPv4 host name with the suffix "6". If you are running on an IPv6 host for which this is not the case, ask I.S. to configure the host so that it is.
getVmid in interface MasterProxyIFRemoteExceptionpublic void invoke(String classname, String methodname, Class[] types, Object[] args) throws RemoteException
invoke in interface MasterProxyIFRemoteExceptionpublic void lockToSynchronizeJavaGroupsForBug30341()
throws RemoteException
MasterProxyIFlockToSynchronizeJavaGroupsForBug30341 in interface MasterProxyIFRemoteExceptionpublic void printClientProcessStacks()
throws RemoteException
printClientProcessStacks in interface MasterProxyIFRemoteExceptionpublic void recordDir(HostDescription hd, String name, String dir) throws RemoteException
recordDir in interface MasterProxyIFRemoteExceptionpublic void recordPID(HostDescription hd, int pid) throws RemoteException
recordPID in interface MasterProxyIFRemoteExceptionpublic HydraThreadGroupInfo registerClient(int vmid, int tid, RemoteTestModuleIF mod) throws RemoteException
MasterProxyIFregisterClient in interface MasterProxyIFRemoteExceptionpublic void registerClientDisconnect(int vmid)
throws RemoteException
MasterProxyIFregisterClientDisconnect in interface MasterProxyIFRemoteExceptionpublic void registerGemFireLocatorAgent(GemFireLocatorAgentRecord lar) throws RemoteException
MasterProxyIFregisterGemFireLocatorAgent in interface MasterProxyIFRemoteExceptionpublic void registerHostAgent(HostAgentRecord har) throws RemoteException
MasterProxyIFregisterHostAgent in interface MasterProxyIFRemoteExceptionpublic HostAgentIF getHostAgent(String host) throws RemoteException
MasterProxyIFgetHostAgent in interface MasterProxyIFRemoteExceptionpublic void removeDir(HostDescription hd, String dir) throws RemoteException
RemoteExceptionpublic void removePID(HostDescription hd, int pid) throws RemoteException
removePID in interface MasterProxyIFRemoteExceptionpublic void recordHadoop(HadoopDescription hdd, HadoopDescription.NodeDescription nd, int pid, boolean secure) throws RemoteException
recordHadoop in interface MasterProxyIFRemoteExceptionpublic void removeHadoop(HadoopDescription hdd, HadoopDescription.NodeDescription nd, int pid, boolean secure) throws RemoteException
removeHadoop in interface MasterProxyIFRemoteExceptionpublic void reportResult(int tsid,
int vmid,
int tid,
TestTaskResult result)
throws RemoteException
MasterProxyIFreportResult in interface MasterProxyIFRemoteExceptionpublic void reportStatMonitorError(Throwable t) throws RemoteException
MasterProxyIFreportStatMonitorError in interface MasterProxyIFRemoteExceptionpublic ClientVmInfo reserveClientVmForStart(String srcName, int srcVmid, ClientVmInfo target) throws RemoteException, ClientVmNotFoundException
MasterProxyIFreserveClientVmForStart in interface MasterProxyIFRemoteExceptionClientVmNotFoundExceptionpublic ClientVmInfo reserveClientVmForStop(String srcName, int srcVmid, int syncMode, int stopMode, ClientVmInfo target) throws RemoteException, ClientVmNotFoundException
MasterProxyIFreserveClientVmForStop in interface MasterProxyIFRemoteExceptionClientVmNotFoundExceptionpublic void showNetworkConnectionState()
throws RemoteException
MasterProxyIFshowNetworkConnectionState in interface MasterProxyIFRemoteExceptionpublic void startClientVm(String srcName, int srcVmid, int actionId, String reason, int syncMode, ClientVmInfo target) throws RemoteException
MasterProxyIFstartClientVm in interface MasterProxyIFRemoteExceptionpublic void stopClientVm(String srcName, int srcVmid, int actionId, String reason, int syncMode, int stopMode, int startMode, ClientVmInfo target) throws RemoteException
MasterProxyIFstopClientVm in interface MasterProxyIFRemoteExceptionpublic void unlockToSynchronizeJavaGroupsForBug30341()
throws RemoteException
unlockToSynchronizeJavaGroupsForBug30341 in interface MasterProxyIFRemoteExceptionpublic void recordAgent(AgentHelper.Endpoint endpoint) throws RemoteException
recordAgent in interface MasterProxyIFRemoteExceptionpublic void recordLocator(DistributedSystemHelper.Endpoint endpoint) throws RemoteException
MasterProxyIFrecordLocator in interface MasterProxyIFRemoteExceptionpublic DerbyServerHelper.Endpoint getDerbyServerEndpoint() throws RemoteException
MasterProxyIFgetDerbyServerEndpoint in interface MasterProxyIFRemoteExceptionpublic void recordPIDNoDumps(HostDescription hd, int pid) throws RemoteException
recordPIDNoDumps in interface MasterProxyIFRemoteExceptionpublic void recordHDFSPIDNoDumps(HostDescription hd, int pid, boolean secure) throws RemoteException
recordHDFSPIDNoDumps in interface MasterProxyIFRemoteExceptionpublic void removePIDNoDumps(HostDescription hd, int pid) throws RemoteException
removePIDNoDumps in interface MasterProxyIFRemoteExceptionpublic void removeHDFSPIDNoDumps(HostDescription hd, int pid, boolean secure) throws RemoteException
removeHDFSPIDNoDumps in interface MasterProxyIFRemoteExceptionpublic void recordRootCommand(HostDescription hd, String cmd, String dir) throws RemoteException
recordRootCommand in interface MasterProxyIFRemoteExceptionCopyright © 2010-2015 Pivotal Software, Inc. All rights reserved.