com.liferay.portal.fabric.netty.agent
Class NettyFabricAgentStub
java.lang.Object
com.liferay.portal.fabric.netty.agent.NettyFabricAgentStub
- All Implemented Interfaces:
- FabricAgent, ProcessExecutor
public class NettyFabricAgentStub
- extends Object
- implements FabricAgent
NettyFabricAgentStub
public NettyFabricAgentStub(io.netty.channel.Channel channel,
Repository<io.netty.channel.Channel> repository,
java.nio.file.Path remoteRepositoryPath,
long rpcRelayTimeout,
long startupTimeout)
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
execute
public <T extends Serializable> FabricWorker<T> execute(ProcessConfig processConfig,
ProcessCallable<T> processCallable)
- Specified by:
execute in interface FabricAgent- Specified by:
execute in interface ProcessExecutor
finishStartup
public void finishStartup(long id)
getFabricStatus
public FabricStatus getFabricStatus()
- Specified by:
getFabricStatus in interface FabricAgent
getFabricWorkers
public Collection<? extends FabricWorker<?>> getFabricWorkers()
- Specified by:
getFabricWorkers in interface FabricAgent
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
takeNettyStubFabricWorker
public NettyFabricWorkerStub<?> takeNettyStubFabricWorker(long id)