Documentation ¶
Index ¶
- Constants
- Variables
- func AssertEquals(t *testing.T, target, value interface{})
- func AtomicLongTester(t *testing.T, f func(t *testing.T, a *hz.AtomicLong))
- func AtomicLongTesterWithConfig(t *testing.T, configCallback func(*hz.Config), ...)
- func AtomicLongTesterWithConfigAndName(t *testing.T, makeName func() string, configCallback func(*hz.Config), ...)
- func Benchmarker(b *testing.B, f func(b *testing.B, config *hz.Config))
- func BenchmarkerWithConfigBuilder(b *testing.B, configCallback func(*hz.Config), ...)
- func EqualStringContent(b1, b2 []byte) bool
- func Eventually(t *testing.T, condition func() bool, msgAndArgs ...interface{})
- func GetClientAtomicLongWithConfig(name string, config *hz.Config) (*hz.Client, *hz.AtomicLong)
- func GetClientMapWithConfig(mapName string, config *hz.Config) (*hz.Client, *hz.Map)
- func GetClientMultiMapWithConfig(mapName string, config *hz.Config) (*hz.Client, *hz.MultiMap)
- func GetClientPNCounterWithConfig(name string, config *hz.Config) (*hz.Client, *hz.PNCounter)
- func GetClientSetWithConfig(setName string, config *hz.Config) (*hz.Client, *hz.Set)
- func HzVersion() string
- func LeakCheckEnabled() bool
- func ListTester(t *testing.T, f func(t *testing.T, l *hz.List))
- func ListTesterWithConfigAndName(t *testing.T, listName func() string, cbCallback func(*hz.Config), ...)
- func MakeCompactClusterConfig(clusterName, mapName, inMemoryFormat string, port int) string
- func MapBenchmarker(t *testing.B, fixture func(m *hz.Map), f func(t *testing.B, m *hz.Map))
- func MapBenchmarkerWithConfigAndName(b *testing.B, makeMapName func() string, cbCallback func(config *hz.Config), ...)
- func MapBenchmarkerWithConfigBuilder(t *testing.B, cbCallback func(*hz.Config), fixture func(m *hz.Map), ...)
- func MapTester(t *testing.T, f func(t *testing.T, m *hz.Map))
- func MapTesterWithConfig(t *testing.T, configCallback func(*hz.Config), f func(t *testing.T, m *hz.Map))
- func MapTesterWithConfigAndName(t *testing.T, makeMapName func(...string) string, ...)
- func MarkFlaky(t *testing.T, see ...string)
- func MarkRacy(t *testing.T, see ...string)
- func MarkSlow(t *testing.T)
- func MemberCount() int
- func MultiMapTester(t *testing.T, f func(t *testing.T, m *hz.MultiMap))
- func MultiMapTesterWithConfig(t *testing.T, configCallback func(*hz.Config), ...)
- func MultiMapTesterWithConfigAndName(t *testing.T, makeMapName func() string, configCallback func(*hz.Config), ...)
- func Must(err error)
- func MustBool(value bool, err error) bool
- func MustClient(client *hz.Client, err error) *hz.Client
- func MustSlice(slice []interface{}, err error) []interface{}
- func MustValue(value interface{}, err error) interface{}
- func Never(t *testing.T, condition func() bool, msgAndArgs ...interface{})
- func NewUniqueObjectName(service string, labels ...string) string
- func NextPort() int
- func NonSmartEnabled() bool
- func PNCounterTester(t *testing.T, f func(t *testing.T, pn *hz.PNCounter))
- func PNCounterTesterWithConfig(t *testing.T, configCallback func(*hz.Config), ...)
- func PNCounterTesterWithConfigAndName(t *testing.T, makeName func() string, configCallback func(*hz.Config), ...)
- func QueueTester(t *testing.T, f func(t *testing.T, q *hz.Queue))
- func QueueTesterWithConfigAndName(t *testing.T, queueName func() string, configCallback func(*hz.Config), ...)
- func ReplicatedMapTester(t *testing.T, f func(t *testing.T, m *hz.ReplicatedMap))
- func ReplicatedMapTesterWithConfig(t *testing.T, configCallback func(*hz.Config), ...)
- func ReplicatedMapTesterWithConfigAndName(t *testing.T, makeMapName func() string, cbCallback func(cb *hz.Config), ...)
- func RingbufferTester(t *testing.T, f func(t *testing.T, rb *hz.Ringbuffer))
- func RingbufferTesterWithConfigAndName(t *testing.T, ringBufferName func() string, cbCallback func(*hz.Config), ...)
- func SQLTester(t *testing.T, ...)
- func SQLTesterWithConfigBuilder(t *testing.T, configFn func(config *hz.Config), ...)
- func SQLXMLConfig(clusterName, publicAddr string, port int) string
- func SSLEnabled() bool
- func SerializationTester(t *testing.T, ...)
- func SetTester(t *testing.T, f func(t *testing.T, s *hz.Set))
- func SetTesterWithConfig(t *testing.T, configCallback func(*hz.Config), f func(t *testing.T, s *hz.Set))
- func SetTesterWithConfigAndName(t *testing.T, makeName func() string, configCallback func(*hz.Config), ...)
- func SkipIf(t *testing.T, conditions string)
- func SmartEnabled() bool
- func Tester(t *testing.T, f func(t *testing.T, client *hz.Client))
- func TesterWithConfigBuilder(t *testing.T, cbCallback func(config *hz.Config), ...)
- func TopicTester(t *testing.T, f func(t *testing.T, tp *hz.Topic))
- func TopicTesterWithConfigAndName(t *testing.T, makeName func() string, cbCallback func(*hz.Config), ...)
- func TraceLoggingEnabled() bool
- func WaitEventually(t *testing.T, wg *sync.WaitGroup)
- func WaitEventuallyWithTimeout(t *testing.T, wg *sync.WaitGroup, timeout time.Duration)
- type Cluster
- func (p *Cluster) Equals(other *Cluster) bool
- func (p *Cluster) GetID() string
- func (p *Cluster) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Cluster) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Cluster) String() string
- func (p *Cluster) Write(ctx context.Context, oprot thrift.TProtocol) error
- type CompactTestContext
- type DataStructureAdapter
- type Lang
- type MapTestContext
- type Member
- func (p *Member) Equals(other *Member) bool
- func (p *Member) GetHost() string
- func (p *Member) GetPort() int32
- func (p *Member) GetUUID() string
- func (p *Member) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Member) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Member) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Member) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Member) String() string
- func (p *Member) Write(ctx context.Context, oprot thrift.TProtocol) error
- type NearCacheAdapter
- type NearCacheTestContext
- func (tcx *NearCacheTestContext) AssertNearCacheContent(nca NearCacheAdapter, size int64, valueFmt string)
- func (tcx *NearCacheTestContext) AssertNearCacheInvalidationRequests(invalidationRequests int64)
- func (tcx *NearCacheTestContext) AssertNearCacheRecord(rec *inearcache.Record, key int64, imf nearcache.InMemoryFormat)
- func (tcx *NearCacheTestContext) AssertNearCacheStats(owned, hits, misses int64)
- func (tcx *NearCacheTestContext) GetKey(key interface{}) interface{}
- func (tcx *NearCacheTestContext) PopulateNearCacheDataAdapter(size int64, valueFmt string)
- func (tcx *NearCacheTestContext) PopulateNearCacheWithGet(size int64, valueFmt string)
- func (tcx *NearCacheTestContext) RequireNearCacheSize(target int64)
- func (tcx *NearCacheTestContext) ResetInvalidationEvents()
- func (tcx NearCacheTestContext) Stats() (nearcache.Stats, int64)
- type PanicingGlobalSerializer
- type RemoteController
- type RemoteControllerCleanArgs
- type RemoteControllerCleanResult
- func (p *RemoteControllerCleanResult) GetSuccess() bool
- func (p *RemoteControllerCleanResult) IsSetSuccess() bool
- func (p *RemoteControllerCleanResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerCleanResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerCleanResult) String() string
- func (p *RemoteControllerCleanResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerClient
- func CreateRemoteController(addr string) *RemoteControllerClient
- func NewRemoteControllerClient(c thrift.TClient) *RemoteControllerClient
- func NewRemoteControllerClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *RemoteControllerClient
- func NewRemoteControllerClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *RemoteControllerClient
- func (p *RemoteControllerClient) Clean(ctx context.Context) (_r bool, _err error)
- func (p *RemoteControllerClient) Client_() thrift.TClient
- func (p *RemoteControllerClient) CreateCluster(ctx context.Context, hzVersion string, xmlconfig string) (_r *Cluster, _err error)
- func (p *RemoteControllerClient) CreateClusterKeepClusterName(ctx context.Context, hzVersion string, xmlconfig string) (_r *Cluster, _err error)
- func (p *RemoteControllerClient) ExecuteOnController(ctx context.Context, clusterId string, script string, lang Lang) (_r *Response, _err error)
- func (p *RemoteControllerClient) Exit(ctx context.Context) (_r bool, _err error)
- func (p *RemoteControllerClient) LastResponseMeta_() thrift.ResponseMeta
- func (p *RemoteControllerClient) MergeMemberToCluster(ctx context.Context, clusterId string, memberId string) (_r *Cluster, _err error)
- func (p *RemoteControllerClient) Ping(ctx context.Context) (_r bool, _err error)
- func (p *RemoteControllerClient) ResumeMember(ctx context.Context, clusterId string, memberId string) (_r bool, _err error)
- func (p *RemoteControllerClient) SetLastResponseMeta_(meta thrift.ResponseMeta)
- func (p *RemoteControllerClient) ShutdownCluster(ctx context.Context, clusterId string) (_r bool, _err error)
- func (p *RemoteControllerClient) ShutdownMember(ctx context.Context, clusterId string, memberId string) (_r bool, _err error)
- func (p *RemoteControllerClient) SplitMemberFromCluster(ctx context.Context, memberId string) (_r *Cluster, _err error)
- func (p *RemoteControllerClient) StartMember(ctx context.Context, clusterId string) (_r *Member, _err error)
- func (p *RemoteControllerClient) SuspendMember(ctx context.Context, clusterId string, memberId string) (_r bool, _err error)
- func (p *RemoteControllerClient) TerminateCluster(ctx context.Context, clusterId string) (_r bool, _err error)
- func (p *RemoteControllerClient) TerminateMember(ctx context.Context, clusterId string, memberId string) (_r bool, _err error)
- type RemoteControllerClientWrapper
- func (rcw *RemoteControllerClientWrapper) CreateClusterKeepClusterName(ctx context.Context, hzVersion string, xmlconfig string) (*Cluster, error)
- func (rcw *RemoteControllerClientWrapper) ExecuteOnController(ctx context.Context, clusterID string, script string, lang Lang) (*Response, error)
- func (rcw *RemoteControllerClientWrapper) Ping(ctx context.Context) (bool, error)
- func (rcw *RemoteControllerClientWrapper) ShutdownMember(ctx context.Context, clusterID string, memberID string) (bool, error)
- func (rcw *RemoteControllerClientWrapper) StartMember(ctx context.Context, clusterID string) (*Member, error)
- func (rcw *RemoteControllerClientWrapper) TerminateMember(ctx context.Context, clusterID string, memberID string) (bool, error)
- type RemoteControllerCreateClusterArgs
- func (p *RemoteControllerCreateClusterArgs) GetHzVersion() string
- func (p *RemoteControllerCreateClusterArgs) GetXmlconfig() string
- func (p *RemoteControllerCreateClusterArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerCreateClusterArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerCreateClusterArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerCreateClusterArgs) String() string
- func (p *RemoteControllerCreateClusterArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerCreateClusterKeepClusterNameArgs
- func (p *RemoteControllerCreateClusterKeepClusterNameArgs) GetHzVersion() string
- func (p *RemoteControllerCreateClusterKeepClusterNameArgs) GetXmlconfig() string
- func (p *RemoteControllerCreateClusterKeepClusterNameArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerCreateClusterKeepClusterNameArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerCreateClusterKeepClusterNameArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerCreateClusterKeepClusterNameArgs) String() string
- func (p *RemoteControllerCreateClusterKeepClusterNameArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerCreateClusterKeepClusterNameResult
- func (p *RemoteControllerCreateClusterKeepClusterNameResult) GetServerException() *ServerException
- func (p *RemoteControllerCreateClusterKeepClusterNameResult) GetSuccess() *Cluster
- func (p *RemoteControllerCreateClusterKeepClusterNameResult) IsSetServerException() bool
- func (p *RemoteControllerCreateClusterKeepClusterNameResult) IsSetSuccess() bool
- func (p *RemoteControllerCreateClusterKeepClusterNameResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerCreateClusterKeepClusterNameResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerCreateClusterKeepClusterNameResult) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerCreateClusterKeepClusterNameResult) String() string
- func (p *RemoteControllerCreateClusterKeepClusterNameResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerCreateClusterResult
- func (p *RemoteControllerCreateClusterResult) GetServerException() *ServerException
- func (p *RemoteControllerCreateClusterResult) GetSuccess() *Cluster
- func (p *RemoteControllerCreateClusterResult) IsSetServerException() bool
- func (p *RemoteControllerCreateClusterResult) IsSetSuccess() bool
- func (p *RemoteControllerCreateClusterResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerCreateClusterResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerCreateClusterResult) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerCreateClusterResult) String() string
- func (p *RemoteControllerCreateClusterResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerExecuteOnControllerArgs
- func (p *RemoteControllerExecuteOnControllerArgs) GetClusterId() string
- func (p *RemoteControllerExecuteOnControllerArgs) GetLang() Lang
- func (p *RemoteControllerExecuteOnControllerArgs) GetScript() string
- func (p *RemoteControllerExecuteOnControllerArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerExecuteOnControllerArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerExecuteOnControllerArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerExecuteOnControllerArgs) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerExecuteOnControllerArgs) String() string
- func (p *RemoteControllerExecuteOnControllerArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerExecuteOnControllerResult
- func (p *RemoteControllerExecuteOnControllerResult) GetSuccess() *Response
- func (p *RemoteControllerExecuteOnControllerResult) IsSetSuccess() bool
- func (p *RemoteControllerExecuteOnControllerResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerExecuteOnControllerResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerExecuteOnControllerResult) String() string
- func (p *RemoteControllerExecuteOnControllerResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerExitArgs
- type RemoteControllerExitResult
- func (p *RemoteControllerExitResult) GetSuccess() bool
- func (p *RemoteControllerExitResult) IsSetSuccess() bool
- func (p *RemoteControllerExitResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerExitResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerExitResult) String() string
- func (p *RemoteControllerExitResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerMergeMemberToClusterArgs
- func (p *RemoteControllerMergeMemberToClusterArgs) GetClusterId() string
- func (p *RemoteControllerMergeMemberToClusterArgs) GetMemberId() string
- func (p *RemoteControllerMergeMemberToClusterArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerMergeMemberToClusterArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerMergeMemberToClusterArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerMergeMemberToClusterArgs) String() string
- func (p *RemoteControllerMergeMemberToClusterArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerMergeMemberToClusterResult
- func (p *RemoteControllerMergeMemberToClusterResult) GetSuccess() *Cluster
- func (p *RemoteControllerMergeMemberToClusterResult) IsSetSuccess() bool
- func (p *RemoteControllerMergeMemberToClusterResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerMergeMemberToClusterResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerMergeMemberToClusterResult) String() string
- func (p *RemoteControllerMergeMemberToClusterResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerPingArgs
- type RemoteControllerPingResult
- func (p *RemoteControllerPingResult) GetSuccess() bool
- func (p *RemoteControllerPingResult) IsSetSuccess() bool
- func (p *RemoteControllerPingResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerPingResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerPingResult) String() string
- func (p *RemoteControllerPingResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerProcessor
- func (p *RemoteControllerProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *RemoteControllerProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *RemoteControllerProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *RemoteControllerProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type RemoteControllerResumeMemberArgs
- func (p *RemoteControllerResumeMemberArgs) GetClusterId() string
- func (p *RemoteControllerResumeMemberArgs) GetMemberId() string
- func (p *RemoteControllerResumeMemberArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerResumeMemberArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerResumeMemberArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerResumeMemberArgs) String() string
- func (p *RemoteControllerResumeMemberArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerResumeMemberResult
- func (p *RemoteControllerResumeMemberResult) GetSuccess() bool
- func (p *RemoteControllerResumeMemberResult) IsSetSuccess() bool
- func (p *RemoteControllerResumeMemberResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerResumeMemberResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerResumeMemberResult) String() string
- func (p *RemoteControllerResumeMemberResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerShutdownClusterArgs
- func (p *RemoteControllerShutdownClusterArgs) GetClusterId() string
- func (p *RemoteControllerShutdownClusterArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerShutdownClusterArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerShutdownClusterArgs) String() string
- func (p *RemoteControllerShutdownClusterArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerShutdownClusterResult
- func (p *RemoteControllerShutdownClusterResult) GetSuccess() bool
- func (p *RemoteControllerShutdownClusterResult) IsSetSuccess() bool
- func (p *RemoteControllerShutdownClusterResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerShutdownClusterResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerShutdownClusterResult) String() string
- func (p *RemoteControllerShutdownClusterResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerShutdownMemberArgs
- func (p *RemoteControllerShutdownMemberArgs) GetClusterId() string
- func (p *RemoteControllerShutdownMemberArgs) GetMemberId() string
- func (p *RemoteControllerShutdownMemberArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerShutdownMemberArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerShutdownMemberArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerShutdownMemberArgs) String() string
- func (p *RemoteControllerShutdownMemberArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerShutdownMemberResult
- func (p *RemoteControllerShutdownMemberResult) GetSuccess() bool
- func (p *RemoteControllerShutdownMemberResult) IsSetSuccess() bool
- func (p *RemoteControllerShutdownMemberResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerShutdownMemberResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerShutdownMemberResult) String() string
- func (p *RemoteControllerShutdownMemberResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerSplitMemberFromClusterArgs
- func (p *RemoteControllerSplitMemberFromClusterArgs) GetMemberId() string
- func (p *RemoteControllerSplitMemberFromClusterArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerSplitMemberFromClusterArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerSplitMemberFromClusterArgs) String() string
- func (p *RemoteControllerSplitMemberFromClusterArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerSplitMemberFromClusterResult
- func (p *RemoteControllerSplitMemberFromClusterResult) GetSuccess() *Cluster
- func (p *RemoteControllerSplitMemberFromClusterResult) IsSetSuccess() bool
- func (p *RemoteControllerSplitMemberFromClusterResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerSplitMemberFromClusterResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerSplitMemberFromClusterResult) String() string
- func (p *RemoteControllerSplitMemberFromClusterResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerStartMemberArgs
- func (p *RemoteControllerStartMemberArgs) GetClusterId() string
- func (p *RemoteControllerStartMemberArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerStartMemberArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerStartMemberArgs) String() string
- func (p *RemoteControllerStartMemberArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerStartMemberResult
- func (p *RemoteControllerStartMemberResult) GetServerException() *ServerException
- func (p *RemoteControllerStartMemberResult) GetSuccess() *Member
- func (p *RemoteControllerStartMemberResult) IsSetServerException() bool
- func (p *RemoteControllerStartMemberResult) IsSetSuccess() bool
- func (p *RemoteControllerStartMemberResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerStartMemberResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerStartMemberResult) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerStartMemberResult) String() string
- func (p *RemoteControllerStartMemberResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerSuspendMemberArgs
- func (p *RemoteControllerSuspendMemberArgs) GetClusterId() string
- func (p *RemoteControllerSuspendMemberArgs) GetMemberId() string
- func (p *RemoteControllerSuspendMemberArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerSuspendMemberArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerSuspendMemberArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerSuspendMemberArgs) String() string
- func (p *RemoteControllerSuspendMemberArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerSuspendMemberResult
- func (p *RemoteControllerSuspendMemberResult) GetSuccess() bool
- func (p *RemoteControllerSuspendMemberResult) IsSetSuccess() bool
- func (p *RemoteControllerSuspendMemberResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerSuspendMemberResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerSuspendMemberResult) String() string
- func (p *RemoteControllerSuspendMemberResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerTerminateClusterArgs
- func (p *RemoteControllerTerminateClusterArgs) GetClusterId() string
- func (p *RemoteControllerTerminateClusterArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerTerminateClusterArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerTerminateClusterArgs) String() string
- func (p *RemoteControllerTerminateClusterArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerTerminateClusterResult
- func (p *RemoteControllerTerminateClusterResult) GetSuccess() bool
- func (p *RemoteControllerTerminateClusterResult) IsSetSuccess() bool
- func (p *RemoteControllerTerminateClusterResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerTerminateClusterResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerTerminateClusterResult) String() string
- func (p *RemoteControllerTerminateClusterResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerTerminateMemberArgs
- func (p *RemoteControllerTerminateMemberArgs) GetClusterId() string
- func (p *RemoteControllerTerminateMemberArgs) GetMemberId() string
- func (p *RemoteControllerTerminateMemberArgs) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerTerminateMemberArgs) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerTerminateMemberArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerTerminateMemberArgs) String() string
- func (p *RemoteControllerTerminateMemberArgs) Write(ctx context.Context, oprot thrift.TProtocol) error
- type RemoteControllerTerminateMemberResult
- func (p *RemoteControllerTerminateMemberResult) GetSuccess() bool
- func (p *RemoteControllerTerminateMemberResult) IsSetSuccess() bool
- func (p *RemoteControllerTerminateMemberResult) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerTerminateMemberResult) ReadField0(ctx context.Context, iprot thrift.TProtocol) error
- func (p *RemoteControllerTerminateMemberResult) String() string
- func (p *RemoteControllerTerminateMemberResult) Write(ctx context.Context, oprot thrift.TProtocol) error
- type Response
- func (p *Response) Equals(other *Response) bool
- func (p *Response) GetMessage() string
- func (p *Response) GetResult_() []byte
- func (p *Response) GetSuccess() bool
- func (p *Response) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Response) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Response) ReadField2(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Response) ReadField3(ctx context.Context, iprot thrift.TProtocol) error
- func (p *Response) String() string
- func (p *Response) Write(ctx context.Context, oprot thrift.TProtocol) error
- type SamplePortable
- type SamplePortableFactory
- type ServerException
- func (p *ServerException) Equals(other *ServerException) bool
- func (p *ServerException) Error() string
- func (p *ServerException) GetMessage() string
- func (p *ServerException) Read(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ServerException) ReadField1(ctx context.Context, iprot thrift.TProtocol) error
- func (p *ServerException) String() string
- func (ServerException) TExceptionType() thrift.TExceptionType
- func (p *ServerException) Write(ctx context.Context, oprot thrift.TProtocol) error
- type SingletonTestCluster
- type TestCluster
Constants ¶
const ( EnvDisableSmart = "DISABLE_SMART" EnvDisableNonsmart = "DISABLE_NONSMART" EnvEnableTraceLogging = "ENABLE_TRACE" EnvMemberCount = "MEMBER_COUNT" EnvEnableLeakCheck = "ENABLE_LEAKCHECK" EnvEnableSSL = "ENABLE_SSL" EnvHzVersion = "HZ_VERSION" )
const ( DefaultClusterName = "integration-test" RingbufferCapacity = 10 ClusterNameCPEnabled = "integration-test-cp" )
const EnvWarmupCount = "WARMUPS"
const SamplePortableClassID = 1
const SamplePortableFactoryID = 1
Variables ¶
var RemoteControllerCleanResult_Success_DEFAULT bool
var RemoteControllerExitResult_Success_DEFAULT bool
var RemoteControllerPingResult_Success_DEFAULT bool
var RemoteControllerResumeMemberResult_Success_DEFAULT bool
var RemoteControllerShutdownClusterResult_Success_DEFAULT bool
var RemoteControllerShutdownMemberResult_Success_DEFAULT bool
var RemoteControllerSuspendMemberResult_Success_DEFAULT bool
var RemoteControllerTerminateClusterResult_Success_DEFAULT bool
var RemoteControllerTerminateMemberResult_Success_DEFAULT bool
Functions ¶
func AssertEquals ¶
func AtomicLongTester ¶ added in v1.4.0
func AtomicLongTesterWithConfig ¶ added in v1.4.0
func AtomicLongTesterWithConfigAndName ¶ added in v1.4.0
func EqualStringContent ¶ added in v1.3.0
func Eventually ¶ added in v1.1.0
Eventually asserts that given condition will be met in 2 minutes, checking target function every 200 milliseconds.
func GetClientAtomicLongWithConfig ¶ added in v1.4.0
func GetClientMapWithConfig ¶
func GetClientMultiMapWithConfig ¶ added in v1.2.0
func GetClientSetWithConfig ¶
func LeakCheckEnabled ¶
func LeakCheckEnabled() bool
func MakeCompactClusterConfig ¶ added in v1.4.0
func MapBenchmarker ¶
func MapTesterWithConfig ¶
func MarkFlaky ¶ added in v1.3.1
MarkFlaky marks a test "flaky", so it is run only when flaky test mode is enabled. Note that if "all" mode is enabled, the test runs disregard of whether flaky test mode is enabled or disabled.
func MarkRacy ¶ added in v1.3.1
MarkRacy marks a test "racy", so it is run only when race detector is not enabled. Note that if "all" mode is enabled, the test runs disregard of whether the race detector is enabled or disabled.
func MarkSlow ¶ added in v1.3.1
MarkSlow marks a test "slow", so it is run only when slow test mode is enabled. Note that if "all" mode is enabled, the test runs disregard of whether slow test mode is enabled or disabled.
func MemberCount ¶
func MemberCount() int
func MultiMapTester ¶ added in v1.2.0
func MultiMapTesterWithConfig ¶ added in v1.2.0
func MultiMapTesterWithConfigAndName ¶ added in v1.2.0
func MustClient ¶
MustClient returns client if err is nil, otherwise it panics.
func MustSlice ¶ added in v1.2.0
func MustSlice(slice []interface{}, err error) []interface{}
MustSlice returns a slice of values if err is nil, otherwise it panics.
func MustValue ¶
func MustValue(value interface{}, err error) interface{}
MustValue returns value if err is nil, otherwise it panics.
func Never ¶ added in v1.1.0
Never asserts that the given condition doesn't satisfy in 3 seconds, checking target function every 200 milliseconds.
func NewUniqueObjectName ¶ added in v1.1.0
func NonSmartEnabled ¶
func NonSmartEnabled() bool
func ReplicatedMapTester ¶
func RingbufferTester ¶ added in v1.4.0
func RingbufferTesterWithConfigAndName ¶ added in v1.4.0
func SQLTesterWithConfigBuilder ¶ added in v1.2.0
func SQLXMLConfig ¶ added in v1.3.1
func SSLEnabled ¶
func SSLEnabled() bool
func SerializationTester ¶ added in v1.2.0
func SetTesterWithConfig ¶
func SkipIf ¶ added in v1.1.0
SkipIf can be used to skip a test case based on comma-separated conditions. Deprecated: Use skip.If instead.
func SmartEnabled ¶
func SmartEnabled() bool
func TesterWithConfigBuilder ¶
func TraceLoggingEnabled ¶
func TraceLoggingEnabled() bool
func WaitEventually ¶ added in v1.1.0
WaitEventually waits for the waitgroup for 2 minutes Fails the test if 2 mimutes is reached.
Types ¶
type Cluster ¶
type Cluster struct {
ID string `thrift:"id,1" db:"id" json:"id"`
}
Attributes:
- ID
var RemoteControllerCreateClusterKeepClusterNameResult_Success_DEFAULT *Cluster
var RemoteControllerCreateClusterResult_Success_DEFAULT *Cluster
var RemoteControllerMergeMemberToClusterResult_Success_DEFAULT *Cluster
var RemoteControllerSplitMemberFromClusterResult_Success_DEFAULT *Cluster
func NewCluster ¶
func NewCluster() *Cluster
func (*Cluster) ReadField1 ¶
type CompactTestContext ¶ added in v1.4.0
type CompactTestContext struct { T *testing.T M *hazelcast.Map Cluster *TestCluster Client1 *hazelcast.Client Client2 *hazelcast.Client MapName string InMemFmt string Serializers1 []serialization.CompactSerializer Serializers2 []serialization.CompactSerializer }
func (CompactTestContext) ExecuteScript ¶ added in v1.4.0
func (tcx CompactTestContext) ExecuteScript(ctx context.Context, script string) error
func (CompactTestContext) Tester ¶ added in v1.4.0
func (tcx CompactTestContext) Tester(f func(CompactTestContext))
type DataStructureAdapter ¶ added in v1.3.0
type Lang ¶
type Lang int64
func LangFromString ¶
func (Lang) MarshalText ¶
func (*Lang) UnmarshalText ¶
type MapTestContext ¶ added in v1.3.0
type MapTestContext struct { T *testing.T M *hz.Map Cluster *TestCluster Client *hz.Client Config *hz.Config ConfigCallback func(testContext MapTestContext) NameMaker func(...string) string Before func(tcx MapTestContext) After func(tcx MapTestContext) MapName string Smart bool }
func (*MapTestContext) ExecuteScript ¶ added in v1.3.0
func (tcx *MapTestContext) ExecuteScript(ctx context.Context, script string)
func (MapTestContext) Properties ¶ added in v1.3.0
func (tcx MapTestContext) Properties() []string
func (MapTestContext) Tester ¶ added in v1.3.0
func (tcx MapTestContext) Tester(f func(MapTestContext))
type Member ¶
type Member struct { UUID string `thrift:"uuid,1" db:"uuid" json:"uuid"` Host string `thrift:"host,2" db:"host" json:"host"` Port int32 `thrift:"port,3" db:"port" json:"port"` }
Attributes:
- UUID
- Host
- Port
var RemoteControllerStartMemberResult_Success_DEFAULT *Member
func (*Member) ReadField1 ¶
func (*Member) ReadField2 ¶
func (*Member) ReadField3 ¶
type NearCacheAdapter ¶ added in v1.3.0
type NearCacheAdapter interface { Size() int Get(key interface{}) (interface{}, error) GetFromNearCache(key interface{}) (interface{}, error) GetRecord(key interface{}) (*inearcache.Record, bool) InvalidationRequests() int64 ToNearCacheKey(key interface{}) interface{} NearCache() *inearcache.NearCache }
type NearCacheTestContext ¶ added in v1.3.0
type NearCacheTestContext struct { T *testing.T NC NearCacheAdapter Config *nearcache.Config DSAdapter DataStructureAdapter // contains filtered or unexported fields }
func NewNearCacheTestContext ¶ added in v1.3.0
func NewNearCacheTestContext(t *testing.T, nc NearCacheAdapter, dsa DataStructureAdapter, cfg *nearcache.Config, ss *serialization.Service) *NearCacheTestContext
func (*NearCacheTestContext) AssertNearCacheContent ¶ added in v1.3.0
func (tcx *NearCacheTestContext) AssertNearCacheContent(nca NearCacheAdapter, size int64, valueFmt string)
func (*NearCacheTestContext) AssertNearCacheInvalidationRequests ¶ added in v1.3.0
func (tcx *NearCacheTestContext) AssertNearCacheInvalidationRequests(invalidationRequests int64)
func (*NearCacheTestContext) AssertNearCacheRecord ¶ added in v1.3.0
func (tcx *NearCacheTestContext) AssertNearCacheRecord(rec *inearcache.Record, key int64, imf nearcache.InMemoryFormat)
func (*NearCacheTestContext) AssertNearCacheStats ¶ added in v1.3.0
func (tcx *NearCacheTestContext) AssertNearCacheStats(owned, hits, misses int64)
func (*NearCacheTestContext) GetKey ¶ added in v1.3.0
func (tcx *NearCacheTestContext) GetKey(key interface{}) interface{}
func (*NearCacheTestContext) PopulateNearCacheDataAdapter ¶ added in v1.3.0
func (tcx *NearCacheTestContext) PopulateNearCacheDataAdapter(size int64, valueFmt string)
func (*NearCacheTestContext) PopulateNearCacheWithGet ¶ added in v1.3.0
func (tcx *NearCacheTestContext) PopulateNearCacheWithGet(size int64, valueFmt string)
func (*NearCacheTestContext) RequireNearCacheSize ¶ added in v1.3.0
func (tcx *NearCacheTestContext) RequireNearCacheSize(target int64)
func (*NearCacheTestContext) ResetInvalidationEvents ¶ added in v1.3.0
func (tcx *NearCacheTestContext) ResetInvalidationEvents()
type PanicingGlobalSerializer ¶ added in v1.2.0
type PanicingGlobalSerializer struct{}
func (PanicingGlobalSerializer) ID ¶ added in v1.2.0
func (p PanicingGlobalSerializer) ID() (id int32)
func (PanicingGlobalSerializer) Read ¶ added in v1.2.0
func (p PanicingGlobalSerializer) Read(input serialization.DataInput) interface{}
func (PanicingGlobalSerializer) Write ¶ added in v1.2.0
func (p PanicingGlobalSerializer) Write(output serialization.DataOutput, object interface{})
type RemoteController ¶
type RemoteController interface { Ping(ctx context.Context) (_r bool, _err error) Clean(ctx context.Context) (_r bool, _err error) Exit(ctx context.Context) (_r bool, _err error) // Parameters: // - HzVersion // - Xmlconfig CreateCluster(ctx context.Context, hzVersion string, xmlconfig string) (_r *Cluster, _err error) // Parameters: // - HzVersion // - Xmlconfig CreateClusterKeepClusterName(ctx context.Context, hzVersion string, xmlconfig string) (_r *Cluster, _err error) // Parameters: // - ClusterId StartMember(ctx context.Context, clusterId string) (_r *Member, _err error) // Parameters: // - ClusterId // - MemberId ShutdownMember(ctx context.Context, clusterId string, memberId string) (_r bool, _err error) // Parameters: // - ClusterId // - MemberId TerminateMember(ctx context.Context, clusterId string, memberId string) (_r bool, _err error) // Parameters: // - ClusterId // - MemberId SuspendMember(ctx context.Context, clusterId string, memberId string) (_r bool, _err error) // Parameters: // - ClusterId // - MemberId ResumeMember(ctx context.Context, clusterId string, memberId string) (_r bool, _err error) // Parameters: // - ClusterId ShutdownCluster(ctx context.Context, clusterId string) (_r bool, _err error) // Parameters: // - ClusterId TerminateCluster(ctx context.Context, clusterId string) (_r bool, _err error) // Parameters: // - MemberId SplitMemberFromCluster(ctx context.Context, memberId string) (_r *Cluster, _err error) // Parameters: // - ClusterId // - MemberId MergeMemberToCluster(ctx context.Context, clusterId string, memberId string) (_r *Cluster, _err error) // Parameters: // - ClusterId // - Script // - Lang ExecuteOnController(ctx context.Context, clusterId string, script string, lang Lang) (_r *Response, _err error) }
type RemoteControllerCleanArgs ¶
type RemoteControllerCleanArgs struct { }
func NewRemoteControllerCleanArgs ¶
func NewRemoteControllerCleanArgs() *RemoteControllerCleanArgs
func (*RemoteControllerCleanArgs) String ¶
func (p *RemoteControllerCleanArgs) String() string
type RemoteControllerCleanResult ¶
type RemoteControllerCleanResult struct {
Success *bool `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewRemoteControllerCleanResult ¶
func NewRemoteControllerCleanResult() *RemoteControllerCleanResult
func (*RemoteControllerCleanResult) GetSuccess ¶
func (p *RemoteControllerCleanResult) GetSuccess() bool
func (*RemoteControllerCleanResult) IsSetSuccess ¶
func (p *RemoteControllerCleanResult) IsSetSuccess() bool
func (*RemoteControllerCleanResult) ReadField0 ¶
func (*RemoteControllerCleanResult) String ¶
func (p *RemoteControllerCleanResult) String() string
type RemoteControllerClient ¶
type RemoteControllerClient struct {
// contains filtered or unexported fields
}
func CreateRemoteController ¶
func CreateRemoteController(addr string) *RemoteControllerClient
func NewRemoteControllerClient ¶
func NewRemoteControllerClient(c thrift.TClient) *RemoteControllerClient
func NewRemoteControllerClientFactory ¶
func NewRemoteControllerClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *RemoteControllerClient
func NewRemoteControllerClientProtocol ¶
func NewRemoteControllerClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *RemoteControllerClient
func (*RemoteControllerClient) Clean ¶
func (p *RemoteControllerClient) Clean(ctx context.Context) (_r bool, _err error)
func (*RemoteControllerClient) Client_ ¶
func (p *RemoteControllerClient) Client_() thrift.TClient
func (*RemoteControllerClient) CreateCluster ¶
func (p *RemoteControllerClient) CreateCluster(ctx context.Context, hzVersion string, xmlconfig string) (_r *Cluster, _err error)
Parameters:
- HzVersion
- Xmlconfig
func (*RemoteControllerClient) CreateClusterKeepClusterName ¶
func (p *RemoteControllerClient) CreateClusterKeepClusterName(ctx context.Context, hzVersion string, xmlconfig string) (_r *Cluster, _err error)
Parameters:
- HzVersion
- Xmlconfig
func (*RemoteControllerClient) ExecuteOnController ¶
func (p *RemoteControllerClient) ExecuteOnController(ctx context.Context, clusterId string, script string, lang Lang) (_r *Response, _err error)
Parameters:
- ClusterId
- Script
- Lang
func (*RemoteControllerClient) Exit ¶
func (p *RemoteControllerClient) Exit(ctx context.Context) (_r bool, _err error)
func (*RemoteControllerClient) LastResponseMeta_ ¶
func (p *RemoteControllerClient) LastResponseMeta_() thrift.ResponseMeta
func (*RemoteControllerClient) MergeMemberToCluster ¶
func (p *RemoteControllerClient) MergeMemberToCluster(ctx context.Context, clusterId string, memberId string) (_r *Cluster, _err error)
Parameters:
- ClusterId
- MemberId
func (*RemoteControllerClient) Ping ¶
func (p *RemoteControllerClient) Ping(ctx context.Context) (_r bool, _err error)
func (*RemoteControllerClient) ResumeMember ¶
func (p *RemoteControllerClient) ResumeMember(ctx context.Context, clusterId string, memberId string) (_r bool, _err error)
Parameters:
- ClusterId
- MemberId
func (*RemoteControllerClient) SetLastResponseMeta_ ¶
func (p *RemoteControllerClient) SetLastResponseMeta_(meta thrift.ResponseMeta)
func (*RemoteControllerClient) ShutdownCluster ¶
func (p *RemoteControllerClient) ShutdownCluster(ctx context.Context, clusterId string) (_r bool, _err error)
Parameters:
- ClusterId
func (*RemoteControllerClient) ShutdownMember ¶
func (p *RemoteControllerClient) ShutdownMember(ctx context.Context, clusterId string, memberId string) (_r bool, _err error)
Parameters:
- ClusterId
- MemberId
func (*RemoteControllerClient) SplitMemberFromCluster ¶
func (p *RemoteControllerClient) SplitMemberFromCluster(ctx context.Context, memberId string) (_r *Cluster, _err error)
Parameters:
- MemberId
func (*RemoteControllerClient) StartMember ¶
func (p *RemoteControllerClient) StartMember(ctx context.Context, clusterId string) (_r *Member, _err error)
Parameters:
- ClusterId
func (*RemoteControllerClient) SuspendMember ¶
func (p *RemoteControllerClient) SuspendMember(ctx context.Context, clusterId string, memberId string) (_r bool, _err error)
Parameters:
- ClusterId
- MemberId
func (*RemoteControllerClient) TerminateCluster ¶
func (p *RemoteControllerClient) TerminateCluster(ctx context.Context, clusterId string) (_r bool, _err error)
Parameters:
- ClusterId
func (*RemoteControllerClient) TerminateMember ¶
func (p *RemoteControllerClient) TerminateMember(ctx context.Context, clusterId string, memberId string) (_r bool, _err error)
Parameters:
- ClusterId
- MemberId
type RemoteControllerClientWrapper ¶ added in v1.3.1
type RemoteControllerClientWrapper struct {
// contains filtered or unexported fields
}
func CreateDefaultRemoteController ¶
func CreateDefaultRemoteController() *RemoteControllerClientWrapper
func (*RemoteControllerClientWrapper) CreateClusterKeepClusterName ¶ added in v1.3.1
func (*RemoteControllerClientWrapper) ExecuteOnController ¶ added in v1.3.1
func (*RemoteControllerClientWrapper) Ping ¶ added in v1.3.1
func (rcw *RemoteControllerClientWrapper) Ping(ctx context.Context) (bool, error)
func (*RemoteControllerClientWrapper) ShutdownMember ¶ added in v1.3.1
func (*RemoteControllerClientWrapper) StartMember ¶ added in v1.3.1
func (*RemoteControllerClientWrapper) TerminateMember ¶ added in v1.3.1
type RemoteControllerCreateClusterArgs ¶
type RemoteControllerCreateClusterArgs struct { HzVersion string `thrift:"hzVersion,1" db:"hzVersion" json:"hzVersion"` Xmlconfig string `thrift:"xmlconfig,2" db:"xmlconfig" json:"xmlconfig"` }
Attributes:
- HzVersion
- Xmlconfig
func NewRemoteControllerCreateClusterArgs ¶
func NewRemoteControllerCreateClusterArgs() *RemoteControllerCreateClusterArgs
func (*RemoteControllerCreateClusterArgs) GetHzVersion ¶
func (p *RemoteControllerCreateClusterArgs) GetHzVersion() string
func (*RemoteControllerCreateClusterArgs) GetXmlconfig ¶
func (p *RemoteControllerCreateClusterArgs) GetXmlconfig() string
func (*RemoteControllerCreateClusterArgs) ReadField1 ¶
func (*RemoteControllerCreateClusterArgs) ReadField2 ¶
func (*RemoteControllerCreateClusterArgs) String ¶
func (p *RemoteControllerCreateClusterArgs) String() string
type RemoteControllerCreateClusterKeepClusterNameArgs ¶
type RemoteControllerCreateClusterKeepClusterNameArgs struct { HzVersion string `thrift:"hzVersion,1" db:"hzVersion" json:"hzVersion"` Xmlconfig string `thrift:"xmlconfig,2" db:"xmlconfig" json:"xmlconfig"` }
Attributes:
- HzVersion
- Xmlconfig
func NewRemoteControllerCreateClusterKeepClusterNameArgs ¶
func NewRemoteControllerCreateClusterKeepClusterNameArgs() *RemoteControllerCreateClusterKeepClusterNameArgs
func (*RemoteControllerCreateClusterKeepClusterNameArgs) GetHzVersion ¶
func (p *RemoteControllerCreateClusterKeepClusterNameArgs) GetHzVersion() string
func (*RemoteControllerCreateClusterKeepClusterNameArgs) GetXmlconfig ¶
func (p *RemoteControllerCreateClusterKeepClusterNameArgs) GetXmlconfig() string
func (*RemoteControllerCreateClusterKeepClusterNameArgs) ReadField1 ¶
func (*RemoteControllerCreateClusterKeepClusterNameArgs) ReadField2 ¶
func (*RemoteControllerCreateClusterKeepClusterNameArgs) String ¶
func (p *RemoteControllerCreateClusterKeepClusterNameArgs) String() string
type RemoteControllerCreateClusterKeepClusterNameResult ¶
type RemoteControllerCreateClusterKeepClusterNameResult struct { Success *Cluster `thrift:"success,0" db:"success" json:"success,omitempty"` ServerException *ServerException `thrift:"serverException,1" db:"serverException" json:"serverException,omitempty"` }
Attributes:
- Success
- ServerException
func NewRemoteControllerCreateClusterKeepClusterNameResult ¶
func NewRemoteControllerCreateClusterKeepClusterNameResult() *RemoteControllerCreateClusterKeepClusterNameResult
func (*RemoteControllerCreateClusterKeepClusterNameResult) GetServerException ¶
func (p *RemoteControllerCreateClusterKeepClusterNameResult) GetServerException() *ServerException
func (*RemoteControllerCreateClusterKeepClusterNameResult) GetSuccess ¶
func (p *RemoteControllerCreateClusterKeepClusterNameResult) GetSuccess() *Cluster
func (*RemoteControllerCreateClusterKeepClusterNameResult) IsSetServerException ¶
func (p *RemoteControllerCreateClusterKeepClusterNameResult) IsSetServerException() bool
func (*RemoteControllerCreateClusterKeepClusterNameResult) IsSetSuccess ¶
func (p *RemoteControllerCreateClusterKeepClusterNameResult) IsSetSuccess() bool
func (*RemoteControllerCreateClusterKeepClusterNameResult) ReadField0 ¶
func (*RemoteControllerCreateClusterKeepClusterNameResult) ReadField1 ¶
func (*RemoteControllerCreateClusterKeepClusterNameResult) String ¶
func (p *RemoteControllerCreateClusterKeepClusterNameResult) String() string
type RemoteControllerCreateClusterResult ¶
type RemoteControllerCreateClusterResult struct { Success *Cluster `thrift:"success,0" db:"success" json:"success,omitempty"` ServerException *ServerException `thrift:"serverException,1" db:"serverException" json:"serverException,omitempty"` }
Attributes:
- Success
- ServerException
func NewRemoteControllerCreateClusterResult ¶
func NewRemoteControllerCreateClusterResult() *RemoteControllerCreateClusterResult
func (*RemoteControllerCreateClusterResult) GetServerException ¶
func (p *RemoteControllerCreateClusterResult) GetServerException() *ServerException
func (*RemoteControllerCreateClusterResult) GetSuccess ¶
func (p *RemoteControllerCreateClusterResult) GetSuccess() *Cluster
func (*RemoteControllerCreateClusterResult) IsSetServerException ¶
func (p *RemoteControllerCreateClusterResult) IsSetServerException() bool
func (*RemoteControllerCreateClusterResult) IsSetSuccess ¶
func (p *RemoteControllerCreateClusterResult) IsSetSuccess() bool
func (*RemoteControllerCreateClusterResult) ReadField0 ¶
func (*RemoteControllerCreateClusterResult) ReadField1 ¶
func (*RemoteControllerCreateClusterResult) String ¶
func (p *RemoteControllerCreateClusterResult) String() string
type RemoteControllerExecuteOnControllerArgs ¶
type RemoteControllerExecuteOnControllerArgs struct { ClusterId string `thrift:"clusterId,1" db:"clusterId" json:"clusterId"` Script string `thrift:"script,2" db:"script" json:"script"` Lang Lang `thrift:"lang,3" db:"lang" json:"lang"` }
Attributes:
- ClusterId
- Script
- Lang
func NewRemoteControllerExecuteOnControllerArgs ¶
func NewRemoteControllerExecuteOnControllerArgs() *RemoteControllerExecuteOnControllerArgs
func (*RemoteControllerExecuteOnControllerArgs) GetClusterId ¶
func (p *RemoteControllerExecuteOnControllerArgs) GetClusterId() string
func (*RemoteControllerExecuteOnControllerArgs) GetLang ¶
func (p *RemoteControllerExecuteOnControllerArgs) GetLang() Lang
func (*RemoteControllerExecuteOnControllerArgs) GetScript ¶
func (p *RemoteControllerExecuteOnControllerArgs) GetScript() string
func (*RemoteControllerExecuteOnControllerArgs) ReadField1 ¶
func (*RemoteControllerExecuteOnControllerArgs) ReadField2 ¶
func (*RemoteControllerExecuteOnControllerArgs) ReadField3 ¶
func (*RemoteControllerExecuteOnControllerArgs) String ¶
func (p *RemoteControllerExecuteOnControllerArgs) String() string
type RemoteControllerExecuteOnControllerResult ¶
type RemoteControllerExecuteOnControllerResult struct {
Success *Response `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewRemoteControllerExecuteOnControllerResult ¶
func NewRemoteControllerExecuteOnControllerResult() *RemoteControllerExecuteOnControllerResult
func (*RemoteControllerExecuteOnControllerResult) GetSuccess ¶
func (p *RemoteControllerExecuteOnControllerResult) GetSuccess() *Response
func (*RemoteControllerExecuteOnControllerResult) IsSetSuccess ¶
func (p *RemoteControllerExecuteOnControllerResult) IsSetSuccess() bool
func (*RemoteControllerExecuteOnControllerResult) ReadField0 ¶
func (*RemoteControllerExecuteOnControllerResult) String ¶
func (p *RemoteControllerExecuteOnControllerResult) String() string
type RemoteControllerExitArgs ¶
type RemoteControllerExitArgs struct { }
func NewRemoteControllerExitArgs ¶
func NewRemoteControllerExitArgs() *RemoteControllerExitArgs
func (*RemoteControllerExitArgs) String ¶
func (p *RemoteControllerExitArgs) String() string
type RemoteControllerExitResult ¶
type RemoteControllerExitResult struct {
Success *bool `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewRemoteControllerExitResult ¶
func NewRemoteControllerExitResult() *RemoteControllerExitResult
func (*RemoteControllerExitResult) GetSuccess ¶
func (p *RemoteControllerExitResult) GetSuccess() bool
func (*RemoteControllerExitResult) IsSetSuccess ¶
func (p *RemoteControllerExitResult) IsSetSuccess() bool
func (*RemoteControllerExitResult) ReadField0 ¶
func (*RemoteControllerExitResult) String ¶
func (p *RemoteControllerExitResult) String() string
type RemoteControllerMergeMemberToClusterArgs ¶
type RemoteControllerMergeMemberToClusterArgs struct { ClusterId string `thrift:"clusterId,1" db:"clusterId" json:"clusterId"` MemberId string `thrift:"memberId,2" db:"memberId" json:"memberId"` }
Attributes:
- ClusterId
- MemberId
func NewRemoteControllerMergeMemberToClusterArgs ¶
func NewRemoteControllerMergeMemberToClusterArgs() *RemoteControllerMergeMemberToClusterArgs
func (*RemoteControllerMergeMemberToClusterArgs) GetClusterId ¶
func (p *RemoteControllerMergeMemberToClusterArgs) GetClusterId() string
func (*RemoteControllerMergeMemberToClusterArgs) GetMemberId ¶
func (p *RemoteControllerMergeMemberToClusterArgs) GetMemberId() string
func (*RemoteControllerMergeMemberToClusterArgs) ReadField1 ¶
func (*RemoteControllerMergeMemberToClusterArgs) ReadField2 ¶
func (*RemoteControllerMergeMemberToClusterArgs) String ¶
func (p *RemoteControllerMergeMemberToClusterArgs) String() string
type RemoteControllerMergeMemberToClusterResult ¶
type RemoteControllerMergeMemberToClusterResult struct {
Success *Cluster `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewRemoteControllerMergeMemberToClusterResult ¶
func NewRemoteControllerMergeMemberToClusterResult() *RemoteControllerMergeMemberToClusterResult
func (*RemoteControllerMergeMemberToClusterResult) GetSuccess ¶
func (p *RemoteControllerMergeMemberToClusterResult) GetSuccess() *Cluster
func (*RemoteControllerMergeMemberToClusterResult) IsSetSuccess ¶
func (p *RemoteControllerMergeMemberToClusterResult) IsSetSuccess() bool
func (*RemoteControllerMergeMemberToClusterResult) ReadField0 ¶
func (*RemoteControllerMergeMemberToClusterResult) String ¶
func (p *RemoteControllerMergeMemberToClusterResult) String() string
type RemoteControllerPingArgs ¶
type RemoteControllerPingArgs struct { }
func NewRemoteControllerPingArgs ¶
func NewRemoteControllerPingArgs() *RemoteControllerPingArgs
func (*RemoteControllerPingArgs) String ¶
func (p *RemoteControllerPingArgs) String() string
type RemoteControllerPingResult ¶
type RemoteControllerPingResult struct {
Success *bool `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewRemoteControllerPingResult ¶
func NewRemoteControllerPingResult() *RemoteControllerPingResult
func (*RemoteControllerPingResult) GetSuccess ¶
func (p *RemoteControllerPingResult) GetSuccess() bool
func (*RemoteControllerPingResult) IsSetSuccess ¶
func (p *RemoteControllerPingResult) IsSetSuccess() bool
func (*RemoteControllerPingResult) ReadField0 ¶
func (*RemoteControllerPingResult) String ¶
func (p *RemoteControllerPingResult) String() string
type RemoteControllerProcessor ¶
type RemoteControllerProcessor struct {
// contains filtered or unexported fields
}
func NewRemoteControllerProcessor ¶
func NewRemoteControllerProcessor(handler RemoteController) *RemoteControllerProcessor
func (*RemoteControllerProcessor) AddToProcessorMap ¶
func (p *RemoteControllerProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*RemoteControllerProcessor) GetProcessorFunction ¶
func (p *RemoteControllerProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*RemoteControllerProcessor) Process ¶
func (p *RemoteControllerProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*RemoteControllerProcessor) ProcessorMap ¶
func (p *RemoteControllerProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type RemoteControllerResumeMemberArgs ¶
type RemoteControllerResumeMemberArgs struct { ClusterId string `thrift:"clusterId,1" db:"clusterId" json:"clusterId"` MemberId string `thrift:"memberId,2" db:"memberId" json:"memberId"` }
Attributes:
- ClusterId
- MemberId
func NewRemoteControllerResumeMemberArgs ¶
func NewRemoteControllerResumeMemberArgs() *RemoteControllerResumeMemberArgs
func (*RemoteControllerResumeMemberArgs) GetClusterId ¶
func (p *RemoteControllerResumeMemberArgs) GetClusterId() string
func (*RemoteControllerResumeMemberArgs) GetMemberId ¶
func (p *RemoteControllerResumeMemberArgs) GetMemberId() string
func (*RemoteControllerResumeMemberArgs) ReadField1 ¶
func (*RemoteControllerResumeMemberArgs) ReadField2 ¶
func (*RemoteControllerResumeMemberArgs) String ¶
func (p *RemoteControllerResumeMemberArgs) String() string
type RemoteControllerResumeMemberResult ¶
type RemoteControllerResumeMemberResult struct {
Success *bool `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewRemoteControllerResumeMemberResult ¶
func NewRemoteControllerResumeMemberResult() *RemoteControllerResumeMemberResult
func (*RemoteControllerResumeMemberResult) GetSuccess ¶
func (p *RemoteControllerResumeMemberResult) GetSuccess() bool
func (*RemoteControllerResumeMemberResult) IsSetSuccess ¶
func (p *RemoteControllerResumeMemberResult) IsSetSuccess() bool
func (*RemoteControllerResumeMemberResult) ReadField0 ¶
func (*RemoteControllerResumeMemberResult) String ¶
func (p *RemoteControllerResumeMemberResult) String() string
type RemoteControllerShutdownClusterArgs ¶
type RemoteControllerShutdownClusterArgs struct {
ClusterId string `thrift:"clusterId,1" db:"clusterId" json:"clusterId"`
}
Attributes:
- ClusterId
func NewRemoteControllerShutdownClusterArgs ¶
func NewRemoteControllerShutdownClusterArgs() *RemoteControllerShutdownClusterArgs
func (*RemoteControllerShutdownClusterArgs) GetClusterId ¶
func (p *RemoteControllerShutdownClusterArgs) GetClusterId() string
func (*RemoteControllerShutdownClusterArgs) ReadField1 ¶
func (*RemoteControllerShutdownClusterArgs) String ¶
func (p *RemoteControllerShutdownClusterArgs) String() string
type RemoteControllerShutdownClusterResult ¶
type RemoteControllerShutdownClusterResult struct {
Success *bool `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewRemoteControllerShutdownClusterResult ¶
func NewRemoteControllerShutdownClusterResult() *RemoteControllerShutdownClusterResult
func (*RemoteControllerShutdownClusterResult) GetSuccess ¶
func (p *RemoteControllerShutdownClusterResult) GetSuccess() bool
func (*RemoteControllerShutdownClusterResult) IsSetSuccess ¶
func (p *RemoteControllerShutdownClusterResult) IsSetSuccess() bool
func (*RemoteControllerShutdownClusterResult) ReadField0 ¶
func (*RemoteControllerShutdownClusterResult) String ¶
func (p *RemoteControllerShutdownClusterResult) String() string
type RemoteControllerShutdownMemberArgs ¶
type RemoteControllerShutdownMemberArgs struct { ClusterId string `thrift:"clusterId,1" db:"clusterId" json:"clusterId"` MemberId string `thrift:"memberId,2" db:"memberId" json:"memberId"` }
Attributes:
- ClusterId
- MemberId
func NewRemoteControllerShutdownMemberArgs ¶
func NewRemoteControllerShutdownMemberArgs() *RemoteControllerShutdownMemberArgs
func (*RemoteControllerShutdownMemberArgs) GetClusterId ¶
func (p *RemoteControllerShutdownMemberArgs) GetClusterId() string
func (*RemoteControllerShutdownMemberArgs) GetMemberId ¶
func (p *RemoteControllerShutdownMemberArgs) GetMemberId() string
func (*RemoteControllerShutdownMemberArgs) ReadField1 ¶
func (*RemoteControllerShutdownMemberArgs) ReadField2 ¶
func (*RemoteControllerShutdownMemberArgs) String ¶
func (p *RemoteControllerShutdownMemberArgs) String() string
type RemoteControllerShutdownMemberResult ¶
type RemoteControllerShutdownMemberResult struct {
Success *bool `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewRemoteControllerShutdownMemberResult ¶
func NewRemoteControllerShutdownMemberResult() *RemoteControllerShutdownMemberResult
func (*RemoteControllerShutdownMemberResult) GetSuccess ¶
func (p *RemoteControllerShutdownMemberResult) GetSuccess() bool
func (*RemoteControllerShutdownMemberResult) IsSetSuccess ¶
func (p *RemoteControllerShutdownMemberResult) IsSetSuccess() bool
func (*RemoteControllerShutdownMemberResult) ReadField0 ¶
func (*RemoteControllerShutdownMemberResult) String ¶
func (p *RemoteControllerShutdownMemberResult) String() string
type RemoteControllerSplitMemberFromClusterArgs ¶
type RemoteControllerSplitMemberFromClusterArgs struct {
MemberId string `thrift:"memberId,1" db:"memberId" json:"memberId"`
}
Attributes:
- MemberId
func NewRemoteControllerSplitMemberFromClusterArgs ¶
func NewRemoteControllerSplitMemberFromClusterArgs() *RemoteControllerSplitMemberFromClusterArgs
func (*RemoteControllerSplitMemberFromClusterArgs) GetMemberId ¶
func (p *RemoteControllerSplitMemberFromClusterArgs) GetMemberId() string
func (*RemoteControllerSplitMemberFromClusterArgs) ReadField1 ¶
func (*RemoteControllerSplitMemberFromClusterArgs) String ¶
func (p *RemoteControllerSplitMemberFromClusterArgs) String() string
type RemoteControllerSplitMemberFromClusterResult ¶
type RemoteControllerSplitMemberFromClusterResult struct {
Success *Cluster `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewRemoteControllerSplitMemberFromClusterResult ¶
func NewRemoteControllerSplitMemberFromClusterResult() *RemoteControllerSplitMemberFromClusterResult
func (*RemoteControllerSplitMemberFromClusterResult) GetSuccess ¶
func (p *RemoteControllerSplitMemberFromClusterResult) GetSuccess() *Cluster
func (*RemoteControllerSplitMemberFromClusterResult) IsSetSuccess ¶
func (p *RemoteControllerSplitMemberFromClusterResult) IsSetSuccess() bool
func (*RemoteControllerSplitMemberFromClusterResult) ReadField0 ¶
func (*RemoteControllerSplitMemberFromClusterResult) String ¶
func (p *RemoteControllerSplitMemberFromClusterResult) String() string
type RemoteControllerStartMemberArgs ¶
type RemoteControllerStartMemberArgs struct {
ClusterId string `thrift:"clusterId,1" db:"clusterId" json:"clusterId"`
}
Attributes:
- ClusterId
func NewRemoteControllerStartMemberArgs ¶
func NewRemoteControllerStartMemberArgs() *RemoteControllerStartMemberArgs
func (*RemoteControllerStartMemberArgs) GetClusterId ¶
func (p *RemoteControllerStartMemberArgs) GetClusterId() string
func (*RemoteControllerStartMemberArgs) ReadField1 ¶
func (*RemoteControllerStartMemberArgs) String ¶
func (p *RemoteControllerStartMemberArgs) String() string
type RemoteControllerStartMemberResult ¶
type RemoteControllerStartMemberResult struct { Success *Member `thrift:"success,0" db:"success" json:"success,omitempty"` ServerException *ServerException `thrift:"serverException,1" db:"serverException" json:"serverException,omitempty"` }
Attributes:
- Success
- ServerException
func NewRemoteControllerStartMemberResult ¶
func NewRemoteControllerStartMemberResult() *RemoteControllerStartMemberResult
func (*RemoteControllerStartMemberResult) GetServerException ¶
func (p *RemoteControllerStartMemberResult) GetServerException() *ServerException
func (*RemoteControllerStartMemberResult) GetSuccess ¶
func (p *RemoteControllerStartMemberResult) GetSuccess() *Member
func (*RemoteControllerStartMemberResult) IsSetServerException ¶
func (p *RemoteControllerStartMemberResult) IsSetServerException() bool
func (*RemoteControllerStartMemberResult) IsSetSuccess ¶
func (p *RemoteControllerStartMemberResult) IsSetSuccess() bool
func (*RemoteControllerStartMemberResult) ReadField0 ¶
func (*RemoteControllerStartMemberResult) ReadField1 ¶
func (*RemoteControllerStartMemberResult) String ¶
func (p *RemoteControllerStartMemberResult) String() string
type RemoteControllerSuspendMemberArgs ¶
type RemoteControllerSuspendMemberArgs struct { ClusterId string `thrift:"clusterId,1" db:"clusterId" json:"clusterId"` MemberId string `thrift:"memberId,2" db:"memberId" json:"memberId"` }
Attributes:
- ClusterId
- MemberId
func NewRemoteControllerSuspendMemberArgs ¶
func NewRemoteControllerSuspendMemberArgs() *RemoteControllerSuspendMemberArgs
func (*RemoteControllerSuspendMemberArgs) GetClusterId ¶
func (p *RemoteControllerSuspendMemberArgs) GetClusterId() string
func (*RemoteControllerSuspendMemberArgs) GetMemberId ¶
func (p *RemoteControllerSuspendMemberArgs) GetMemberId() string
func (*RemoteControllerSuspendMemberArgs) ReadField1 ¶
func (*RemoteControllerSuspendMemberArgs) ReadField2 ¶
func (*RemoteControllerSuspendMemberArgs) String ¶
func (p *RemoteControllerSuspendMemberArgs) String() string
type RemoteControllerSuspendMemberResult ¶
type RemoteControllerSuspendMemberResult struct {
Success *bool `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewRemoteControllerSuspendMemberResult ¶
func NewRemoteControllerSuspendMemberResult() *RemoteControllerSuspendMemberResult
func (*RemoteControllerSuspendMemberResult) GetSuccess ¶
func (p *RemoteControllerSuspendMemberResult) GetSuccess() bool
func (*RemoteControllerSuspendMemberResult) IsSetSuccess ¶
func (p *RemoteControllerSuspendMemberResult) IsSetSuccess() bool
func (*RemoteControllerSuspendMemberResult) ReadField0 ¶
func (*RemoteControllerSuspendMemberResult) String ¶
func (p *RemoteControllerSuspendMemberResult) String() string
type RemoteControllerTerminateClusterArgs ¶
type RemoteControllerTerminateClusterArgs struct {
ClusterId string `thrift:"clusterId,1" db:"clusterId" json:"clusterId"`
}
Attributes:
- ClusterId
func NewRemoteControllerTerminateClusterArgs ¶
func NewRemoteControllerTerminateClusterArgs() *RemoteControllerTerminateClusterArgs
func (*RemoteControllerTerminateClusterArgs) GetClusterId ¶
func (p *RemoteControllerTerminateClusterArgs) GetClusterId() string
func (*RemoteControllerTerminateClusterArgs) ReadField1 ¶
func (*RemoteControllerTerminateClusterArgs) String ¶
func (p *RemoteControllerTerminateClusterArgs) String() string
type RemoteControllerTerminateClusterResult ¶
type RemoteControllerTerminateClusterResult struct {
Success *bool `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewRemoteControllerTerminateClusterResult ¶
func NewRemoteControllerTerminateClusterResult() *RemoteControllerTerminateClusterResult
func (*RemoteControllerTerminateClusterResult) GetSuccess ¶
func (p *RemoteControllerTerminateClusterResult) GetSuccess() bool
func (*RemoteControllerTerminateClusterResult) IsSetSuccess ¶
func (p *RemoteControllerTerminateClusterResult) IsSetSuccess() bool
func (*RemoteControllerTerminateClusterResult) ReadField0 ¶
func (*RemoteControllerTerminateClusterResult) String ¶
func (p *RemoteControllerTerminateClusterResult) String() string
type RemoteControllerTerminateMemberArgs ¶
type RemoteControllerTerminateMemberArgs struct { ClusterId string `thrift:"clusterId,1" db:"clusterId" json:"clusterId"` MemberId string `thrift:"memberId,2" db:"memberId" json:"memberId"` }
Attributes:
- ClusterId
- MemberId
func NewRemoteControllerTerminateMemberArgs ¶
func NewRemoteControllerTerminateMemberArgs() *RemoteControllerTerminateMemberArgs
func (*RemoteControllerTerminateMemberArgs) GetClusterId ¶
func (p *RemoteControllerTerminateMemberArgs) GetClusterId() string
func (*RemoteControllerTerminateMemberArgs) GetMemberId ¶
func (p *RemoteControllerTerminateMemberArgs) GetMemberId() string
func (*RemoteControllerTerminateMemberArgs) ReadField1 ¶
func (*RemoteControllerTerminateMemberArgs) ReadField2 ¶
func (*RemoteControllerTerminateMemberArgs) String ¶
func (p *RemoteControllerTerminateMemberArgs) String() string
type RemoteControllerTerminateMemberResult ¶
type RemoteControllerTerminateMemberResult struct {
Success *bool `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewRemoteControllerTerminateMemberResult ¶
func NewRemoteControllerTerminateMemberResult() *RemoteControllerTerminateMemberResult
func (*RemoteControllerTerminateMemberResult) GetSuccess ¶
func (p *RemoteControllerTerminateMemberResult) GetSuccess() bool
func (*RemoteControllerTerminateMemberResult) IsSetSuccess ¶
func (p *RemoteControllerTerminateMemberResult) IsSetSuccess() bool
func (*RemoteControllerTerminateMemberResult) ReadField0 ¶
func (*RemoteControllerTerminateMemberResult) String ¶
func (p *RemoteControllerTerminateMemberResult) String() string
type Response ¶
type Response struct { Message string `thrift:"message,2" db:"message" json:"message"` Result_ []byte `thrift:"result,3" db:"result" json:"result"` Success bool `thrift:"success,1" db:"success" json:"success"` }
Attributes:
- Success
- Message
- Result_
var RemoteControllerExecuteOnControllerResult_Success_DEFAULT *Response
func MapSetOnServer ¶ added in v1.2.0
func NewResponse ¶
func NewResponse() *Response
func (*Response) GetMessage ¶
func (*Response) GetResult_ ¶
func (*Response) GetSuccess ¶
func (*Response) ReadField1 ¶
func (*Response) ReadField2 ¶
func (*Response) ReadField3 ¶
type SamplePortable ¶
func (SamplePortable) ClassID ¶
func (s SamplePortable) ClassID() int32
func (SamplePortable) FactoryID ¶
func (s SamplePortable) FactoryID() int32
func (SamplePortable) Json ¶
func (s SamplePortable) Json() serialization.JSON
func (*SamplePortable) ReadPortable ¶
func (s *SamplePortable) ReadPortable(reader serialization.PortableReader)
func (SamplePortable) WritePortable ¶
func (s SamplePortable) WritePortable(writer serialization.PortableWriter)
type SamplePortableFactory ¶
type SamplePortableFactory struct { }
func (SamplePortableFactory) Create ¶
func (f SamplePortableFactory) Create(classID int32) serialization.Portable
func (SamplePortableFactory) FactoryID ¶
func (f SamplePortableFactory) FactoryID() int32
type ServerException ¶
type ServerException struct {
Message string `thrift:"message,1" db:"message" json:"message"`
}
Attributes:
- Message
var RemoteControllerCreateClusterKeepClusterNameResult_ServerException_DEFAULT *ServerException
var RemoteControllerCreateClusterResult_ServerException_DEFAULT *ServerException
var RemoteControllerStartMemberResult_ServerException_DEFAULT *ServerException
func NewServerException ¶
func NewServerException() *ServerException
func (*ServerException) Equals ¶
func (p *ServerException) Equals(other *ServerException) bool
func (*ServerException) Error ¶
func (p *ServerException) Error() string
func (*ServerException) GetMessage ¶
func (p *ServerException) GetMessage() string
func (*ServerException) ReadField1 ¶
func (*ServerException) String ¶
func (p *ServerException) String() string
func (ServerException) TExceptionType ¶
func (ServerException) TExceptionType() thrift.TExceptionType
type SingletonTestCluster ¶ added in v1.3.1
type SingletonTestCluster struct {
// contains filtered or unexported fields
}
func NewSingletonTestCluster ¶ added in v1.3.1
func NewSingletonTestCluster(name string, launcher func() *TestCluster) *SingletonTestCluster
func (*SingletonTestCluster) Launch ¶ added in v1.3.1
func (c *SingletonTestCluster) Launch(t testLogger) *TestCluster
type TestCluster ¶
type TestCluster struct { RC *RemoteControllerClientWrapper ClusterID string MemberUUIDs []string Port int }
func StartNewClusterWithConfig ¶ added in v1.1.1
func StartNewClusterWithConfig(memberCount int, config string, port int) *TestCluster
func StartNewClusterWithOptions ¶
func StartNewClusterWithOptions(clusterName string, port, memberCount int) *TestCluster
func (TestCluster) DefaultConfig ¶
func (c TestCluster) DefaultConfig() hz.Config
func (TestCluster) DefaultConfigWithNoSSL ¶ added in v1.3.0
func (c TestCluster) DefaultConfigWithNoSSL() hz.Config
func (TestCluster) Shutdown ¶
func (c TestCluster) Shutdown()
func (TestCluster) StartMember ¶ added in v1.4.0
func (c TestCluster) StartMember(ctx context.Context) (*Member, error)