Package alluxio.master
Class MasterInquireClient.Factory
- java.lang.Object
-
- alluxio.master.MasterInquireClient.Factory
-
- Enclosing interface:
- MasterInquireClient
public static class MasterInquireClient.Factory extends java.lang.Object
Factory for getting a master inquire client.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MasterInquireClient
create(AlluxioConfiguration conf, UserState userState)
static MasterInquireClient
createForAddresses(java.util.List<java.net.InetSocketAddress> addresses, AlluxioConfiguration conf, UserState userState)
static MasterInquireClient
createForJobMaster(AlluxioConfiguration conf, UserState userState)
static MasterInquireClient.ConnectDetails
getConnectDetails(AlluxioConfiguration conf)
-
-
-
Method Detail
-
create
public static MasterInquireClient create(AlluxioConfiguration conf, UserState userState)
- Parameters:
conf
- configuration for creating the master inquire clientuserState
- the user state for the client- Returns:
- a master inquire client
-
createForAddresses
public static MasterInquireClient createForAddresses(java.util.List<java.net.InetSocketAddress> addresses, AlluxioConfiguration conf, UserState userState)
- Parameters:
addresses
- the addresses to use for the clientconf
- configuration for creating the master inquire clientuserState
- the user state for the client- Returns:
- a master inquire client using the addresses given
-
createForJobMaster
public static MasterInquireClient createForJobMaster(AlluxioConfiguration conf, UserState userState)
- Parameters:
conf
- configuration for creating the master inquire clientuserState
- the user state for the client- Returns:
- a master inquire client
-
getConnectDetails
public static MasterInquireClient.ConnectDetails getConnectDetails(AlluxioConfiguration conf)
- Parameters:
conf
- configuration for creating the master inquire client- Returns:
- the connect string represented by the configuration
-
-