I'm starting my node with:
set java_opts=%java_opts% -Dtangosol.coherence.clustername=my_dev
and then I'm running
System.out.println("name='"+CacheFactory.getCluster().getClusterName()+"'");
but I'm getting:
name='cluster:0xD3FB'
I can see that incorrect name is being displayed when i start up. Is there something different I need to do to specify the cluster name?
Thanks!
Andrew
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) 64-Bit Server VM (build 14.2-b01, mixed mode)
2009-11-10 10:52:54.830/0.642 Oracle Coherence 3.5.2/463 <Info> (thread=main, member=n/a): Loaded operational configuration from resource "jar:file:/C:/coherence/lib/coherence.jar!/tangosol-coherence.xml"
2009-11-10 10:52:54.835/0.647 Oracle Coherence 3.5.2/463 <Info> (thread=main, member=n/a): Loaded operational overrides from resource "jar:file:/C:/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
2009-11-10 10:52:54.835/0.647 Oracle Coherence 3.5.2/463 <D5> (thread=main, member=n/a): Optional configuration override "/tangosol-coherence-override.xml" is not specified
2009-11-10 10:52:54.838/0.650 Oracle Coherence 3.5.2/463 <D5> (thread=main, member=n/a): Optional configuration override "/custom-mbeans.xml" is not specified
Oracle Coherence Version 3.5.2/463
Grid Edition: Development mode
Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
2009-11-10 10:52:55.007/0.819 Oracle Coherence GE 3.5.2/463 <Info> (thread=main, member=n/a): Loaded cache configuration from "jar:file:/C:/coherence/lib/coherence.jar!/reports/report-group.xml"
2009-11-10 10:52:55.019/0.831 Oracle Coherence GE 3.5.2/463 <Info> (thread=main, member=n/a): Loaded cache configuration from "file:/C:/coherence/cache-config-dev.xml"
2009-11-10 10:52:55.239/1.051 Oracle Coherence GE 3.5.2/463 <D4> (thread=main, member=n/a): Specified local address "" is a loopback address; switching to the 'localhost' instead; for single-machine mode you must also specify a TTL of 0
2009-11-10 10:52:55.325/1.137 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=n/a): Service Cluster joined the cluster with senior service member n/a
2009-11-10 10:52:58.525/4.337 Oracle Coherence GE 3.5.2/463 <Info> (thread=Cluster, member=n/a): Created a new cluster "cluster:0xD3FB" with Member(Id=1, Timestamp=2009-11-10 10:52:55.255, Address=192.168.10.167:8091, MachineId=25255, Location=machine:box2,process:5600, Role=CoherenceServer, Edition=Grid Edition, Mode=Development, CpuCount=4, SocketCount=4) UID=0xC0A80AA700000124DF032357
2009-11-10 10:52:58.541/4.353 Oracle Coherence GE 3.5.2/463 <D5> (thread=Invocation:Management, member=1): Service Management joined the cluster with senior service member 1
2009-11-10 10:52:58.613/4.425 Oracle Coherence GE 3.5.2/463 <D5> (thread=OptimisticCache:ReplicatedCache.Optimistic, member=1): Service ReplicatedCache.Optimistic joined the cluster with senior service member 1
2009-11-10 10:52:58.718/4.530 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:DistributedExecutionsCache, member=1): Service DistributedExecutionsCache joined the cluster with senior service member 1
2009-11-10 10:52:58.729/4.541 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache, member=1): Service DistributedCache joined the cluster with senior service member 1
2009-11-10 10:52:58.743/4.555 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:DistributedOrdersCache, member=1): Service DistributedOrdersCache joined the cluster with senior service member 1
2009-11-10 10:52:58.749/4.561 Oracle Coherence GE 3.5.2/463 <Info> (thread=main, member=1): Started DefaultCacheServer...
SafeCluster: Name=cluster:0xD3FB
Group{Address=224.3.5.2, Port=35463, TTL=4}
MasterMemberSet
(
ThisMember=Member(Id=1, Timestamp=2009-11-10 10:52:55.255, Address=192.168.10.167:8091, MachineId=25255, Location=machine:box2,process:5600, Role=CoherenceServer)
OldestMember=Member(Id=1, Timestamp=2009-11-10 10:52:55.255, Address=192.168.10.167:8091, MachineId=25255, Location=machine:box2,process:5600, Role=CoherenceServer)
ActualMemberSet=MemberSet(Size=1, BitSetCount=2
Member(Id=1, Timestamp=2009-11-10 10:52:55.255, Address=192.168.10.167:8091, MachineId=25255, Location=machine:box2,process:5600, Role=CoherenceServer)
)
RecycleMillis=120000
RecycleSet=MemberSet(Size=0, BitSetCount=0
)
)
Services
(
TcpRing{TcpSocketAccepter{State=STATE_OPEN, ServerSocket=192.168.10.167:8091}, Connections=[]}
ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_JOINED), Id=0, Version=3.5, OldestMemberId=1}
InvocationService{Name=Management, State=(SERVICE_STARTED), Id=1, Version=3.1, OldestMemberId=1}
Optimistic{Name=ReplicatedCache.Optimistic, State=(SERVICE_STARTED), Id=2, Version=3.0, OldestMemberId=1}
DistributedCache{Name=DistributedExecutionsCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCount=1, AssignedPartitions=257, BackupPartitions=0}
DistributedCache{Name=DistributedCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCount=1, AssignedPartitions=257, BackupPartitions=0}
DistributedCache{Name=DistributedOrdersCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCount=1, AssignedPartitions=257, BackupPartitions=0}
)